Phone numbers
Registers a number to the tenant so it can be assigned to an agent. Calls to the number must also be routed to the platform by your telephony provider (SIP trunk). Numbers are unique across the platform.
Required permission: phone_numbers: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 number.
A new phone number.
number*stringThe number in E.164 format, e.g. +46812345678.
Created.
A phone number registered on the platform.
id*stringPhone number id.
number*stringThe number in E.164 format, e.g. +46812345678.
tenantId*stringTenant that owns the number.
assignedAgentId?stringAgent answering calls to this number, if assigned.
assignedAgentName?stringName of that agent.
curl -X POST 'https://api.envocal.ai/v1/tenants/string/phone-numbers' \ -H 'Content-Type: application/json' \ -d '{ "number": "string"}'{ "id": "string", "number": "string", "tenantId": "string", "assignedAgentId": "string", "assignedAgentName": "string"}curl -X POST 'https://api.envocal.ai/v1/tenants/string/phone-numbers' \
-H 'Content-Type: application/json' \
-d '{
"number": "string"
}'{
"id": "string",
"number": "string",
"tenantId": "string",
"assignedAgentId": "string",
"assignedAgentName": "string"
}