DocumentationAPI ReferenceChangelog

Envocal API

API Reference API Changelog

Endpoints

List agents of a tenant GETCreate an agent POSTGet an agent GETDelete an agent DELETEUpdate an agent PUTAssign a phone number to an agent POSTUnassign an agent's phone number DELETEList an agent's knowledge bases GETLink a knowledge base to an agent POSTUnlink a knowledge base from an agent DELETEList agent templates GETCreate an agent from a template POST
Agents

Unassign an agent's phone number

Assign a phone number to an agent POST

Calls to the number are then answered by this agent. An agent has at most one number; assigning another replaces it. The number must belong to the agent's tenant and not be assigned to another agent.

List an agent's knowledge bases GET

Requires agents:read

DELETE
/v1/tenants/{tenantId}/agents/{agentId}/phone-numbers

Required permission: agents: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.

agentId*string

Agent id.

Response Body

Unassigned (also when it had none).

Example Request
curl -X DELETE 'https://api.envocal.ai/v1/tenants/string/agents/string/phone-numbers'
Example Response
Empty
Example Request
curl -X DELETE 'https://api.envocal.ai/v1/tenants/string/agents/string/phone-numbers'