main
knowledge-base
Trigger document processing
Changed onTrigger asynchronous processing of an uploaded document.
This endpoint should be called after successfully uploading a file to the presigned URL. It will:
- Create a document record in the database with the specified UUID
- Enqueue a background task to process the document (chunking and embedding)
The document status will be updated from 'pending' -> 'processing' -> 'completed' or 'failed'.
Embedding: Uses OpenAI text-embedding-3-small (1536-dimensional embeddings, requires API key configured in Model Configurations).
Access Control:
- Users can only process documents in their organization.
post/api/v1/knowledge-base/process-document
Request
- Base URLhttps://app.dograh.com
- URLhttps://app.dograh.com/api/v1/knowledge-base/process-document
- Authnone declared
Headers
authorizationstring nullable
X-API-Keystring nullable
Request body
Response
Successful Response
Changes
- info
endpoint added
- info