Skip to main content
POST
Creates a named queue. A queue holds inbound callers on hold audio until an agent dequeues them and bridges the oldest waiting caller to an answerer. Requires the voice_calls.write scope and the Voice Calls product entitlement.

Body Parameters

string
required
A human-readable name for the queue. Must be unique within your account.
string
A public https URL to the hold-audio file played to waiting callers. The URL’s origin must be on the platform’s configured hold-audio origin allowlist — a deployment-wide list, not per-account — or the request is rejected with hold_audio_origin_not_allowed. If no origins are configured at all, the request is rejected with hold_audio_origin_not_configured.
string
Your HTTPS webhook that receives queue events. See Queue Webhooks.
string
A secret used to HMAC-sign the webhook payload delivered to notifyUrl. Use a long, high-entropy random value — its strength is what protects your endpoint from forged events. See Queue Webhooks.
boolean
default:false
Make this the account default queue for unrouted numbers.
boolean
default:true
Automatically answer inbound calls routed to this queue.

Response Fields

object
The created queue.

Examples

Error Codes