curl "https://api.mem.ai/v2/collections/search" \
--header "Content-Type: application/json" \
--header "Authorization: Bearer $MEM_API_KEY" \
--data '{
"query": "recipes"
}'{
"request_id": "api-request-018f8d0d-5a3c-7afc-8321-2f6f6e0fefab",
"results": [
{
"created_at": "2025-03-18T11:00:00Z",
"description": "Saved recipes from around the web",
"id": "018f8d0d-5a3c-7afc-8321-2f6f6e0fefab",
"note_count": 10,
"title": "Recipe Notes",
"updated_at": "2025-04-22T16:12:34Z"
}
],
"total": 1
}Search Collections
Search collections using free-text relevance matching.
Returns a bounded relevance-ranked result set and does not return next_page.
For deterministic chronological pagination, use GET /v2/collections.
curl "https://api.mem.ai/v2/collections/search" \
--header "Content-Type: application/json" \
--header "Authorization: Bearer $MEM_API_KEY" \
--data '{
"query": "recipes"
}'{
"request_id": "api-request-018f8d0d-5a3c-7afc-8321-2f6f6e0fefab",
"results": [
{
"created_at": "2025-03-18T11:00:00Z",
"description": "Saved recipes from around the web",
"id": "018f8d0d-5a3c-7afc-8321-2f6f6e0fefab",
"note_count": 10,
"title": "Recipe Notes",
"updated_at": "2025-04-22T16:12:34Z"
}
],
"total": 1
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Optional inclusive lower bound for collection creation time (ISO 8601).
The timestamp must include a timezone offset such as Z or +01:00.
"2025-04-01T14:30:45Z"
Optional inclusive upper bound for collection creation time (ISO 8601).
The timestamp must include a timezone offset such as Z or +01:00.
"2025-04-30T23:59:59Z"
Optional inclusive lower bound for collection update time (ISO 8601).
The timestamp must include a timezone offset such as Z or +01:00.
"2025-04-01T14:30:45Z"
Optional inclusive upper bound for collection update time (ISO 8601).
The timestamp must include a timezone offset such as Z or +01:00.
"2025-04-30T23:59:59Z"
Optional text query for relevance matching across collections. If omitted, search can still return a bounded general set.
Response
OK
Identifier for this API request. Useful for tracing and support.
Relevance-ranked collection results matching the search request.
Show child attributes
Show child attributes
Number of collections returned by this bounded search response.