← Developers

Vosy API Reference

Every endpoint of the Vosy API, grouped by resource. This page is generated from the OpenAPI 3.1 document, so it always matches the contract. New here? Start with the getting-started guide.

REST API (v2) for the Vosy Voice AI platform — manage agents, knowledge bases, campaigns, calls, telephony, schedules, webhooks, DNC, SMS, usage and API keys with scoped Bearer keys.

Auth: send Authorization: Bearer vosy_sk_.... Each operation lists the scope(s) that authorize it (x-required-scopes).

Hosts: https://api.vosy.ai/v2 (primary; the vhost rewrites /v2/* to /api/v2/*) and https://dashboard.vosy.ai/api/v2.

Envelopes: success responses are { "success": true, "data": ... }. Router errors are { "success": false, "error": { "message", "code", "details?" } }. Auth and rate-limit errors use { "success": false, "error": { "code", "message", "retry_after?" } } (note the field order differs). The case of error.code is not uniform (not_found on one route, CALL_NOT_FOUND on another): match the exact strings each operation documents.

Pagination: there are three list shapes, and each list operation documents its own. Most lists take limit/offset and add meta: { total, limit, offset, has_more } beside data. GET /call-logs and GET /dnc take page/per_page and return data.items with data.pagination: { current_page, per_page, total_items, total_pages, has_next, has_prev }. GET /calls returns data.calls with data.pagination: { total, limit, offset, has_more }.

Correlation & rate limits: a response to an authenticated Bearer request carries X-Request-ID and X-RateLimit-Limit/Remaining/Reset; 429s add Retry-After. Responses sent before authentication (a 413, a per-IP 429, GET /health) do not carry them. An API key defaults to 60 requests a minute, 1,000 an hour and 10,000 a day; the headers report the minute window unless a longer window is the one that was exceeded. When a key is within 7 days of expiry, X-API-Key-Expires-At and X-API-Key-Expires-In-Days are returned.

Two further limits answer with a different body. Requests that do not send Authorization: Bearer ... are limited to 60 a minute and 600 an hour and get 429 with { "success": false, "error": "<message>", "retry_after": <seconds> }. Every caller is also limited per IP address (20 requests a second, 300 a minute) and gets 429 with { "error": "<message>" }. Both send Retry-After. In these two bodies error is a string, not an object.

Request size: a JSON body may be up to 1 MB and a file upload up to 10 MB. A larger request is refused with 413 (see the PayloadTooLarge response) before authentication, on any POST, PATCH or PUT.

Idempotency: the operations below honour an Idempotency-Key header, for about 24 hours, and they do not answer a repeat the same way.

  • POST /calls: a repeat returns 200 (not 202) with the original call and meta.idempotent: true. No header marks the replay and there is no 409.
  • POST /campaigns/{id}/start and POST /campaigns/{id}/dial: the stored response is replayed with Idempotency-Replayed: true (a first request carries Idempotency-Replayed: false). A repeat that arrives while the first is still running gets 409 IDEMPOTENCY_CONFLICT. A key longer than 255 characters is 400.
  • POST /numbers and POST /leads/inbound: a repeat returns the stored result. These two also accept the header as X-Idempotency-Key.

Browsers: the CORS policy allows the request headers Content-Type, Authorization, X-Idempotency-Key and X-CSRF-Token, so a cross-origin browser request cannot send Idempotency-Key.

Meta

Health, discovery, and docs.

Agents

Voice agent lifecycle and configuration.

Knowledge Bases

Agent knowledge bases, documents, and ingestion. Read and write scopes are independent: kb:write does not imply kb:read — a key that both reads and writes must hold both scopes.

Calls

Public-API outbound call lifecycle (UUID-keyed).

Call Logs

Read-only internal call logs (int-keyed).

Campaigns

Outbound campaigns, contacts, and dialing.

Telephony

Providers, phone numbers, and telephony stats.

Schedules

Business hours schedules and exceptions.

Scheduling

In-house calendar: bookable calendars, availability rules & blackouts, open slots, and the full appointment lifecycle (book / reschedule / cancel / approve / decline / outcome) plus the read-only ICS feed.

Webhooks

Webhook subscriptions and delivery logs.

Each event is sent as one POST with a JSON body {event, timestamp, data} to each of the organization’s active subscriptions that lists that event. The payload of every event is documented under webhooks in this document.

Signing. Every request carries X-Webhook-Timestamp (Unix time in seconds) and X-Webhook-Signature. The signature is the lowercase hex HMAC-SHA256 of {timestamp}.{raw body}, keyed with the subscription secret. It has no prefix. To verify, take the raw request body before parsing it, compute the HMAC over the X-Webhook-Timestamp value, a ., and the raw body, and compare the result with the header. Use the header timestamp, not the timestamp field in the body.

Delivery. Each event is attempted once. There is no retry. The request times out after 5 seconds in total, with 3 seconds to connect. Redirects are not followed. Any 2xx response counts as success; anything else is a failure. The target URL is checked again at delivery time, and a target that resolves to a private or internal address is not called. Requests are sent with Content-Type: application/json and User-Agent: Vosy-Webhook/1.0, plus the subscription’s custom headers. Every attempt is recorded and can be read from GET /webhooks/{id}/logs.

Test deliveries. POST /webhooks/{id}/test sends a webhook.test event signed the same way. It differs from a real delivery: it is sent whatever the subscription’s status or events, it uses User-Agent: VoiceAI-Webhook/1.0, and it times out after 30 seconds in total, with 10 seconds to connect.

Webhook events

The events a webhook subscription can deliver, with the body and headers of each delivery.

DNC

Do-Not-Call lists and screening.

SMS

Outbound SMS and message history. Dual auth: Bearer or dashboard session.

Usage

Usage, quotas, and billing-period metrics.

API Keys

Manage the organization's API keys. Available on plans with API access, currently Business and Enterprise; other plans get 403.

Leads

Inbound lead webhook ingestion for external automations (Zapier/Make/n8n) that queues an outbound AI call.

Triggers

Event-driven automation rules and their actions (webhook/email/SMS/Slack/flow/...).

Billing

Subscription, payment methods, and invoices (accept.blue). Dual auth: Bearer or dashboard session. Billing is for organization owners and admins: an API key sees it only while the user who created it is an owner or admin of the key's organization (a platform super-admin creator counts as an owner), checked on every request. Any other key is refused with 403 BILLING_ROLE_REQUIRED.

AWS

AWS service connectivity and credential status. Dual auth: Bearer or dashboard session.

Widget

Embeddable widget: mint short-lived widget tokens (Bearer) and drive campaigns with them (Widget token).

Ready to build on Vosy?

API access is included with the Business and Enterprise plans. Sign up, choose a plan with API access, and create your own keys from the Vosy API page in your account. Compare plans

Get Started