{"openapi":"3.1.0","info":{"title":"Mem (BYOK) API","version":"0.1.0","description":"Mem (BYOK) lets an AI assistant read your own Mem data through the Mem API with a key you supply (Mem API key). Read-only: 7 tools (list_notes, read_note, search_notes, find_related_notes, list_collections, read_collection, search_collections). The BYOK key travels with each request, is used for that one call only and is never stored, logged or cached; it is only ever sent to api.mem.ai....\n\nEvery operation is read-only or compute-only. The same tools are available over MCP (streamable HTTP) at https://byok-memai.connectorbay.com/mcp.","contact":{"name":"Unify Dynamics LLC","email":"agent@connectorbay.com","url":"https://connectorbay.com/byok-memai/docs"},"termsOfService":"https://connectorbay.com/byok-memai/terms"},"servers":[{"url":"https://byok-memai.connectorbay.com"}],"externalDocs":{"url":"https://connectorbay.com/byok-memai/docs"},"security":[{"upstreamKey":[]}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"Optional. A Pro API key raises rate limits; no credentials are required."},"upstreamKey":{"type":"apiKey","in":"header","name":"X-Upstream-Key","description":"Your own key for the service this connector wraps (bring your own key). Used for that one call only; never stored, logged or cached."}},"schemas":{"Error":{"type":"object","properties":{"ok":{"const":false},"error":{"type":"object"}}}}},"paths":{"/v1/tools/list_notes":{"post":{"operationId":"list_notes","summary":"List notes, most recently updated first by default, with title, snippet and collection ids; cursor paging via next_page.","description":"List notes, most recently updated first by default, with title, snippet and collection ids; cursor paging via next_page. Content is left out unless requested. Use for \"What notes did I edit recently in Mem\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"limit":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":50,"description":"Notes per page (1 to 100, default 50).","title":"Limit"},"page":{"anyOf":[{"maxLength":500,"type":"string"},{"type":"null"}],"default":null,"description":"Opaque cursor from next_page of the previous answer; reuse with the same filters.","title":"Page"},"order_by":{"anyOf":[{"enum":["created_at","updated_at"],"type":"string"},{"type":"null"}],"default":"updated_at","description":"Sort key: updated_at (default) or created_at.","title":"Order By"},"collection_id":{"anyOf":[{"maxLength":60,"type":"string"},{"type":"null"}],"default":null,"description":"Only notes in this collection (UUID).","title":"Collection Id"},"filter_by_created_after":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Only notes created at or after this time, ISO 8601 time that includes a time zone offset, for example 2026-01-01T00:00:00Z.","title":"Filter By Created After"},"filter_by_created_before":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Only notes created at or before this time, ISO 8601 time that includes a time zone offset, for example 2026-01-01T00:00:00Z.","title":"Filter By Created Before"},"filter_by_updated_after":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Only notes updated at or after this time, ISO 8601 time that includes a time zone offset, for example 2026-01-01T00:00:00Z.","title":"Filter By Updated After"},"filter_by_updated_before":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Only notes updated at or before this time, ISO 8601 time that includes a time zone offset, for example 2026-01-01T00:00:00Z.","title":"Filter By Updated Before"},"contains_open_tasks":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":false,"description":"True to include notes with an open task.","title":"Contains Open Tasks"},"include_note_content":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":false,"description":"True to include full markdown for each note (larger answer).","title":"Include Note Content"}},"title":"list_notesArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/read_note":{"post":{"operationId":"read_note","summary":"Get the full markdown content of one note by UUID, with title, version, collections and times; works for trashed notes t","description":"Get the full markdown content of one note by UUID, with title, version, collections and times; works for trashed notes too. Use for \"Show my Mem note 8d1c0e0a-1111-4222-8333-444455556666\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"note_id":{"description":"Note UUID from list_notes or search_notes.","maxLength":60,"title":"Note Id","type":"string"}},"required":["note_id"],"title":"read_noteArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/search_notes":{"post":{"operationId":"search_notes","summary":"Search notes by free-text relevance, optionally limited by dates. Returns snippets; page with offset. Use for \"Find my M","description":"Search notes by free-text relevance, optionally limited by dates. Returns snippets; page with offset. Use for \"Find my Mem notes about the quarterly roadmap\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"query":{"description":"Text to look for (at least one non-space character).","maxLength":500,"title":"Query","type":"string"},"filter_by_created_after":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Only notes created after this time, ISO 8601 time that includes a time zone offset, for example 2026-01-01T00:00:00Z.","title":"Filter By Created After"},"filter_by_updated_after":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Only notes updated after this time, ISO 8601 time that includes a time zone offset, for example 2026-01-01T00:00:00Z.","title":"Filter By Updated After"},"limit":{"anyOf":[{"maximum":50,"minimum":1,"type":"integer"},{"type":"null"}],"default":20,"description":"Results per page (1 to 50, default 20).","title":"Limit"},"offset":{"anyOf":[{"minimum":0,"type":"integer"},{"type":"null"}],"default":0,"description":"Results to skip, starting at 0.","title":"Offset"},"snapshot_id":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Search snapshot id returned by a previous page, required for later pages.","title":"Snapshot Id"}},"required":["query"],"title":"search_notesArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/find_related_notes":{"post":{"operationId":"find_related_notes","summary":"Find notes semantically related to a given note, with preview and the collections each belongs to. Use for \"Which Mem no","description":"Find notes semantically related to a given note, with preview and the collections each belongs to. Use for \"Which Mem notes are related to note 8d1c0e0a-1111-4222-8333-444455556666\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"note_id":{"description":"UUID of the source note.","maxLength":60,"title":"Note Id","type":"string"},"limit":{"anyOf":[{"maximum":20,"minimum":1,"type":"integer"},{"type":"null"}],"default":10,"description":"How many related notes (1 to 20, default 10).","title":"Limit"}},"required":["note_id"],"title":"find_related_notesArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_collections":{"post":{"operationId":"list_collections","summary":"List collections with title, description, note count and times, cursor paging via next_page. Use for \"Which collections ","description":"List collections with title, description, note count and times, cursor paging via next_page. Use for \"Which collections do I have in Mem\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"limit":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":50,"description":"Collections per page (1 to 100, default 50).","title":"Limit"},"page":{"anyOf":[{"maxLength":500,"type":"string"},{"type":"null"}],"default":null,"description":"Opaque cursor from next_page of the previous answer.","title":"Page"},"order_by":{"anyOf":[{"enum":["created_at","updated_at"],"type":"string"},{"type":"null"}],"default":"updated_at","description":"Sort key: updated_at (default) or created_at.","title":"Order By"}},"title":"list_collectionsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/read_collection":{"post":{"operationId":"read_collection","summary":"Get metadata of one collection by UUID: title, description and note count (not its notes). Use for \"Tell me about my Mem","description":"Get metadata of one collection by UUID: title, description and note count (not its notes). Use for \"Tell me about my Mem collection 'Reading'\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"collection_id":{"description":"Collection UUID from list_collections.","maxLength":60,"title":"Collection Id","type":"string"}},"required":["collection_id"],"title":"read_collectionArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/search_collections":{"post":{"operationId":"search_collections","summary":"Search collections by free-text relevance on title and description. Use for \"Find my Mem collections about research\".","description":"Search collections by free-text relevance on title and description. Use for \"Find my Mem collections about research\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"query":{"anyOf":[{"maxLength":300,"type":"string"},{"type":"null"}],"default":null,"description":"Text to look for in collections.","title":"Query"}},"title":"search_collectionsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}}}}