Skip to main content

documents.get

Fetch stored items by id within a namespace. Item ids are unique per namespace, not globally. Missing ids are omitted from items without failing the request.
  • Text namespaces return id, text, and metadata
  • Vector namespaces return id and metadata only (vectors are not returned)
API: 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 raise MoorchehApiError. A successful lookup with missing ids does not raise — check found_items vs requested_ids.
  • Maximum 100 ids per request — use multiple requests for larger batches
  • Missing ids are skipped; check found_items vs requested_ids
  • Vector embeddings are not included in the response