API reference
Introduction
Build agents, place calls and read results over HTTPS with JSON. Every endpoint page has code samples and a Try it panel that sends real requests with your key.
Base URL and versions
https://api.vaakyo.com/api/v1Integrations use the versioned API, /api/v1. It is served by the same code as the console's own/api paths, but only /api/v1 is documented and kept backward compatible. Requests and responses are JSON (Content-Type: application/json) except file uploads and downloads. Money is in paise (₹1 = 100 paise). The full spec is at /openapi.json (OpenAPI 3.1).
Authentication
Send an API key with every request, in either header:
curl https://api.vaakyo.com/api/v1/agents \
--header 'Authorization: Bearer vx_your_key'Authorization: Bearer vx_...: a workspace API key. Create one in the console under API keys. A key acts as a developer in its workspace and can also read billing.Authorization: Bearer vxo_...: the access token of an app connected through OAuth (an MCP client). It acts as the user who connected it, limited to what a key may do. See the MCP server guide.
Each endpoint page says what it accepts and which permission it needs. Roles and permissions are in Authentication.
Time zones
Every /api/v1 endpoint takes a time zone: the timezone query parameter or the X-Timezone header, an IANA name such as Asia/Kolkata, UTC or America/New_York. The default is Asia/Kolkata. Every timestamp in the JSON response (fields named at, date, timestamp or ending in _at) is returned in that zone as ISO 8601 with its offset, such as 2026-10-01T15:30:00+05:30. The zone used comes back in the X-Timezone response header; an unknown zone is a400.
Errors
Errors use HTTP status codes and a JSON body with a detail message written for people:
{
"detail": "agent not found"
}Validation errors (422) list each problem, with where it is:
{
"detail": [
{
"type": "string_pattern_mismatch",
"loc": [
"body",
"to"
],
"msg": "String should match pattern '^\\+?[0-9]{8,15}$'",
"input": "12"
}
]
}| Status | Meaning |
|---|---|
400 | The request can't be served as sent: an unknown timezone, no workspace chosen (X-Workspace-ID), or a rule such as "a workspace always needs an owner". |
401 | No credentials, or they're wrong, expired or revoked. The response has WWW-Authenticate: Bearer. |
402 | Out of credits (placing a call). |
403 | Your role or key lacks the permission, or the workspace isn't active yet: then the body also has "code": "workspace_inactive". |
404 | No such resource in your workspace. |
409 | Conflicts with the current state: a duplicate, a limit reached, or KYC already submitted. |
413, 415 | An upload is too large, or not a PDF, PNG or JPG. |
422 | The body or a parameter failed validation (see the shape above), or a setting isn't allowed, such as a provider your workspace can't use. |
429 | Too many requests: over the rate limit, or too many failed sign-ins. |
500 | Our fault. The body has request_id; send it to support. |
502 | A provider (voices, phone numbers) didn't answer. Try again shortly. |
Every response has an X-Request-ID header; include it when you report a problem.
Rate limits
Each API key (and each connected OAuth app) may make 120 requests per minute by default, counted in fixed one-minute windows. Every response to a keyed request carries the state of the window:
| Header | Meaning |
|---|---|
X-RateLimit-Limit | Requests allowed per minute. |
X-RateLimit-Remaining | Requests left in this window. |
X-RateLimit-Reset | When the window ends, in Unix seconds. |
Over the limit, the answer is 429 with Retry-After (seconds): wait that long and retry. Placing calls has its own limit, the workspace's concurrent calls: extra calls wait in the queue (see Limits and billing).
Pagination
Long lists page with limit and skip and answer {"items": [...], "total": n}, newest first, wheretotal counts everything that matches the filters:
| Endpoint | limit default, max |
|---|---|
| List calls | 50, 200 |
Other lists return everything as an array (agents, phone numbers, knowledge bases, campaigns).
import requests
BASE = "https://api.vaakyo.com/api/v1"
headers = {"Authorization": "Bearer vx_your_key"}
skip, calls = 0, []
while True:
page = requests.get(f"{BASE}/calls", headers=headers, params={"limit": 200, "skip": skip}).json()
calls += page["items"]
skip += len(page["items"])
if not page["items"] or skip >= page["total"]:
breakTry it in the browser
Paste a key into an endpoint's Try it panel and press Send. The key stays in this browser tab (sessionStorage) and never appears in the code samples. On this site, requests go through docs.vaakyo.com/api/ to the API, so the browser allows them. Requests are real: creating, changing and deleting do just that.
All endpoints
32 endpoints in 8 groups.
Agents
Create, configure, version and duplicate voice agents.
Calls
Place outbound calls and read every call's record, timeline and recording.
Batches
Call a CSV or Excel list of contacts with one agent, on a schedule, with retries and a results CSV.
- POST
/api/v1/batches/uploadsUpload a contact list - POST
/api/v1/batchesCreate a batch - GET
/api/v1/batchesList batches - GET
/api/v1/batches/{batch_id}Get a batch - GET
/api/v1/batches/{batch_id}/contactsList a batch's contacts - POST
/api/v1/batches/{batch_id}/pausePause a batch - POST
/api/v1/batches/{batch_id}/resumeResume a batch - POST
/api/v1/batches/{batch_id}/cancelCancel a batch - GET
/api/v1/batches/{batch_id}/resultsDownload a batch's results (CSV)
Knowledge bases
Documents, web pages and text agents search during calls, and a test search.
- GET
/api/v1/knowledge-basesList knowledge bases - POST
/api/v1/knowledge-basesCreate a knowledge base - GET
/api/v1/knowledge-bases/{kb_id}Get a knowledge base - DELETE
/api/v1/knowledge-bases/{kb_id}Delete a knowledge base - POST
/api/v1/knowledge-bases/{kb_id}/sources/fileUpload a file - POST
/api/v1/knowledge-bases/{kb_id}/sources/urlAdd a web page - POST
/api/v1/knowledge-bases/{kb_id}/sources/textAdd pasted text - DELETE
/api/v1/knowledge-bases/{kb_id}/sources/{source_id}Delete a source
Catalog
Models, languages, voices and providers you can configure an agent with.
Phone numbers
Numbers assigned to your workspace and the agent that answers each.
Workspace
The workspace, its limits, members, invites, API keys and KYC.
Billing
Credits, plan, top-ups, the ledger and invoices.