Mon-Fri 10am - 6pm
Voice Broadcast
Base URL for your account: https://cpaas.studio
Send a voice broadcast to a list of numbers, poll its per-number outcomes, and check your billing balance.
-
Voice Broadcast
GET/POST /api/voice/v1/broadcastSends a broadcast to a list of numbers from one of your account's DIDs. Requires a key scoped to voice.broadcast or all. This endpoint accepts a request; it does not bill or deliver synchronously. -
Status webhook
POST https://your-server.example/your-webhook (we call you)When a broadcast was sent with webhook_url (Voice Broadcast or Voice Broadcast with Text to Speech), we POST a JSON event to that URL each time one of its numbers changes status: when it is handed to the operator (submitted) and when the call result arrives (answered, no_answer, busy or failed). On Voice Broadcast, numbers rejected at submit (duplicate, invalid) are already in the submit response and get no webhook. On Voice Broadcast with Text to Speech the submit response comes before numbers are checked, so each number skipped while preparing gets one final webhook instead (no_audio, duplicate or invalid). -
Verifying webhook signatures
POST https://your-server.example/your-webhook (we call you)Every webhook we send is signed with your account's webhook signing secret, so you can check it came from us and was not replayed. Find, reveal, copy and regenerate the secret on Administration → API Keys → Webhook signing secret. -
Voice Broadcast with Text to Speech
GET/POST /api/voice/v1/broadcast/ttsSends a broadcast whose audio is spoken from text. Two modes — send exactly one: (1) template_id + variables: an approved TTS template from your account, with a value for each of its variables; open to every voice.broadcast key. (2) text: free text; only for keys with audio auto-approval. Asynchronous: the response is 202 "preparing" — poll Broadcast with TTS Status. Every different message is a new audio: it costs TTS credits and takes a few seconds (up to about 30 for some voices) before dialling starts. -
TTS request failed webhook
POST https://your-server.example/your-webhook (we call you)Sent once to the webhook_url of a Voice Broadcast with Text to Speech request when the whole request fails while preparing (for example text to speech failed for every message), so no broadcast and no calls were made. It is the same failure Broadcast with TTS Status reports. -
Voice Broadcast with TTS Status
GET/POST /api/voice/v1/broadcast/tts/statusShows whether a Broadcast with TTS request is still preparing, has been submitted as a broadcast, or failed. -
TTS Templates
GET/POST /api/voice/v1/tts/templatesLists your account's text-to-speech templates — the ids and variables you send to Voice Broadcast with Text to Speech in template mode. Templates are created in the web app (Voice › Text To Speech › Templates) and approved by the platform before use; only approved templates can be sent. -
Voice Broadcast Number Status
GET/POST /api/voice/v1/broadcast/statusLook up a broadcast's progress and per-number outcomes. Requires a key scoped to voice.broadcast or all. This is the endpoint you should poll after sending a broadcast. -
Balance Check
GET/POST /api/account/v1/balanceYour current credit/plan balance. Unlike every other endpoint in this API, this one is not restricted to a specific module — it's available to any key, and shows exactly the scope(s) that key's own module covers.