API reference

API introduction

Base URL, authentication, conventions and the map of the reference.

Base URL

All examples use https://api.kshyamai.space. Replace it with the address of your deployment. Requests and responses are JSON (Content-Type: application/json) unless a page says otherwise: file uploads are multipart, CSV exports are text/csv, the setup assistant streams text/event-stream.

Authentication

http
Authorization: Bearer vk-0123456789abcdef0123456789abcdef

API keys (vk-), sub-account keys (sa-) and session tokens (vs-) are all sent this way. See Authentication for roles.

Conventions

TopicRule
Errors{"error": <HTTP status>, "message": "..."} on every 4xx and 5xx. See Errors.
IdsUUIDs. An id that belongs to another workspace answers 404.
TimesISO 8601 in UTC with a Z suffix, for example 2026-11-05T09:30:00Z.
Phone numbersE.164, for example +919876500000.
MoneyWallet balances are in major units of the deployment's currency. Costs on an execution and rates in the price book are in minor units (hundredths). Each page says which it uses.
Pagingpage_number and page_size where a list is paged. See Pagination.
RetriesIdempotency-Key on the endpoints that create or spend. See Idempotency.
TracingX-Request-Id on every response.
LimitsPer-minute request limits. See Rate limits.
Body size2 MB by default; less for login and public forms; more for the upload routes.

Machine-readable descriptions

A deployment serves two OpenAPI documents:

DocumentCovers
GET /openapi.jsonThe core API.
GET /openapi.sonic.jsonThe extensions. Every operation has a request and response schema, and the query parameters are read from the server code.

This reference is written from those documents and checked against the server code. Where the two disagreed, the reference follows the code.

Core API

PageResources
AgentsCreate, read, update, delete and stop agents; webhook test; test chat
CallsPlace and stop a call
ExecutionsCall records, logs, webhook deliveries
BatchesCSV batches: create, schedule, stop, results
Knowledge basesUpload and manage documents
Phone numbersSearch, buy, release, link to inbound
SIP trunksTrunks and their numbers
ProvidersThird-party credentials
Voices and modelsVoice catalog, custom models, price estimate
Sub-accountsCreate and manage sub-accounts, usage
AccountThe current workspace
DispositionsDispositions and extraction categories
ViolationsReport and list violations
WorkflowsDrafts, versions, validation, runs
Workflow campaignsCampaigns, entries, reports
Workflow executionsOne run of a workflow

Extensions

PageResources
AuthSign-up, login, two-factor, sessions, API keys
TeamMembers, invitations, roles, security log
BillingBalance, ledger, plans, invoices, top-ups
ComplianceCompliance settings, do-not-call list, registry check
Verified numbersVerify recipient numbers with a code
MessagingSMS and WhatsApp message log
Function toolsCatalog, validation, test
Graph agentsGraph validation
LeadsWebsite forms and the leads they create
AssistantsAsk and the setup assistant
Voice testBrowser voice test ticket
OperationsHealth, readiness, dead-letter lists

Not in this reference

Operator endpoints (/admin/..., /metrics), the development outboxes (/dev/...) and the engine's own callbacks (/engine/...) are for whoever runs the deployment, not for customers. The engine callbacks are described in Engine protocol.