Knowledge bases
Send multipart/form-data with the document in a file field (e.g. PDF, Word, plain text or Markdown),
one document per request, at most 20 MB.
The document is processed in the background: poll POST /v1/tenants/{tenantId}/knowledge-bases/{kbId}/documents/status
with the returned id until its state is complete.
Required permission: knowledge:write
BearerAuthorizationBearer <token>Tenant API key (evk_…), created in Studio → Vault → API keys.
tenantId*stringTenant id, or current for the key's own tenant. Must be the key's tenant or one of its sub-tenants.
kbId*stringKnowledge base id.
multipart/form-datafile?filebinaryAccepted for processing. Body: { "id": "<document id>" }.
curl -X POST 'https://api.envocal.ai/v1/tenants/string/knowledge-bases/string/documents'curl -X POST 'https://api.envocal.ai/v1/tenants/string/knowledge-bases/string/documents'