Skip to main content
POST
Claims the oldest waiting caller in the queue (FIFO) and bridges it to the supplied agent or number. The returned call is the caller, now transitioning to the dequeuing state. Trackly-managed queues require a nonblank Idempotency-Key of at most 128 characters. Repeating the same request with the same key stays bound to the selected caller; changing the resolved destination or record with that key returns 409 idempotency_conflict. Reuse the key only to retry an uncertain response for the same attempt. Use a new key for a new dequeue attempt after the caller returns to the queue; FIFO may select that same caller again. Hosted queues do not have this replay contract. After an uncertain hosted response, inspect the queue and active calls before retrying. Requires the voice_calls.write scope and the Voice Calls product entitlement.

Headers

string
Required for Trackly-managed queues; nonblank and at most 128 characters. Retain the same key for an exact retry.

Path Parameters

string
required
The id of the queue to claim a caller from.

Body Parameters

string
required
The bridge target for the claimed caller. Accepts either the id of a voice agent or an E.164 number. The resolved destination is screened against your account’s compliance suppression (DNC, opt-out, quiet hours) before dialing; if it is blocked, the caller is returned to the queue and the request fails with a 403.
boolean
default:false
Request recording only for the newly dialed agent bridge leg; the caller’s record / recordingState is unchanged. Individual leg recording ends when it joins the conference, so this does not record the complete bridged conversation. See call recording.

Response Fields

object
The claimed caller.

Examples

Error Codes