Account
Authentication
Your code authenticates to Vaakyo with an API key, and this page covers keys, roles and permissions, rate limits, time zones and errors: the conventions every endpoint follows.
API conventions
| Base URL | https://api.vaakyo.com/api/v1 |
| Format | JSON in and out (Content-Type: application/json) |
| Authentication | Your API key as a bearer token: Authorization: Bearer vx_... |
| Time zone | ?timezone= or X-Timezone; India time by default |
| Money | Integers in paise: 50000 is ₹500.00 |
| Phone numbers | E.164, for example +919812345678 |
| Ids | 32-character hex strings (webhook ids have a prefix: we_, whd_, evt_) |
Versioning
The public API is versioned in the path: every endpoint is served under /api/v1. Build integrations on /api/v1 only. The console uses unversioned /api/... paths that can change with it; /api/v1 stays stable.
The full list of endpoints is in the API reference. The public API covers what an integration needs: agents, calls, batch calls and knowledge bases, plus the phone numbers, voices, workspace and balance they refer to. Everything else (agent versions and tests, webhook endpoints, members, keys, billing, logs, compliance) is done in the console; those routes answer 403 this is not part of the public API: use the Vaakyo console to API keys and connected apps.
API keys
Create a key in the console under API keys. You need the owner, admin or developer role.
- A key looks like
vx_...and is shown once. Vaakyo stores only a hash of it. - A key belongs to one workspace. It never needs the
X-Workspace-IDheader. - A key can call the public API with a developer’s permissions, and also read the balance.
- Revoking a key in the console stops it at once.
Send the key as a bearer token:
curl https://api.vaakyo.com/api/v1/agents -H "Authorization: Bearer $VAAKYO_API_KEY"
Creating, listing and revoking keys is done in the console only.
Keep keys on your server. Anyone with a key can place calls that spend your credits.
Apps connected through the MCP server’s OAuth flow use access tokens that start with vxo_, sent as Authorization: Bearer. See MCP server.
Roles and permissions
Every member of a workspace has one role. Each role is a set of permissions, and each endpoint asks for one permission. The four built-in roles are below; owners and admins can also make the workspace’s own roles from these permissions in the console (never with kyc.manage, and never with a permission they don’t hold themselves). The API key column applies to the public API; the rest of a permission is used in the console.
| Permission | What it allows | Viewer | Developer | Admin | Owner | API key |
|---|---|---|---|---|---|---|
agents.view | Read agents, versions, numbers, catalogs, limits | Yes | Yes | Yes | Yes | Yes |
calls.view | Read calls, timelines, recordings | Yes | Yes | Yes | Yes | Yes |
logs.view | Read the workspace’s logs | Yes | Yes | Yes | Yes | Yes |
members.view | Read the member list | Yes | Yes | Yes | Yes | Yes |
agents.edit | Create, change, duplicate, delete and restore agents; test tools | Yes | Yes | Yes | Yes | |
calls.place | Place, cancel and end calls; browser calls | Yes | Yes | Yes | Yes | |
keys.manage | API keys and webhooks | Yes | Yes | Yes | Yes | |
crm.view | Read the CRM: contacts, catalog, bookings, orders | Yes | Yes | Yes | Yes | |
crm.edit | Change the CRM’s records and settings | Yes | Yes | Yes | ||
billing.view | Balance, ledger, plan, invoices | Yes | Yes | Yes | ||
numbers.manage | Buy, release and connect phone numbers | Yes | Yes | |||
members.manage | Invite and remove members; ask for higher limits | Yes | Yes | |||
billing.manage | Change the plan, add credits, redeem coupons | Yes | ||||
kyc.manage | Business details (KYC) | Yes |
A request without the permission gets 403 with your role cannot do this (<permission>).
Workspace status
A new workspace can be used straight away: build agents, test them in the browser, use Composer, MCP and the API. Until its business details are verified, buying numbers, Truecaller, campaigns, plan changes and calls to numbers other than your team’s own numbers return 403 (adding credits works before):
{"detail": "verify your business first: add your business details to buy numbers, run campaigns or call anyone", "code": "kyc_required"}
Add the business details in the console (Verify business). A rejected or suspended workspace returns 403 with "code": "workspace_inactive" on most endpoints.
Rate limits
Each API key may make a set number of requests per minute: 120 by default (the platform sets it). Every /api response states the policy (RateLimit-Policy: "per-key";q=120;w=60), and keyed responses carry:
| Header | Meaning |
|---|---|
RateLimit | "per-key";r=<left>;t=<seconds to reset> (IETF RateLimit fields). |
RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset | The same, as separate numbers; the reset is in seconds. |
X-RateLimit-Limit | Requests allowed per minute. |
X-RateLimit-Remaining | Requests left in this minute. |
X-RateLimit-Reset | Unix time (seconds) when the current window ends. |
See Versioning and limits for how the API changes and how deprecations are announced.
Over the limit, you get 429 with {"detail": "rate limit exceeded; slow down"} and a Retry-After header in seconds. Wait that long and try again.
Time zones
Every /api/v1 endpoint returns timestamps in one time zone. Choose it per request with the timezone query parameter or the X-Timezone header, using an IANA name. The default is Asia/Kolkata.
curl "https://api.vaakyo.com/api/v1/calls/$CALL_ID?timezone=UTC" -H "Authorization: Bearer $VAAKYO_API_KEY"
curl https://api.vaakyo.com/api/v1/calls/$CALL_ID -H "Authorization: Bearer $VAAKYO_API_KEY" -H "X-Timezone: Europe/London"
- Fields named
at,dateortimestamp, or ending in_at(created_at,ended_at…), come back as ISO 8601 with the zone’s offset:2026-10-01T15:30:00+05:30. - The zone used is echoed in the
X-Timezoneresponse header. - An unknown zone returns
400with{"detail": "unknown timezone 'Mars/Base': use an IANA name such as Asia/Kolkata or UTC"}. - Webhook payloads are always in UTC.
- When sending times, include an offset or use UTC.
Errors
Errors are JSON with a detail field:
{"detail": "agent not found"}
| Status | Meaning |
|---|---|
400 | The request can’t be carried out as asked, for example no caller number, or an unknown time zone. |
401 | No key, or the key is invalid or revoked: sign in required. |
402 | Out of credits. |
403 | Your role lacks the permission, the business isn’t verified yet ("code": "kyc_required"), or the workspace is rejected or suspended ("code": "workspace_inactive"). |
404 | Not found, or not in your workspace. |
409 | Conflicts with the current state, for example a plan limit, or a number used by another workspace. |
422 | Validation failed. detail lists each problem with its field. |
429 | Rate limited. |
502 | An upstream telecommunication or AI service didn’t answer. Try again. |
500 | Server error. The body has request_id: quote it when you contact support. |
A 422 from validation looks like this:
{
"detail": [
{"type": "less_than_equal", "loc": ["body", "call", "max_duration_seconds"], "msg": "Input should be less than or equal to 3600", "input": 7200}
]
}
Every response has an X-Request-ID header (prefixed with req_). It also identifies the request in your workspace’s logs in the console.