DocumentationAPI ReferenceChangelog

Envocal API

API Reference API Changelog

Endpoints

List knowledge bases of a tenant GETCreate a knowledge base POSTDelete a knowledge base DELETERename or describe a knowledge base PUTList documents in a knowledge base GETUpload a document POSTDelete a document DELETEGet processing status of documents POST
Knowledge bases

Rename or describe a knowledge base

Delete a knowledge base DELETE

Deletes the knowledge base and all its documents. Agents linked to it lose access.

List documents in a knowledge base GET

Requires knowledge:read

PUT
/v1/tenants/{tenantId}/knowledge-bases/{id}

Required permission: knowledge:write

Authorization

Bearer
headerAuthorizationBearer <token>

Tenant API key (evk_…), created in Studio → Vault → API keys.

Path Parameters

tenantId*string

Tenant id, or current for the key's own tenant. Must be the key's tenant or one of its sub-tenants.

id*string

Knowledge base id.

Request Body

New name and description.

  1. body
  1. body
  2. …

New name and description for a knowledge base.

id*string

Knowledge base id; must match the route.

name*string

Name, unique per tenant.

description?string

Description; null clears it.

Response Body

Updated.

Example Request
curl -X PUT 'https://api.envocal.ai/v1/tenants/string/knowledge-bases/string' \  -H 'Content-Type: application/json' \  -d '{  "id": "string",  "name": "string"}'
Example Response
Empty
Example Request
curl -X PUT 'https://api.envocal.ai/v1/tenants/string/knowledge-bases/string' \
  -H 'Content-Type: application/json' \
  -d '{
  "id": "string",
  "name": "string"
}'