Get a collection
GET
The collection's definition: its indexes, default TTL and status. Collections are project-level, so this takes no scope.
Authorization
AuthorizationheaderrequiredBearer YOUR_API_KEY. Create a key in the dashboard.
Path parameters
collectionstringrequiredCollection name.
Responses
200Collection details.
collectionobjectrequiredA namespace of JSON documents addressed by key.
6 properties
namestringrequiredindexesobject[]requiredFields that
POST /v1/memory/collections/{collection}/querycan filter on. Immutable after creation.1 properties
fieldstringrequired
defaultTtlSecondsintegerrequiredTTL applied to items written without their own
ttlSeconds. Null means items are kept until deleted.statusstringrequiredactive, ordeletingwhile a delete drains in the background.createdAtstring<date-time>requiredupdatedAtstring<date-time>required
400Invalid collection name.
codestringrequiredmessagestringrequireddetailsobject
401Unauthorized.
codestringrequiredmessagestringrequireddetailsobject
404Collection not found.
codestringrequiredmessagestringrequireddetailsobject