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
string
required
Namespace to read from.
array
required
Non-empty array of item id strings. Maximum 100 ids per request.
Examples
Returns
string
"success" when the lookup completed.string
Human-readable result description.
number
Number of ids sent in the request.
number
Number of items returned in
items. May be less than requested_ids if some ids were not found.array
Array of found items. Empty when none of the requested ids exist.
string
Item id.
string
Stored document text. Present for text namespace items only.
object
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.