Search notes using a required free-text query and structured filters.
When multiple filter_by_contains_* fields are true, a note may match any of them.
Returns note results from a bounded search snapshot with deterministic offset pagination.
Query-based searches are relevance-ranked within the bounded search snapshot window.
Reuse the returned snapshot_id when requesting later pages.
The returned total reflects the bounded search snapshot, capped by the 100-result search window.
For deterministic chronological pagination across all accessible notes, use GET /v2/notes.
Required text query for relevance matching.
The query must contain at least one non-whitespace character.
This endpoint does not provide exhaustive chronological pagination; for that, use
GET /v2/notes.
Number of matching notes captured in the bounded search snapshot, capped by the 100-result search window.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Mem API","colors":{"primary":"#3D69D9","light":"#6792FF","dark":"#1D47B3"},"logo":{"light":"https://mintcdn.com/mem/OtM7OVx6kAczpvxW/logo/light.svg?fit=max\u0026auto=format\u0026n=OtM7OVx6kAczpvxW\u0026q=85\u0026s=44740ce750f212aa35044317793de356","dark":"https://mintcdn.com/mem/OtM7OVx6kAczpvxW/logo/dark.svg?fit=max\u0026auto=format\u0026n=OtM7OVx6kAczpvxW\u0026q=85\u0026s=496fcca9a9e2876eec97390d87a80f74"},"favicon":"https://mintcdn.com/mem/OtM7OVx6kAczpvxW/favicon.svg?fit=max\u0026auto=format\u0026n=OtM7OVx6kAczpvxW\u0026q=85\u0026s=9eb055e5579806c03eef81490dc3433f","api":{"playground":{"display":"simple"},"examples":{"languages":["curl"]}},"navbar":{"links":[{"href":"https://support.mem.ai/","label":"Support"}],"primary":{"type":"button","label":"Go to Mem","href":"https://mem.ai"}},"footer":{"socials":{"x":"https://x.com/memdotai","github":"https://github.com/mem-labs","linkedin":"https://www.linkedin.com/company/memdotai"}},"fonts":{"family":"Ritual","source":"https://storage.googleapis.com/memassets/Ritual.woff2","format":"woff2"},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Community","icon":"slack","href":"https://get.mem.ai/slack"},{"anchor":"Blog","icon":"newspaper","href":"https://get.mem.ai/blog"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"mem","hasAudioNarration":false,"actualSubdomain":"mem","customDomains":["docs.mem.ai"],"gitSource":{"type":"github","owner":"mem-labs","repo":"mem","deployBranch":"main","contentDirectory":"workspaces/typescript/projects/dev-docs","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6a9b39d4896ebfa4e12a2126","collectionId":"7a4840c7-90b4-4477-9a2e-9fc69ca21538","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6a9b39d4896ebfa4e12a2126"},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6a9b39d4896ebfa4e12a2126","clientVersion":"0.0.4044","searchFilterCounts":[{"language":"default","tag":"API Reference","count":23},{"language":"default","tag":"Collections","count":9},{"language":"default","tag":"Notes","count":8},{"language":"default","tag":"API Documentation","count":5},{"language":"default","tag":"Guides","count":5},{"language":"default","tag":"MCP","count":4},{"language":"default","tag":"Model Context Protocol","count":4},{"language":"default","tag":"Get Started","count":2},{"language":"default","tag":"Use Cases","count":2},{"language":"default","tag":"Home","count":2}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":".light #content-container,.light #sidebar,.light #sidebar>.bg-background-light,html.light,html.light #root,html.light body{background-color:#fcf8f1}html.light{--background-light:252 248 241}.dark .docs-home-theme-illustration{filter:brightness(0) invert(1);opacity:.8}table{width:100%;border-collapse:collapse;margin:24px 0 20px;background-color:#fff;overflow:hidden;table-layout:fixed;display:table!important}td,th{padding:8px 12px!important;border:1px solid #e5e0e1;box-sizing:border-box;vertical-align:middle}th{background-color:#f5f5f5;font-weight:600;color:#333;text-transform:uppercase;font-size:.9em;letter-spacing:.5px;text-align:center}td{text-align:left}"}],"page":{"pagePath":"api-reference/notes/search-notes","slug":"/api-reference/notes/search-notes","pageMetadata":{"title":"Search Notes","openapi":"POST /v2/notes/search","description":"Search notes using a required free-text query and structured filters.\nWhen multiple `filter_by_contains_*` fields are true, a note may match any of them.\nReturns note results from a bounded search snapshot with deterministic offset pagination.\nQuery-based searches are relevance-ranked within the bounded search snapshot window.\nReuse the returned `snapshot_id` when requesting later pages.\nThe returned `total` reflects the bounded search snapshot, capped by the 100-result search window.\nFor deterministic chronological pagination across all accessible notes, use `GET /v2/notes`.","href":"/api-reference/notes/search-notes"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_components.p, {\n children: [\"Search notes using a required free-text query and structured filters.\\nWhen multiple \", _jsx(_components.code, {\n children: \"filter_by_contains_*\"\n }), \" fields are true, a note may match any of them.\\nReturns note results from a bounded search snapshot with deterministic offset pagination.\\nQuery-based searches are relevance-ranked within the bounded search snapshot window.\\nReuse the returned \", _jsx(_components.code, {\n children: \"snapshot_id\"\n }), \" when requesting later pages.\\nThe returned \", _jsx(_components.code, {\n children: \"total\"\n }), \" reflects the bounded search snapshot, capped by the 100-result search window.\\nFor deterministic chronological pagination across all accessible notes, use \", _jsx(_components.code, {\n children: \"GET /v2/notes\"\n }), \".\"]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Search Notes","openapi":"POST /v2/notes/search","description":"Search notes using a required free-text query and structured filters.\nWhen multiple `filter_by_contains_*` fields are true, a note may match any of them.\nReturns note results from a bounded search snapshot with deterministic offset pagination.\nQuery-based searches are relevance-ranked within the bounded search snapshot window.\nReuse the returned `snapshot_id` when requesting later pages.\nThe returned `total` reflects the bounded search snapshot, capped by the 100-result search window.\nFor deterministic chronological pagination across all accessible notes, use `GET /v2/notes`.","href":"/api-reference/notes/search-notes"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"description":"Search notes using a required free-text query and structured filters.\nWhen multiple `filter_by_contains_*` fields are true, a note may match any of them.\nReturns note results from a bounded search snapshot with deterministic offset pagination.\nQuery-based searches are relevance-ranked within the bounded search snapshot window.\nReuse the returned `snapshot_id` when requesting later pages.\nThe returned `total` reflects the bounded search snapshot, capped by the 100-result search window.\nFor deterministic chronological pagination across all accessible notes, use `GET /v2/notes`.","operationId":"app_src_api_routes_external_v2_notes_views_search_notes","parameters":["2b73be66-e8a2-48d7-af89-d11aeba30cc3","1f607220-5769-4aa3-bfcf-538b6d23ae96","92a35302-d377-4d66-a450-1fcdab66e3bc"],"requestBody":"e2040a12-559c-4bb7-9ead-23d43d1b298a","responses":{"200":"70b80c40-eccb-4876-a8df-65dd2a8cfc56"},"summary":"Search Notes","tags":["external","external-v2"],"x-codeSamples":[{"label":"cURL","lang":"bash","source":"curl \"https://api.mem.ai/v2/notes/search?limit=20\u0026offset=0\" \\\n --header \"Content-Type: application/json\" \\\n --header \"Authorization: Bearer $MEM_API_KEY\" \\\n --data '{\n \"query\": \"sales\"\n }'"}],"method":"post","type":"path","servers":["bedd9c91-de58-4c61-b033-0335a975a1f4"],"security":["1a23edc3-544e-4183-9fd0-2a3890047ad1"],"path":"/v2/notes/search","baseUrlOptions":["https://api.mem.ai"],"title":"Search Notes","codeSamples":[{"label":"cURL","lang":"bash","source":"curl \"https://api.mem.ai/v2/notes/search?limit=20\u0026offset=0\" \\\n --header \"Content-Type: application/json\" \\\n --header \"Authorization: Bearer $MEM_API_KEY\" \\\n --data '{\n \"query\": \"sales\"\n }'"}],"requestExampleLanguages":["bash"],"requiredOnlyExamples":false,"requestExampleType":"codeSamples","responseExampleType":"generated"},"dependencies":{"parameters":{"2b73be66-e8a2-48d7-af89-d11aeba30cc3":{"description":"Maximum number of notes in this search page.\nUse smaller values for lower latency.\nDefault is 20; valid range is 1 to 50.","in":"query","name":"limit","required":false,"schema":{"oneOf":[{"type":"integer","title":"Limit","description":"Maximum number of notes in this search page.\nUse smaller values for lower latency.\nDefault is 20; valid range is 1 to 50.","default":20,"maximum":50,"minimum":1,"uniqueKey":"oneOf.0","typeLabel":"integer"},{"type":"null","title":"Limit","description":"Maximum number of notes in this search page.\nUse smaller values for lower latency.\nDefault is 20; valid range is 1 to 50.","default":20,"uniqueKey":"oneOf.1","typeLabel":"null"}],"isRequired":false,"uniqueKey":"","typeLabel":"integer | null"}},"1f607220-5769-4aa3-bfcf-538b6d23ae96":{"description":"Number of matching notes to skip before returning results.\nThis value is zero-based.","in":"query","name":"offset","required":false,"schema":{"default":0,"description":"Number of matching notes to skip before returning results.\nThis value is zero-based.","minimum":0,"title":"Offset","type":"integer","isRequired":false,"uniqueKey":"","typeLabel":"integer"}},"92a35302-d377-4d66-a450-1fcdab66e3bc":{"description":"Opaque search snapshot identifier returned by a previous search page.\nRequired when requesting later pages with `offset > 0`.","in":"query","name":"snapshot_id","required":false,"schema":{"oneOf":[{"type":"string","title":"Snapshot Id","description":"Opaque search snapshot identifier returned by a previous search page.\nRequired when requesting later pages with `offset > 0`.","format":"uuid","uniqueKey":"oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","title":"Snapshot Id","description":"Opaque search snapshot identifier returned by a previous search page.\nRequired when requesting later pages with `offset > 0`.","uniqueKey":"oneOf.1","typeLabel":"null"}],"isRequired":false,"uniqueKey":"","typeLabel":"string\u003cuuid> | null"}}},"requestBody":{"content":{"application/json":{"schema":{"properties":{"query":{"description":"Required text query for relevance matching.\nThe query must contain at least one non-whitespace character.\nThis endpoint does not provide exhaustive chronological pagination; for that, use\n`GET /v2/notes`.","minLength":1,"title":"Query","type":"string","isRequired":true,"uniqueKey":"query","typeLabel":"string"},"config":{"type":"object","title":"NoteResultsConfigSchema","description":"Configuration flags controlling search response payload shape.","properties":{"include_note_content":{"default":false,"description":"When true, include full markdown content for each returned note.\nKeep false for lightweight metadata/snippet responses.","title":"Include Note Content","type":"boolean","uniqueKey":"config.include_note_content","typeLabel":"boolean"}},"uniqueKey":"config","typeLabel":"NoteResultsConfigSchema · object"},"filter_by_collection_ids":{"oneOf":[{"type":"array","items":{"format":"uuid","type":"string","uniqueKey":"filter_by_collection_ids.oneOf.0.items.[INDEX]","typeLabel":"string\u003cuuid>"},"title":"Filter By Collection Ids","description":"Optional collection UUID filters.\nWhen provided, results are limited to notes in any listed collection.","uniqueKey":"filter_by_collection_ids.oneOf.0","typeLabel":"string\u003cuuid>[]"},{"type":"null","title":"Filter By Collection Ids","description":"Optional collection UUID filters.\nWhen provided, results are limited to notes in any listed collection.","uniqueKey":"filter_by_collection_ids.oneOf.1","typeLabel":"null"}],"uniqueKey":"filter_by_collection_ids","typeLabel":"string\u003cuuid>[] | null"},"filter_by_contains_files":{"default":false,"description":"When true, include notes that contain file-like attachments\n(including file and PDF kinds).","title":"Filter By Contains Files","type":"boolean","uniqueKey":"filter_by_contains_files","typeLabel":"boolean"},"filter_by_contains_images":{"default":false,"description":"When true, include notes that contain image media\n(including image and GIF kinds).","title":"Filter By Contains Images","type":"boolean","uniqueKey":"filter_by_contains_images","typeLabel":"boolean"},"filter_by_contains_open_tasks":{"default":false,"description":"When true, include notes that contain at least one open task item.","title":"Filter By Contains Open Tasks","type":"boolean","uniqueKey":"filter_by_contains_open_tasks","typeLabel":"boolean"},"filter_by_contains_tasks":{"default":false,"description":"When true, include notes that contain at least one task item\n(open or closed).","title":"Filter By Contains Tasks","type":"boolean","uniqueKey":"filter_by_contains_tasks","typeLabel":"boolean"},"filter_by_created_after":{"oneOf":[{"type":"string","title":"Filter By Created After","description":"Optional inclusive lower bound for note creation time (ISO 8601).\nThe timestamp must include a timezone offset such as `Z` or `+01:00`.","format":"date-time","example":"2025-04-01T14:30:45Z","uniqueKey":"filter_by_created_after.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","title":"Filter By Created After","description":"Optional inclusive lower bound for note creation time (ISO 8601).\nThe timestamp must include a timezone offset such as `Z` or `+01:00`.","example":"2025-04-01T14:30:45Z","uniqueKey":"filter_by_created_after.oneOf.1","typeLabel":"null"}],"uniqueKey":"filter_by_created_after","typeLabel":"string\u003cdate-time> | null"},"filter_by_created_before":{"oneOf":[{"type":"string","title":"Filter By Created Before","description":"Optional inclusive upper bound for note creation time (ISO 8601).\nThe timestamp must include a timezone offset such as `Z` or `+01:00`.","format":"date-time","example":"2025-04-30T23:59:59Z","uniqueKey":"filter_by_created_before.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","title":"Filter By Created Before","description":"Optional inclusive upper bound for note creation time (ISO 8601).\nThe timestamp must include a timezone offset such as `Z` or `+01:00`.","example":"2025-04-30T23:59:59Z","uniqueKey":"filter_by_created_before.oneOf.1","typeLabel":"null"}],"uniqueKey":"filter_by_created_before","typeLabel":"string\u003cdate-time> | null"},"filter_by_updated_after":{"oneOf":[{"type":"string","title":"Filter By Updated After","description":"Optional inclusive lower bound for note update time (ISO 8601).\nThe timestamp must include a timezone offset such as `Z` or `+01:00`.","format":"date-time","example":"2025-04-01T14:30:45Z","uniqueKey":"filter_by_updated_after.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","title":"Filter By Updated After","description":"Optional inclusive lower bound for note update time (ISO 8601).\nThe timestamp must include a timezone offset such as `Z` or `+01:00`.","example":"2025-04-01T14:30:45Z","uniqueKey":"filter_by_updated_after.oneOf.1","typeLabel":"null"}],"uniqueKey":"filter_by_updated_after","typeLabel":"string\u003cdate-time> | null"},"filter_by_updated_before":{"oneOf":[{"type":"string","title":"Filter By Updated Before","description":"Optional inclusive upper bound for note update time (ISO 8601).\nThe timestamp must include a timezone offset such as `Z` or `+01:00`.","format":"date-time","example":"2025-04-30T23:59:59Z","uniqueKey":"filter_by_updated_before.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","title":"Filter By Updated Before","description":"Optional inclusive upper bound for note update time (ISO 8601).\nThe timestamp must include a timezone offset such as `Z` or `+01:00`.","example":"2025-04-30T23:59:59Z","uniqueKey":"filter_by_updated_before.oneOf.1","typeLabel":"null"}],"uniqueKey":"filter_by_updated_before","typeLabel":"string\u003cdate-time> | null"}},"required":["query"],"title":"NoteSearchRequestSchema","type":"object","uniqueKey":"","typeLabel":"NoteSearchRequestSchema · object"},"examples":{"Example":{"title":"Example","value":{"query":"\u003cstring>","config":{"include_note_content":false},"filter_by_collection_ids":["3c90c3cc-0d44-4b50-8888-8dd25736052a"],"filter_by_contains_files":false,"filter_by_contains_images":false,"filter_by_contains_open_tasks":false,"filter_by_contains_tasks":false,"filter_by_created_after":"2025-04-01T14:30:45Z","filter_by_created_before":"2025-04-30T23:59:59Z","filter_by_updated_after":"2025-04-01T14:30:45Z","filter_by_updated_before":"2025-04-30T23:59:59Z"}}},"exampleType":"generated"}},"required":true,"exampleType":"generated"},"responses":{"70b80c40-eccb-4876-a8df-65dd2a8cfc56":{"content":{"application/json":{"schema":{"example":{"has_next_page":true,"limit":1,"offset":0,"request_id":"api-request-018f8d0d-5a3c-7afc-8321-2f6f6e0fefab","results":[{"audio_recording_ids":["78ff64bc-09e3-4fd7-a4b9-53c258f35619"],"collection_ids":["59508b41-8770-4855-aa37-302b1e09aee7"],"content":"# Recipe Notes\n\n- Lemon pasta\n- Chili oil dumplings\n","created_at":"2025-03-18T11:00:00Z","id":"018f8d0d-5a3c-7afc-8321-2f6f6e0fefab","snippet":"Dinner ideas","title":"Recipe Notes","updated_at":"2025-04-22T16:12:34Z"}],"snapshot_id":"fd233b1f-25ac-4c0d-94db-4fa0843084ff","total":12},"properties":{"has_next_page":{"description":"Whether another request within the 100-result search window can return more matching notes.","title":"Has Next Page","type":"boolean","isRequired":true,"uniqueKey":"has_next_page","typeLabel":"boolean"},"limit":{"description":"Limit applied to this search page.","title":"Limit","type":"integer","isRequired":true,"uniqueKey":"limit","typeLabel":"integer"},"offset":{"description":"Zero-based offset applied before returning results.","title":"Offset","type":"integer","isRequired":true,"uniqueKey":"offset","typeLabel":"integer"},"request_id":{"description":"Identifier for this API request. Useful for tracing and support.","title":"Request Id","type":"string","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"},"results":{"description":"Relevance-ranked note results matching the search request.","items":{"properties":{"audio_recording_ids":{"description":"Audio Recording UUIDs currently associated with the note.","items":{"format":"uuid","type":"string","uniqueKey":"results.items.[INDEX].audio_recording_ids.items.[INDEX]","typeLabel":"string\u003cuuid>"},"title":"Audio Recording Ids","type":"array","isRequired":true,"uniqueKey":"results.items.[INDEX].audio_recording_ids","typeLabel":"string\u003cuuid>[]"},"collection_ids":{"description":"Collection UUIDs currently associated with the note.","items":{"format":"uuid","type":"string","uniqueKey":"results.items.[INDEX].collection_ids.items.[INDEX]","typeLabel":"string\u003cuuid>"},"title":"Collection Ids","type":"array","isRequired":true,"uniqueKey":"results.items.[INDEX].collection_ids","typeLabel":"string\u003cuuid>[]"},"created_at":{"description":"Creation timestamp for the note in ISO 8601 format.","format":"date-time","title":"Created At","type":"string","isRequired":true,"uniqueKey":"results.items.[INDEX].created_at","typeLabel":"string\u003cdate-time>"},"id":{"description":"UUID of the note.","format":"uuid","title":"Id","type":"string","isRequired":true,"uniqueKey":"results.items.[INDEX].id","typeLabel":"string\u003cuuid>"},"title":{"description":"Current title of the note.","title":"Title","type":"string","isRequired":true,"uniqueKey":"results.items.[INDEX].title","typeLabel":"string"},"updated_at":{"description":"Last modification timestamp for the note in ISO 8601 format.","format":"date-time","title":"Updated At","type":"string","isRequired":true,"uniqueKey":"results.items.[INDEX].updated_at","typeLabel":"string\u003cdate-time>"},"content":{"oneOf":[{"type":"string","title":"Content","description":"Full markdown content for the note.\nIncluded only when `config.include_note_content=true` is requested.","uniqueKey":"results.items.[INDEX].content.oneOf.0","typeLabel":"string"},{"type":"null","title":"Content","description":"Full markdown content for the note.\nIncluded only when `config.include_note_content=true` is requested.","uniqueKey":"results.items.[INDEX].content.oneOf.1","typeLabel":"null"}],"uniqueKey":"results.items.[INDEX].content","typeLabel":"string | null"},"snippet":{"oneOf":[{"type":"string","title":"Snippet","description":"Optional derived preview text for quick display and ranking context.\nIt may be truncated and is not guaranteed to contain full note context.","uniqueKey":"results.items.[INDEX].snippet.oneOf.0","typeLabel":"string"},{"type":"null","title":"Snippet","description":"Optional derived preview text for quick display and ranking context.\nIt may be truncated and is not guaranteed to contain full note context.","uniqueKey":"results.items.[INDEX].snippet.oneOf.1","typeLabel":"null"}],"uniqueKey":"results.items.[INDEX].snippet","typeLabel":"string | null"}},"required":["id","title","collection_ids","audio_recording_ids","created_at","updated_at"],"title":"NoteSearchItemResponseSchema","type":"object","uniqueKey":"results.items.[INDEX]","typeLabel":"NoteSearchItemResponseSchema · object"},"title":"Results","type":"array","isRequired":true,"uniqueKey":"results","typeLabel":"NoteSearchItemResponseSchema · object[]"},"snapshot_id":{"description":"Opaque snapshot identifier to reuse for deterministic later pages.","format":"uuid","title":"Snapshot Id","type":"string","isRequired":true,"uniqueKey":"snapshot_id","typeLabel":"string\u003cuuid>"},"total":{"description":"Number of matching notes captured in the bounded search snapshot, capped by the 100-result search window.","title":"Total","type":"integer","isRequired":true,"uniqueKey":"total","typeLabel":"integer"}},"required":["request_id","results","total","offset","limit","has_next_page","snapshot_id"],"title":"NoteSearchResponseSchema","type":"object","uniqueKey":"","typeLabel":"NoteSearchResponseSchema · object"},"examples":{"Example":{"title":"Example","value":{"has_next_page":true,"limit":1,"offset":0,"request_id":"api-request-018f8d0d-5a3c-7afc-8321-2f6f6e0fefab","results":[{"audio_recording_ids":["78ff64bc-09e3-4fd7-a4b9-53c258f35619"],"collection_ids":["59508b41-8770-4855-aa37-302b1e09aee7"],"content":"# Recipe Notes\n\n- Lemon pasta\n- Chili oil dumplings\n","created_at":"2025-03-18T11:00:00Z","id":"018f8d0d-5a3c-7afc-8321-2f6f6e0fefab","snippet":"Dinner ideas","title":"Recipe Notes","updated_at":"2025-04-22T16:12:34Z"}],"snapshot_id":"fd233b1f-25ac-4c0d-94db-4fa0843084ff","total":12}}},"exampleType":"generated"}},"description":"OK","exampleType":"generated"}},"security":{"1a23edc3-544e-4183-9fd0-2a3890047ad1":{"bearerAuth":{"scheme":"bearer","type":"http","scopes":[]}}},"servers":{"bedd9c91-de58-4c61-b033-0335a975a1f4":{"url":"https://api.mem.ai"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"scheme":"bearer","type":"http","scopes":[]},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"mem","siteName":"Mem API","title":"Search Notes - Mem API","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-06-24T19:37:22.665Z","originalFileLocation":"api-reference/notes/search-notes.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Search notes using a required free-text query and structured filters. When multiple filter_by_contains_* fields are true, a note may match any of them. Returns note results from a bounded search snapshot with deterministic offset pagination. Query-based searches are relevance-ranked within the bounded search snapshot window. Reuse the returned snapshot_id when requesting later pages. The returned total reflects the bounded search snapshot, capped by the 100-result search window. For deterministic chronological pagination across all accessible notes, use GET /v2/notes.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Mem API\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/mem/YlDIdVjHL79F2fo4/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/mem/YlDIdVjHL79F2fo4/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/mem/YlDIdVjHL79F2fo4/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/mem/YlDIdVjHL79F2fo4/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/mem/YlDIdVjHL79F2fo4/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/mem/YlDIdVjHL79F2fo4/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/mem/YlDIdVjHL79F2fo4/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/mem/YlDIdVjHL79F2fo4/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/mem/YlDIdVjHL79F2fo4/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Search Notes - Mem API\">\u003cmeta data-mint-head property=\"og:description\" content=\"Search notes using a required free-text query and structured filters. When multiple filter_by_contains_* fields are true, a note may match any of them. Returns note results from a bounded search snapshot with deterministic offset pagination. Query-based searches are relevance-ranked within the bounded search snapshot window. Reuse the returned snapshot_id when requesting later pages. The returned total reflects the bounded search snapshot, capped by the 100-result search window. For deterministic chronological pagination across all accessible notes, use GET /v2/notes.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Mem API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.mem.ai/api-reference/notes/search-notes\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://mem.mintlify.app/_mintlify/api/og/v2?division=Notes\u0026amp;title=Search+Notes\u0026amp;description=Search+notes+using+a+required+free-text+query+and+structured+filters.%0AWhen+multiple+%60filter_by_contains_*%60+fields+are+true%2C+a+note+may+match+any+of+them.%0AReturn\u0026amp;theme=8fdc537d852f84bc8ae932ae\u0026amp;signature=900e9afc75cd9e432121be307c5f08f19655e8df0e6658dcee8fef256d0269aa\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Search Notes - Mem API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Search notes using a required free-text query and structured filters. When multiple filter_by_contains_* fields are true, a note may match any of them. Returns note results from a bounded search snapshot with deterministic offset pagination. Query-based searches are relevance-ranked within the bounded search snapshot window. Reuse the returned snapshot_id when requesting later pages. The returned total reflects the bounded search snapshot, capped by the 100-result search window. For deterministic chronological pagination across all accessible notes, use GET /v2/notes.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://mem.mintlify.app/_mintlify/api/og/v2?division=Notes\u0026amp;title=Search+Notes\u0026amp;description=Search+notes+using+a+required+free-text+query+and+structured+filters.%0AWhen+multiple+%60filter_by_contains_*%60+fields+are+true%2C+a+note+may+match+any+of+them.%0AReturn\u0026amp;theme=8fdc537d852f84bc8ae932ae\u0026amp;signature=900e9afc75cd9e432121be307c5f08f19655e8df0e6658dcee8fef256d0269aa\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/mem/YlDIdVjHL79F2fo4/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Mem API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#3D69D9\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.mem.ai/api-reference/notes/search-notes\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/notes/search-notes.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.mem.ai/#organization\",\"name\":\"Mem API\",\"url\":\"https://docs.mem.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/mem/OtM7OVx6kAczpvxW/logo/light.svg?fit=max\u0026auto=format\u0026n=OtM7OVx6kAczpvxW\u0026q=85\u0026s=44740ce750f212aa35044317793de356\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.mem.ai#website\",\"name\":\"Mem API\",\"url\":\"https://docs.mem.ai\",\"publisher\":{\"@id\":\"https://docs.mem.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.mem.ai/api-reference/notes/search-notes#webpage\",\"url\":\"https://docs.mem.ai/api-reference/notes/search-notes\",\"name\":\"Search Notes\",\"description\":\"Search notes using a required free-text query and structured filters. When multiple filter_by_contains_* fields are true, a note may match any of them. Returns note results from a bounded search snapshot with deterministic offset pagination. Query-based searches are relevance-ranked within the bounded search snapshot window. Reuse the returned snapshot_id when requesting later pages. The returned total reflects the bounded search snapshot, capped by the 100-result search window. For deterministic chronological pagination across all accessible notes, use GET /v2/notes.\",\"dateModified\":\"2026-06-24T19:37:22.665Z\",\"isPartOf\":{\"@id\":\"https://docs.mem.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.mem.ai/api-reference/notes/search-notes#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.mem.ai/api-reference/notes/search-notes#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Notes\",\"item\":\"https://docs.mem.ai/api-reference/notes/create-note\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Search Notes\",\"item\":\"https://docs.mem.ai/api-reference/notes/search-notes\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.mem.ai/api-reference/notes/search-notes#apireference\",\"headline\":\"Search Notes\",\"name\":\"Search Notes\",\"description\":\"Search notes using a required free-text query and structured filters. When multiple filter_by_contains_* fields are true, a note may match any of them. Returns note results from a bounded search snapshot with deterministic offset pagination. Query-based searches are relevance-ranked within the bounded search snapshot window. Reuse the returned snapshot_id when requesting later pages. The returned total reflects the bounded search snapshot, capped by the 100-result search window. For deterministic chronological pagination across all accessible notes, use GET /v2/notes.\",\"url\":\"https://docs.mem.ai/api-reference/notes/search-notes\",\"mainEntityOfPage\":{\"@id\":\"https://docs.mem.ai/api-reference/notes/search-notes#webpage\"},\"dateModified\":\"2026-06-24T19:37:22.665Z\",\"publisher\":{\"@id\":\"https://docs.mem.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.mem.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Mem API\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Mem API","nav":{"global":{"anchors":[{"anchor":"Community","icon":"slack","href":"https://get.mem.ai/slack"},{"anchor":"Blog","icon":"newspaper","href":"https://get.mem.ai/blog"}]},"tabs":[{"tab":"Home","pages":[{"title":"Home","href":""}]},{"tab":"Guides","pages":[{"title":"Guides","href":"/guides/get-started/overview"}]},{"tab":"API Reference","groups":[{"group":"API Documentation","pages":[{"title":"Introduction","mode":"wide","href":"/api-reference/overview/introduction"},{"title":"Authentication","mode":"wide","href":"/api-reference/overview/authentication"},{"title":"Rate Limits","mode":"wide","href":"/api-reference/overview/rate-limits"},{"title":"Error Handling","mode":"wide","href":"/api-reference/overview/error-handling"},{"title":"Changelog","href":"/api-reference/overview/changelog"}]},{"group":"Mem It","pages":[{"title":"Mem It","openapi":"POST /v2/mem-it","href":"/api-reference/mem-it/mem-it"}]},{"group":"Notes","pages":[{"title":"Create Note","openapi":"POST /v2/notes","href":"/api-reference/notes/create-note"},{"title":"Read Note","openapi":"GET /v2/notes/{note_id}","href":"/api-reference/notes/read-note"},{"title":"Update Note","openapi":"PATCH /v2/notes/{note_id}","href":"/api-reference/notes/update-note"},{"title":"Set Note Created At","openapi":"PATCH /v2/notes/{note_id}/created-at","href":"/api-reference/notes/set-note-created-at"},{"title":"Delete Note","openapi":"DELETE /v2/notes/{note_id}","href":"/api-reference/notes/delete-note"},{"title":"List Notes","openapi":"GET /v2/notes","description":"List notes visible to the authenticated caller with cursor pagination.\nWhen multiple `contains_*` fields are true, a note may match any of them.\nResults are ordered by `order_by` and return `next_page` when additional rows are available.\nFor relevance-ranked retrieval by query, use `POST /v2/notes/search`.","href":"/api-reference/notes/list-notes"},{"title":"Search Notes","openapi":"POST /v2/notes/search","href":"/api-reference/notes/search-notes"},{"title":"Find Related Notes","openapi":"GET /v2/notes/{note_id}/related-notes","description":"Find notes semantically related to the current persisted content of a note.\nThe source note is embedded at request time, so newly created or recently\nupdated notes can be used before asynchronous indexing catches up.\nCandidate related notes still come from the note search index.","href":"/api-reference/notes/find-related-notes"}]},{"group":"Collections","pages":[{"title":"Create Collection","openapi":"POST /v2/collections","href":"/api-reference/collections/create-collection"},{"title":"Read Collection","openapi":"GET /v2/collections/{collection_id}","href":"/api-reference/collections/read-collection"},{"title":"Update Collection","openapi":"PATCH /v2/collections/{collection_id}","href":"/api-reference/collections/update-collection"},{"title":"Add Note to Collection","openapi":"PUT /v2/collections/{collection_id}/notes/{note_id}","href":"/api-reference/collections/add-note-to-collection"},{"title":"Remove Note from Collection","openapi":"DELETE /v2/collections/{collection_id}/notes/{note_id}","href":"/api-reference/collections/remove-note-from-collection"},{"title":"Move Note","openapi":"POST /v2/collections/{source_collection_id}/notes/{note_id}/move","href":"/api-reference/collections/move-note"},{"title":"Delete Collection","openapi":"DELETE /v2/collections/{collection_id}","href":"/api-reference/collections/delete-collection"},{"title":"List Collections","openapi":"GET /v2/collections","href":"/api-reference/collections/list-collections"},{"title":"Search Collections","openapi":"POST /v2/collections/search","href":"/api-reference/collections/search-collections"}]}]},{"tab":"MCP","pages":[{"title":"MCP","href":"/mcp/overview"}]}]},"basePath":"","title":"Search Notes - Mem API","buildId":"dpl_DeHjVRGfFnhYQwHnfC2pjeXXv8h9","deploymentId":"dpl_DeHjVRGfFnhYQwHnfC2pjeXXv8h9","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CS552b7R.js","utils-DDTCYAF2.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-De8ttokP.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-DrwRDvAh.js","snippetPresets-DtAN0nWx.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-D5rWArI6.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-O2i12wsz.js","shallow-DV8xABTt.js","getApiPlaygroundDisplay-DBZ0B5Jx.js","CodeSnippet-BVi0tPUX.js","CodeSnippets-CqASbIwY.js","Page-m07pfKpT.js","getPastedJson-DG9vsMS8.js","icon-CXzRSCr8.js","MethodPill-BdKVtEuX.js","DuplicateIcon-CZlmBrJI.js","createIcon-biFEUKPL.js","DynamicMarkdown-B54_zNBF.js","SectionHeading-DwwHK3Pt.js","axios-vUo_bRtp.js","Markdown-DfhCTwyA.js","clsx-xpJZXxdP.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-BTZUMDnx.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-DqdKa2R4.js"]}