Skip to navigation

Get lead

Get one lead of an outbound campaign.

Path parameters

campaign_idstringRequired
lead_idstringRequired

Headers

xi-api-keystringOptional

Response

Successful Response
lead_idstring
phone_numberstring
The number the lead's next call dials. It changes when the lead moves on to another listed number or the contact asks to be called on a different one.
phone_numbers_indexinteger

The position in phone_numbers of the number being called.

user_idstring

The contact’s identity: the user_id submitted in conversation_initiation_client_data, else the lead’s phone number.

attempt_countinteger

Calls placed, counted against the policy’s max_total_calls.

failure_countinteger

Failed calls to the current number; resets on a new number.

callback_countinteger
Callbacks the contact asked for.
redirect_countinteger
Times the contact asked to be called on another number.
do_not_callboolean
Set when the contact asked not to be called, the lead was removed, or the campaign stopped. The lead isn't called again.
updated_at_unixinteger
dynamic_variablesmap from strings to any
The dynamic variables submitted for the lead, with secrets redacted.
overridesobject
The conversation overrides submitted for the lead.
recipient_idstringOptional

The id given to this recipient when the campaign was created.

phone_numberslist of stringsOptional
The lead's listed numbers, in calling order.
terminal_dispositionenumOptional

Why the lead won’t be called again; unset while it may be.

created_at_unixintegerOptional

When the lead joined the campaign; unset on older leads.

deliveryobjectOptional

The lead’s latest message delivery; set on message campaigns.

Errors

422
Leads Get Request Unprocessable Entity Error