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. This endpoint does not attach phone numbers. If you supply a nonempty numbers value, the response includes warnings: ["queue_numbers_ignored"] and does not assign them. Such requests will return 422 invalid_fields after the compatibility window closes. Empty arrays and null remain accepted. Queue creation is an inbound workflow; it does not use optional outbound recipient screening. Requires the voice_calls.write scope and the Voice Calls product entitlement.

Body Parameters

string
Omit this field or use hosted for a hosted queue. Use managed for an enabled Trackly-managed queue.
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 public HTTPS webhook on standard TCP port 443. Omit the port or specify :443; HTTP, other ports, and malformed ports are rejected. 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.
array
Present only when a nonempty unsupported numbers request field was ignored during the compatibility window.

Examples

Error Codes