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 returns200(not202) with the original call andmeta.idempotent: true. No header marks the replay and there is no 409.POST /campaigns/{id}/startandPOST /campaigns/{id}/dial: the stored response is replayed withIdempotency-Replayed: true(a first request carriesIdempotency-Replayed: false). A repeat that arrives while the first is still running gets409IDEMPOTENCY_CONFLICT. A key longer than 255 characters is400.POST /numbersandPOST /leads/inbound: a repeat returns the stored result. These two also accept the header asX-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.
- GET
/healthHealth check - GET
/openapi.jsonThis OpenAPI document - GET
/docsDocumentation redirect
Agents
Voice agent lifecycle and configuration.
- GET
/agentsList agents - POST
/agentsCreate an agent - GET
/agents/{id}Get an agent - PATCH
/agents/{id}Update an agent - DELETE
/agents/{id}Delete an agent - POST
/agents/{id}/publishPublish (activate) an agent - POST
/agents/{id}/duplicateDuplicate an agent - GET
/agents/{id}/versionsList agent versions - GET
/agents/{id}/knowledge-basesList knowledge bases attached to an agent - POST
/agents/{id}/knowledge-basesAttach a knowledge base to an agent - DELETE
/agents/{id}/knowledge-bases/{kbId}Detach a knowledge base from an agent
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.
- GET
/agents/{id}/knowledge-basesList knowledge bases attached to an agent - POST
/agents/{id}/knowledge-basesAttach a knowledge base to an agent - DELETE
/agents/{id}/knowledge-bases/{kbId}Detach a knowledge base from an agent - GET
/knowledge-basesList knowledge bases for an agent - POST
/knowledge-basesCreate a knowledge base - GET
/knowledge-bases/{id}Get a knowledge base - PATCH
/knowledge-bases/{id}Update a knowledge base - DELETE
/knowledge-bases/{id}Delete a knowledge base - GET
/knowledge-bases/{id}/documentsList documents - POST
/knowledge-bases/{id}/documentsUpload document file(s) - DELETE
/knowledge-bases/{id}/documents/{docId}Delete a document - POST
/knowledge-bases/{id}/scrapeScrape a URL into the KB - POST
/knowledge-bases/{id}/syncTrigger a KB sync - POST
/knowledge-bases/{id}/agentsAttach an agent - DELETE
/knowledge-bases/{id}/agents/{agentId}Detach an agent
Calls
Public-API outbound call lifecycle (UUID-keyed).
- GET
/callsList scheduled/completed calls - POST
/callsSchedule an outbound call - GET
/calls/{id}Get call status + result - DELETE
/calls/{id}Cancel a pending/queued call - POST
/calls/{id}/extractRe-run answer extraction for a completed call
Call Logs
Read-only internal call logs (int-keyed).
- GET
/call-logsList call logs - GET
/call-logs/{id}Get a call log - GET
/call-logs/{id}/recordingGet recording URL - GET
/call-logs/{id}/transcriptGet transcript
Campaigns
Outbound campaigns, contacts, and dialing.
- GET
/campaignsList campaigns - POST
/campaignsCreate a campaign - GET
/campaigns/{id}Get a campaign - PATCH
/campaigns/{id}Update a campaign - DELETE
/campaigns/{id}Delete a campaign - POST
/campaigns/{id}/startStart a campaign - POST
/campaigns/{id}/pausePause a campaign - POST
/campaigns/{id}/stopStop a campaign - GET
/campaigns/{id}/statsCampaign statistics - POST
/campaigns/{id}/dialAdd contacts and start dialing (one action) - GET
/campaigns/{id}/contactsList contacts - POST
/campaigns/{id}/contactsAdd contacts (single or batch) - GET
/campaigns/{id}/contacts/{contactId}Get a contact - DELETE
/campaigns/{id}/contacts/{contactId}Remove a contact
Telephony
Providers, phone numbers, and telephony stats.
- GET
/telephony/providersList telephony providers - POST
/telephony/providersCreate a provider - GET
/telephony/providers/{id}Get a provider - PATCH
/telephony/providers/{id}Update a provider - DELETE
/telephony/providers/{id}Delete a provider - POST
/telephony/providers/{id}/testTest provider credentials - GET
/telephony/numbersList phone numbers - POST
/telephony/numbersProvision a phone number - POST
/telephony/numbers/searchSearch available numbers - GET
/telephony/numbers/{id}Get a phone number - PATCH
/telephony/numbers/{id}Configure a phone number - DELETE
/telephony/numbers/{id}Release a phone number - GET
/telephony/statsTelephony stats - POST
/telephony/providers/{id}/set-defaultSet the default provider - GET
/telephony/callsList calls - POST
/telephony/callsInitiate a call - GET
/telephony/calls/{id}Get call status - POST
/telephony/calls/{id}/hangupHang up a call - POST
/telephony/calls/{id}/transferTransfer a call - POST
/telephony/calls/{id}/holdHold a call - POST
/telephony/calls/{id}/resumeResume a call - GET
/telephony/calls/{id}/eventsGet call event timeline - GET
/telephony/calls/{id}/recordingGet call recording - GET
/telephony/configGet telephony config - GET
/telephony/sip-trunkGet the BYOC SIP trunk - POST
/telephony/sip-trunkCreate or update the SIP trunk - DELETE
/telephony/sip-trunkDelete the SIP trunk - POST
/telephony/sip-trunk/testTest SIP reachability - GET
/numbersList numbers (partner façade, includes webhook wiring) - POST
/numbersBuy a number and wire it to a bot + operator webhooks in one call - PATCH
/numbers/{provider_number_id}Wire/unwire operator webhooks on an existing number - DELETE
/numbers/{provider_number_id}Release a number (carrier-side release + soft delete) - PUT
/numbers/secrets/{ref}Store/rotate a named webhook-signing secret (write-only)
Schedules
Business hours schedules and exceptions.
- GET
/schedulesList business schedules - POST
/schedulesCreate a schedule - GET
/schedules/{id}Get a schedule - PATCH
/schedules/{id}Update a schedule - DELETE
/schedules/{id}Delete a schedule - GET
/schedules/{id}/statusGet open/closed status - GET
/schedules/{id}/exceptionsList exceptions - POST
/schedules/{id}/exceptionsAdd an exception - DELETE
/schedules/{id}/exceptions/{eid}Remove an exception - GET
/schedules/{id}/hoursGet weekly business hours - PUT
/schedules/{id}/hoursReplace weekly business hours
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.
- GET
/scheduling/calendarsList bookable calendars - POST
/scheduling/calendarsCreate a calendar - PATCH
/scheduling/calendars/{id}Update a calendar - GET
/scheduling/rulesList availability rules - POST
/scheduling/rulesCreate an availability rule - DELETE
/scheduling/rules/{id}Delete an availability rule - GET
/scheduling/exceptionsList blackout exceptions - POST
/scheduling/exceptionsCreate a blackout exception - DELETE
/scheduling/exceptions/{id}Delete a blackout exception - GET
/scheduling/availabilityList open bookable slots - GET
/scheduling/appointmentsList appointments - POST
/scheduling/appointmentsBook an appointment - GET
/scheduling/appointments/{id}Get one appointment - PATCH
/scheduling/appointments/{id}Reschedule an appointment - DELETE
/scheduling/appointments/{id}Cancel an appointment - POST
/scheduling/appointments/{id}/approveApprove a pending appointment - POST
/scheduling/appointments/{id}/declineDecline a pending appointment - POST
/scheduling/appointments/{id}/outcomeMark a past appointment outcome - POST
/scheduling/appointments/{id}/purgePermanently erase an appointment record - GET
/scheduling/feedGet the calendar subscribe-feed status
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.
- GET
/webhooksList webhook subscriptions - POST
/webhooksCreate a subscription - GET
/webhooks/{id}Get a subscription - PATCH
/webhooks/{id}Update a subscription - DELETE
/webhooks/{id}Delete a subscription - POST
/webhooks/{id}/testSend a test event - GET
/webhooks/{id}/logsGet delivery logs
Webhook events
The events a webhook subscription can deliver, with the body and headers of each delivery.
campaign.startedCampaign startedcampaign.pausedCampaign pausedcampaign.completedCampaign completedcall.completedCampaign call completedcall.failedCampaign call failedcontact.completedCampaign contact completedcontact.failedCampaign contact failedcall.inbound.completedInbound call completedappointment.bookedAppointment bookedappointment.cancelledAppointment cancelledappointment.rescheduledAppointment rescheduledwebhook.testTest event
DNC
Do-Not-Call lists and screening.
- GET
/dncList DNC entries - POST
/dncAdd a DNC entry - POST
/dnc/checkCheck a phone against DNC - POST
/dnc/bulk-addBulk add DNC entries - GET
/dnc/listsList DNC lists - POST
/dnc/listsCreate a DNC list - PATCH
/dnc/{id}Update a DNC entry - DELETE
/dnc/{id}Remove a DNC entry - GET
/dnc/statsGet DNC statistics
SMS
Outbound SMS and message history. Dual auth: Bearer or dashboard session.
- GET
/smsList SMS messages - POST
/sms/sendSend an SMS - GET
/sms/statsSMS stats - GET
/sms/opt-outsList SMS opt-outs - POST
/sms/opt-outsSuppress a number - GET
/sms/{id}Get a message
Usage
Usage, quotas, and billing-period metrics.
- GET
/usageCurrent billing-period usage - GET
/usage/agentsPer-agent usage metrics - GET
/usage/historyHistorical usage
API Keys
Manage the organization's API keys. Available on plans with API access, currently Business and Enterprise; other plans get 403.
- GET
/api-keysList API keys - POST
/api-keysCreate an API key - GET
/api-keys/scopesList available scopes and presets - GET
/api-keys/{id}Get an API key - PATCH
/api-keys/{id}Update key metadata - DELETE
/api-keys/{id}Permanently delete a key - POST
/api-keys/{id}/revokeRevoke (deactivate) a key - POST
/api-keys/{id}/rotateRotate a key with grace period
Leads
Inbound lead webhook ingestion for external automations (Zapier/Make/n8n) that queues an outbound AI call.
- POST
/leads/inboundIngest an inbound lead
Triggers
Event-driven automation rules and their actions (webhook/email/SMS/Slack/flow/...).
- GET
/triggersList triggers - POST
/triggersCreate a trigger - GET
/triggers/eventsList available event types - GET
/triggers/action-typesList available action types - GET
/triggers/{id}Get a trigger - PATCH
/triggers/{id}Update a trigger - DELETE
/triggers/{id}Delete a trigger - POST
/triggers/{id}/actionsAdd an action to a trigger - PATCH
/triggers/{id}/actions/{actionId}Update an action - DELETE
/triggers/{id}/actions/{actionId}Delete an action - POST
/triggers/{id}/testTest-fire a trigger - GET
/triggers/{id}/logsGet execution logs
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.
- GET
/billing/subscriptionGet current subscription - POST
/billing/subscription/upgradeUpgrade plan - POST
/billing/subscription/upgrade-previewPreview an upgrade - POST
/billing/subscription/downgradeDowngrade plan - POST
/billing/subscription/cancelCancel subscription - GET
/billing/payment-methodsList payment methods - POST
/billing/payment-methodsAdd a payment method - PATCH
/billing/payment-methods/{id}Update a payment method - DELETE
/billing/payment-methods/{id}Remove a payment method - PATCH
/billing/payment-methods/{id}/defaultSet default payment method - GET
/billing/invoicesList invoices - POST
/billing/invoices/payPay the oldest open invoice - GET
/billing/invoices/{id}Get an invoice - GET
/billing/tokenization-configGet hosted-tokenization config
AWS
AWS service connectivity and credential status. Dual auth: Bearer or dashboard session.
- GET
/aws/statusGet AWS service status - GET
/aws/credentials/statusGet AWS credential status
Widget
Embeddable widget: mint short-lived widget tokens (Bearer) and drive campaigns with them (Widget token).
- POST
/widget/tokenMint a widget token - POST
/widget/token/revokeRevoke a widget token - GET
/widget/campaigns/{id}/statusGet campaign status (widget token) - POST
/widget/campaigns/{id}/startStart a campaign (widget token) - POST
/widget/campaigns/{id}/stopStop a campaign (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