API ReferenceKnowledge base sync
Manual Knowledge Base synchronization
Triggers manual synchronization of a Knowledge Base. Can regenerate embeddings for all documents or sync with external sources.
Authorization
ApiKeyAuth AuthorizationBearer <token>
Bearer token for API authentication
In: header
Path Parameters
id*string
Unique ID of the Knowledge Base
Request Body
application/json
force?boolean
Force regeneration of all embeddings
Default
falseregenerateEmbeddings?boolean
Regenerate existing embeddings
Default
falsesyncExternalSources?boolean
Sync with configured external sources
Default
trueResponse Body
application/json
curl -X POST "https://app.docutray.com/api/knowledge-bases/string/sync" \ -H "Content-Type: application/json" \ -d '{}'{
"data": {
"syncId": "string",
"status": "completed",
"documentsProcessed": 0,
"embeddingsGenerated": 0,
"errors": [
"string"
],
"startedAt": "2019-08-24T14:15:22Z",
"completedAt": "2019-08-24T14:15:22Z"
}
}Empty
Empty
Empty
Empty
Empty
Empty
Empty
Semantic search in Knowledge Base GET
Performs semantic search using vector similarity in a specific Knowledge Base. Uses embeddings generated with Gemini API and cosine similarity to find relevant documents.
Create new Knowledge Base POST
Creates a new Knowledge Base for the authenticated user's organization.