Obtenir le parcours d'un appel

Renvoie le parcours de routage d'un appel : ce que l'appelant a entendu et choisi, qui a été appelé et comment chaque sonnerie s'est terminée, et comment…

GET/v2/api/conversations/items/{id}/journey

Renvoie le parcours de routage d'un appel : ce que l'appelant a entendu et choisi, qui a été appelé et comment chaque sonnerie s'est terminée, et comment l'appel s'est fini.

  • {id} est un ID d'appel (cll-*). Un ID au préfixe non reconnu renvoie 400 INVALID_ITEM_ID.
  • Les steps sont dans l'ordre où elles se sont produites.
  • Seuls les appels ont un parcours. Un ID de message (msg-*, ce qui inclut les SMS et les fax) renvoie 404 CALL_JOURNEY_NOT_FOUND.
  • Les champs nuls sont omis de la réponse.

Étapes

Chaque étape a un type et un time. time est une date et heure sans décalage, comme 2026-11-30T10:00:00, au même format que les autres horodatages des conversations. Il est omis quand une étape n'a pas d'horodatage fiable : une sélection de menu garde sa place dans l'ordre sans horodatage.

typeChamps
CALL_RECEIVEDmode, business_hours_result, special_connect_reason
BRANCHnode_type, branch, branch_label, decided_by, reason
MENU_SELECTIONdigit, option_title
ANNOUNCEMENTtitle
RINGring
USER_UNAVAILABLEunavailable_user (user_id, name), reason
VOICEMAILvoicemail_duration_seconds (un nombre, éventuellement décimal)
HANGUPhangup_by
TRANSFERtransfer_target (nom de la cible), team_transfer (true pour un transfert vers un coéquipier, false vers un numéro externe)
ASSISTANTassistant_type

mode, business_hours_result, special_connect_reason, node_type, branch, decided_by, reason, hangup_by et assistant_type sont des chaînes informatives. Leurs valeurs peuvent changer : ne bâtissez pas de logique sur une liste fixe de ces valeurs.

Sonneries

Une étape RING contient un objet ring avec strategy, outcome, ring_seconds, answered_by et members.

ChampValeurs
strategyALL_AT_ONCE, SEQUENTIAL, QUEUE
outcomeANSWERED, NO_ANSWER, DECLINED, CANCELLED, UNKNOWN
status d'un membreANSWERED, DECLINED, MISSED, SKIPPED_UNAVAILABLE, RUNG
  • RUNG signifie que le membre a été appelé et que la fin de la sonnerie n'a pas été enregistrée. Ne le lisez jamais comme un appel manqué.
  • order est la position du membre dans une sonnerie séquentielle ou en file d'attente. Il est omis pour ALL_AT_ONCE.
  • Un objet membre contient team_member_id (mem-*) ou user_id, plus name.

Erreurs

CodeSignification
INVALID_ITEM_IDL'ID a un préfixe non reconnu (400).
CONVERSATION_ITEM_NOT_FOUNDAucun appel avec cet ID n'est visible par l'utilisateur de la clé (404).
CALL_JOURNEY_NOT_FOUNDL'ID est celui d'un message (msg-*), ce qui inclut les SMS et les fax (404). Seuls les appels ont un parcours.

Autorisation

Authorizationstring · headerrequis

Api-Key ak_live_…

Paramètres de chemin

idstringrequis

Call ID (cll-*).

Réponses

200Call journey
dataobject
2 champs
call_idstring
stepsobject[]
20 champs
typeenum<string>requis

CALL_RECEIVEDBRANCHMENU_SELECTIONANNOUNCEMENTRINGUSER_UNAVAILABLEVOICEMAILHANGUPTRANSFERASSISTANT

timestring<date-time>

Date-time without offset. Omitted when the step has no reliable timestamp.

modestring

CALL_RECEIVED. Informational: how the call was handled. Values may change.

business_hours_resultstring

CALL_RECEIVED. Informational: the business hours check result. Values may change.

special_connect_reasonstring

CALL_RECEIVED. Informational: why the call was connected in a special way. Values may change.

node_typestring

BRANCH. Informational: the kind of routing node. Values may change.

branchstring

BRANCH. Informational: the branch taken. Values may change.

branch_labelstring

BRANCH. Display label of the branch taken.

decided_bystring

BRANCH. Informational: what decided the branch. Values may change.

reasonstring

BRANCH and USER_UNAVAILABLE. Informational: why the step happened. Values may change.

digitstring

MENU_SELECTION. The digit the caller pressed.

option_titlestring

MENU_SELECTION. Title of the chosen menu option.

titlestring

ANNOUNCEMENT. Title of the announcement played.

ringobject
5 champs
strategyenum<string>

ALL_AT_ONCESEQUENTIALQUEUE

outcomeenum<string>

ANSWEREDNO_ANSWERDECLINEDCANCELLEDUNKNOWN

ring_secondsinteger

How long the call rang, in seconds.

answered_byobject

A team member or user. Carries team_member_id or user_id, plus name.

membersobject[]
unavailable_userobject

USER_UNAVAILABLE. The user who could not be rung.

2 champs
user_idstring
namestring
voicemail_duration_secondsnumber

VOICEMAIL. Length of the voicemail in seconds. Can be fractional.

hangup_bystring

HANGUP. Informational: who ended the call. Values may change.

transfer_targetstring

TRANSFER. Name of the transfer target, when known.

team_transferboolean

TRANSFER. True when the call was transferred to a teammate, false when it was transferred to an external number. Omitted when not recorded.

assistant_typestring

ASSISTANT. Informational: the kind of assistant. Values may change.

400The ID has an unrecognized prefix (INVALID_ITEM_ID).
errorobject
401
403The API key lacks the CONVERSATIONS_READ scope.
errorobject
404The ID is a message (msg-*), which has no journey (CALL_JOURNEY_NOT_FOUND), or no call with this ID is visible to the key's user (CONVERSATION_ITEM_NOT_FOUND).
errorobject
429