Knowledge bases
An empty knowledge base; add documents with POST /v1/tenants/{tenantId}/knowledge-bases/{kbId}/documents and link it to agents.
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.
The knowledge base.
A new knowledge base.
name*stringName, unique per tenant.
description?stringOptional description.
Created.
A knowledge base: a set of documents agents can search during conversations.
id*stringKnowledge base id.
name*stringName, unique per tenant.
description?stringOptional description.
documentCount?integerNumber of documents.
int32tenantId*stringTenant it belongs to.
curl -X POST 'https://api.envocal.ai/v1/tenants/string/knowledge-bases' \ -H 'Content-Type: application/json' \ -d '{ "name": "string"}'{ "id": "string", "name": "string", "description": "string", "documentCount": 0, "tenantId": "string"}curl -X POST 'https://api.envocal.ai/v1/tenants/string/knowledge-bases' \
-H 'Content-Type: application/json' \
-d '{
"name": "string"
}'{
"id": "string",
"name": "string",
"description": "string",
"documentCount": 0,
"tenantId": "string"
}