Query items by field
Changed onFind items by an indexed field instead of by key, within one scope.
The field must have been declared in indexes when the collection was created. Querying any other field returns 400 field_not_indexed — including every field of a collection that was auto-created by its first write, which has no indexes at all.
Request
- Base URLhttps://api.zavu.dev
- URLhttps://api.zavu.dev/v1/memory/collections/{collection}/query
- AuthHTTP bearer
Path parameters
Collection name.
Query parameters
Scope as a query-string value: contact:<contactId>, conversation:<conversationId>, the literal project, or omitted for project scope.
Only the SHAPE of the id is validated, never its existence — the partition already carries your project, so an id that matches nothing simply addresses an empty scope rather than returning 404.
Which scope to address: contact:<contactId>, conversation:<conversationId>, or omitted for the project scope.
Note the asymmetry with POST /v1/memory and POST /v1/memory/search, which take the scope in the request BODY as scope plus contactId/conversationId. Every other Memory endpoint takes it here.
Request body
Example request
{
"where": {
"field": "status"
}
}Response
Matching items.
Example response
{
"items": [
{
"key": "ORD-12345",
"value": {
"status": "shipped",
"total": 42.5
},
"rev": 3
}
]
}Changes
- info
removed the non-success response with the status
- info
- info
endpoint added
- info