DocumentationAPI ReferenceChangelog

Envocal API

API Reference API Changelog

Endpoints

API Reference

Provision tenants, agents, knowledge bases and phone numbers, and read conversations and usage, from your own systems.

The Envocal API lets you do from your own systems what you do in Envocal Studio: create customer tenants, set up agents with knowledge bases and phone numbers, invite their users, and read conversations and usage for reporting and billing. It is a plain HTTPS/JSON API; every endpoint is documented in the groups below.

OpenAPI spec

The whole API in one file: every endpoint, parameter, schema and response, with descriptions. Give it to your AI coding agent or load it into your API client or code generator.

Base URL

https://api.envocal.ai

Every path starts with /v1, for example https://api.envocal.ai/v1/me.

Authentication

Requests are authenticated with a tenant API key, sent as a bearer token:

curl https://api.envocal.ai/v1/me \
  -H "Authorization: Bearer evk_eu_..."

Tenant admins create keys in Studio → Vault → API keys (see Vault). The full key is shown once when it is created; store it in a secrets manager. A key looks like evk_eu_…: the second part is the data region the key's tenant lives in. A missing, invalid, revoked or expired key gets 401 Unauthorized.

Start with /v1/me

GET /v1/me returns the key's name, its tenant, its permissions and its region. It works with any valid key, so it is the quickest way to check that a key is set up correctly.

Try it in the browser

Every endpoint page has Try in Playground. Paste your key after Bearer in the Authorization field and click Send: the request goes from your browser straight to https://api.envocal.ai, and the response appears next to it. The key is kept only in that browser tab and is gone when you close it.

Real data

The playground works on your live account: creating, changing or deleting something there does it for real. To look around, use a key with Read only permissions.

Permissions

Each key holds read or write permission per resource; write includes read. Every endpoint page states the permission it needs. A call without it gets 403 Forbidden with the missing permission named in the error, for example API key is missing the 'agents:write' permission.

PermissionCovers
tenantsTenants and sub-tenants
membersTenant members and invitations
agentsAgents, agent templates, and the knowledge bases and phone numbers assigned to an agent
knowledgeKnowledge bases and their documents
phone_numbersPhone numbers
conversationsConversations (read only: they are created by the agent runtime)
usageUsage reports for billing (read only)

Give a key only what its integration needs: a reporting job needs conversations:read and usage:read, nothing else.

Tenants

A key belongs to one tenant and can act on that tenant and all its sub-tenants, like an admin of that tenant. GET /v1/tenants lists every tenant the key can reach.

Everything a tenant owns lives under /v1/tenants/{tenantId}/…: members, agents, conversations, usage, knowledge bases and phone numbers. current stands for the key's own tenant:

CallReturns
GET /v1/tenants/current/agentsYour own agents
GET /v1/tenants/{customerTenantId}/agentsA customer's agents

Two rules follow from this:

  • A tenant outside the key's reach gives 403.
  • An object that does not belong to the tenant in the URL gives 404, even if it exists elsewhere.

New objects are created in the tenant in the URL, so request bodies carry no tenantId (responses still include it). A new customer is created under its parent:

curl -X POST https://api.envocal.ai/v1/tenants/current/sub-tenants \
  -H "Authorization: Bearer evk_eu_..." \
  -H "Content-Type: application/json" \
  -d '{ "name": "Example customer", "type": "customer", "region": "eu", "extraId": "crm-4711" }'

extraId is your own reference for the tenant (a CRM or billing id); GET /v1/tenants?extraId=crm-4711 finds it again.

Data region

Every tenant has a data region, chosen when it is created and fixed afterwards. It is where the tenant's data is stored, and its API keys carry it (evk_eu_…). Today the only region is eu; the allowed values are listed on the create endpoint.

Requests and responses

  • JSON in and out (Content-Type: application/json), except file uploads (multipart/form-data).
  • Property names are camelCase. Timestamps are ISO 8601 in UTC.
  • Ids are opaque strings; some resources use UUIDs. Treat both as opaque.
  • Updates replace the documented fields unless an endpoint says otherwise.
  • Optimistic concurrency: send back the version, revision or rowVersion you read. If someone else changed the resource in between, you get 409 Conflict; reload and retry.

Errors

Errors return a JSON body with an error message. Validation errors use the standard application/problem+json shape with an errors object per field.

StatusMeaning
400Invalid input; the message says what to fix
401Missing, invalid, revoked or expired API key
403The key lacks the permission, or the tenant or resource is outside its reach
404Not found, or not visible to this key
409Conflict: a name already taken, a stale version/revision, or the resource is still in use
429Rate limit exceeded; retry after the number of seconds in the Retry-After header

Rate limits

Requests are limited per API key. When the limit is exceeded you get 429 with a Retry-After header; wait that many seconds and retry.

Versioning

This is version 1 (/v1). Most changes are additions: new endpoints, optional fields and new values. Ignore fields you don't recognise. The platform is moving fast, so an existing endpoint may sometimes change. Any change that could break an integration is announced in the API changelog ahead of time, with the date it takes effect.

Endpoints

Me

Identify the key you are calling with.

Tenants

List and update tenants, create customers under your own.

Members & invites

Invite your customers' users and manage their roles.

Agents

Create and configure agents, also from templates; assign knowledge bases and phone numbers.

Knowledge bases

Create knowledge bases and upload the documents agents answer from.

Phone numbers

Add the numbers your agents answer.

Conversations

Read conversations with their transcripts and outcomes.

Usage

Usage per tenant for a period, for billing.

Questions

API Changelog

Changes to the Envocal API, newest first. Changes that could break an integration are announced here ahead of time, with the date they take effect.

On this page

Base URLAuthenticationTry it in the browserPermissionsTenantsData regionRequests and responsesErrorsRate limitsVersioningEndpointsQuestions