Par defaut, cet endpoint cree une file vide pour le proprietaire de la cle API. Pour creer la file pour un coequipier, envoyez user id ou email dans le corps…
POST/v2/api/dialing-queues/current
Cibler la file d'un coequipier
Par defaut, cet endpoint cree une file vide pour le proprietaire de la cle API. Pour creer la file pour un coequipier, envoyez user_id ou email dans le corps JSON. Le coequipier doit appartenir a la meme equipe que le proprietaire de la cle API.
user_id — l'emporte quand les deux sont fournis. Resolvez les ids des coequipiers via GET /v2/api/users.
email — utilise uniquement quand user_id est absent.
Le proprietaire de la cle API est enregistre comme creator_id et le coequipier comme assignee_id. Si l'utilisateur resolu n'est pas dans votre equipe, la reponse est 404 ASSIGNEE_NOT_FOUND.
Autorisation
Authorizationstring · headerrequis
Api-Key ak_live_…
Corps
namestring | null
Display name for the new queue (max 255 characters). Leave unset to create the queue without a name.
user_idstring | null
Optional. ID of a teammate the new queue should be assigned to. The API key owner is recorded as creator_id. The teammate must belong to the same team as the API key owner. Wins over email when both are provided.
emailstring<email> | null
Optional. Email of a teammate the new queue should be assigned to. Ignored when user_id is also supplied.
Réponses
200The newly created (empty) queue
dataobject
A user's Power Dialer queue with its configuration and numbers.
9 champs
idstring
Unique queue identifier (KSUID with pdl prefix)
namestring | null
Display name of the queue
creator_idstring
User ID of the queue creator — the user (or API key owner) that created the queue.
assignee_idstring | null
User ID of the user expected to run the queue. GET /current returns the queue where this matches the authenticated user (or the user resolved from user_id / email). Defaults to the creator when none was specified at creation time.
voicemail_handlingenum<string>
How the Power Dialer reacts when the call lands in voicemail. SKIP advances to the next number; NO_SKIP keeps the user on the call.
SKIPNO_SKIP
do_not_disturbenum<string>
When ENABLED, incoming calls are silenced while the queue is being run.
ENABLEDDISABLED
numbersobject[]
12 champs
number_tostring
E.164 destination phone number
positioninteger
Order within the queue (0-based)
created_atstring<date-time>
updated_atstring<date-time>
call_start_datestring<date-time> | null
When the user started calling this entry. null if the entry is still unassigned.
call_idstring | null
ID of the call placed for this entry (cll-*). null until a call is placed.
routing_resultenum<string>
Final routing outcome of the call placed for this entry.
Status of this entry, derived from the call placed for it. QUEUED: no call yet, or the call is still in progress. SKIPPED: skipped in the Power Dialer with no call placed (if a call is placed for it later, the status follows that call). VOICEMAIL: the call reached a voicemail box. CONNECTED: the call was answered at route level (routing_result is ANSWERED), no voicemail was detected and no not_reached_destination_reason is set; this can over-report a real conversation. TRANSFERRED: the call was transferred. BUSY: the destination was busy. WRONG_NUMBER: the destination is not in service. NO_ANSWER: the call ended without an answer, including the other not_reached_destination_reason values and any other final route status (failed, blocked, closed, handled by call flow).