Get an item
GET
Authorization
AuthorizationheaderrequiredBearer YOUR_API_KEY. Create a key in the dashboard.
Path parameters
collectionstringrequiredCollection name.
keystringrequiredItem key. 1-255 chars from A-Z a-z 0-9 . _ : @ -
Query parameters
scopestringWhich scope to address:
contact:<contactId>,conversation:<conversationId>, or omitted for the project scope.Note the asymmetry with
POST /v1/memoryandPOST /v1/memory/search, which take the scope in the request BODY asscopepluscontactId/conversationId. Every other Memory endpoint takes it here.
Responses
200The item.
itemobjectrequiredOne JSON document in a collection.
6 properties
keystringrequiredvalueanyThe stored JSON. Any JSON value.
revintegerrequiredRevision, incremented on every write. Pass it as
If-Matchon a later write to make that write conditional.createdAtstring<date-time>requiredupdatedAtstring<date-time>requiredexpiresAtstring<date-time>
400Invalid collection name, key, or `scope`.
codestringrequiredmessagestringrequireddetailsobject
401Unauthorized.
codestringrequiredmessagestringrequireddetailsobject
404`collection_not_found` or `item_not_found`. An item written in one scope is not found in another — pass the same `?scope=`.
codestringrequiredmessagestringrequireddetailsobject