documents.get
Fetch stored items by id within a namespace. Item ids are unique per namespace, not globally. Missing ids are omitted fromitems without failing the request.
- Text namespaces return
id,text, andmetadata - Vector namespaces return
idandmetadataonly (vectors are not returned)
POST /namespaces/{namespace_name}/items/get — see Get items
Parameters
Namespace to read from.
Non-empty array of item id strings. Maximum 100 ids per request.
Examples
Returns
"success" when the lookup completed.Human-readable result description.
Number of ids sent in the request.
Number of items returned in
items. May be less than requested_ids if some ids were not found.Array of found items. Empty when none of the requested ids exist.
Item id.
Stored document text. Present for text namespace items only.
Metadata stored with the item (custom fields from upload).
Example return value (text namespace)
Example return value (vector namespace)
Error Handling
Non-2xx responses raiseMoorchehApiError. A successful lookup with missing ids does not raise — check found_items vs requested_ids.
| Status | Cause |
|---|---|
| 400 | Empty ids, more than 100 ids, or empty id string |
| 404 | Namespace not found |