Skip to content
VaakyoDocs
Navigation
Open console →

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/v1

Integrations 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"
    }
  ]
}
StatusMeaning
400The 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".
401No credentials, or they're wrong, expired or revoked. The response has WWW-Authenticate: Bearer.
402Out of credits (placing a call).
403Your role or key lacks the permission, or the workspace isn't active yet: then the body also has "code": "workspace_inactive".
404No such resource in your workspace.
409Conflicts with the current state: a duplicate, a limit reached, or KYC already submitted.
413, 415An upload is too large, or not a PDF, PNG or JPG.
422The 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.
429Too many requests: over the rate limit, or too many failed sign-ins.
500Our fault. The body has request_id; send it to support.
502A 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:

HeaderMeaning
X-RateLimit-LimitRequests allowed per minute.
X-RateLimit-RemainingRequests left in this window.
X-RateLimit-ResetWhen 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:

Endpointlimit default, max
List calls50, 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"]:
        break

Try 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.

Knowledge bases

Documents, web pages and text agents search during calls, and a test search.

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.

Esc