documents.upload
Uploads one or more documents to a text namespace. Each document is embedded with the configured embedding provider and stored for semantic search. The upload runs asynchronously — pollclient.documents.upload_job_status with the returned job_id.
The
* means documents is keyword-only. Extra fields on each document (for example team, source) are stored as metadata for search filters (#team:ai in the query).POST /namespaces/{namespace_name}/documents — see Upload documents
Parameters
Examples
Returns
Id of the async upload job. Poll documents.upload_job_status with this value.
Current total item count on the instance. Present on 409 item limit errors in
MoorchehApiError.body.Number of new item ids in the request that would exceed the cap. Present on 409 item limit errors.
Example return value
Error Handling
Non-2xx responses raiseMoorchehApiError. Use e.is_item_limit_exceeded for 409 quota errors.