Private Beta. New organizations are enabled by default. An organization administrator must create a scoped API key in Brightalk Settings before requests can authenticate. This documentation and the OpenAPI contract define the available scope and limits.
POST /calls does not schedule a later start and does not wait for dialing to finish.
Prerequisites
- A server-side
bt_live_key with the exact paircalls:writeandcalls:read. - An
agent_idreturned byGET /agentsand an existingcontact_idfor the same organization. - A unique, nonsecret
Idempotency-Keyfor this logical call.
recipient instead of contact_id only when you want the contact adoption rules to resolve and persist a canonical contact.
Save JavaScript samples as .mjs or run them in an ESM project. Their top-level await requires ESM, and Node 18 or later provides the built-in fetch they use.
Create the call
Expected response
The API returns202 Accepted with a Call API resource. Save its id for polling.
queued while capacity is unavailable. Acceptance is not evidence that the destination has been dialed or answered.
Poll the call
Replace the sample ID with the returnedid. Poll with backoff while status is queued, dialing, or in_progress.
completed, failed, or cancelled. Then interpret answer_status separately and read any available outcome, outcome_reason, summary, and duration_seconds.