Skip to content
VaakyoDocs
Navigation
Open console →

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 URLhttps://api.vaakyo.com/api/v1
FormatJSON in and out (Content-Type: application/json)
AuthenticationYour API key as a bearer token: Authorization: Bearer vx_...
Time zone?timezone= or X-Timezone; India time by default
MoneyIntegers in paise: 50000 is ₹500.00
Phone numbersE.164, for example +919812345678
Ids32-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-ID header.
  • 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.

PermissionWhat it allowsViewerDeveloperAdminOwnerAPI key
agents.viewRead agents, versions, numbers, catalogs, limitsYesYesYesYesYes
calls.viewRead calls, timelines, recordingsYesYesYesYesYes
logs.viewRead the workspace’s logsYesYesYesYesYes
members.viewRead the member listYesYesYesYesYes
agents.editCreate, change, duplicate, delete and restore agents; test toolsYesYesYesYes
calls.placePlace, cancel and end calls; browser callsYesYesYesYes
keys.manageAPI keys and webhooksYesYesYesYes
crm.viewRead the CRM: contacts, catalog, bookings, ordersYesYesYesYes
crm.editChange the CRM’s records and settingsYesYesYes
billing.viewBalance, ledger, plan, invoicesYesYesYes
numbers.manageBuy, release and connect phone numbersYesYes
members.manageInvite and remove members; ask for higher limitsYesYes
billing.manageChange the plan, add credits, redeem couponsYes
kyc.manageBusiness 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:

HeaderMeaning
RateLimit"per-key";r=<left>;t=<seconds to reset> (IETF RateLimit fields).
RateLimit-Limit, RateLimit-Remaining, RateLimit-ResetThe same, as separate numbers; the reset is in seconds.
X-RateLimit-LimitRequests allowed per minute.
X-RateLimit-RemainingRequests left in this minute.
X-RateLimit-ResetUnix 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, date or timestamp, 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-Timezone response header.
  • An unknown zone returns 400 with {"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"}
StatusMeaning
400The request can’t be carried out as asked, for example no caller number, or an unknown time zone.
401No key, or the key is invalid or revoked: sign in required.
402Out of credits.
403Your role lacks the permission, the business isn’t verified yet ("code": "kyc_required"), or the workspace is rejected or suspended ("code": "workspace_inactive").
404Not found, or not in your workspace.
409Conflicts with the current state, for example a plan limit, or a number used by another workspace.
422Validation failed. detail lists each problem with its field.
429Rate limited.
502An upstream telecommunication or AI service didn’t answer. Try again.
500Server 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.

Esc