List Calls
Retrieve call details
Authorizations
Authentication header containing API key (find it in dashboard). The format is "Bearer YOUR_API_KEY"
Body
Filter criteria for the calls to retrieve.
{
"agent_id": ["agent_oBeDLoLOeuAbiuaMFXRtDOLriT12345"],
"call_status": ["ended"],
"call_type": ["phone_call"],
"direction": ["inbound"],
"user_sentiment": ["Positive"],
"call_successful": [true],
"start_timestamp": {
"upper_threshold": 1738475421000,
"lower_threshold": 1738475411000
}
}
The calls will be sorted by start_timestamp
, whether to return the calls in ascending or descending order.
ascending
, descending
Limit the number of calls returned. Default 50, Max 1000. To retrieve more than 1000, use pagination_key to continue fetching the next page.
The pagination key to continue fetching the next page of calls. Pagination key is represented by a call id here, and it's exclusive (not included in the fetched calls). The last call id from the list calls is usually used as pagination key here. If not set, will start from the beginning.
Response
Type of the call. Used to distinguish between web call and phone call.
web_call
"web_call"
Access token to enter the web call room. This needs to be passed to your frontend to join the call.
"eyJhbGciOiJIUzI1NiJ9.eyJ2aWRlbyI6eyJyb29tSm9p"
Unique id of the call. Used to identify in LLM websocket and used to authenticate in audio websocket.
"Jabr9TXYYJHfvl6Syypi88rdAHYHmcq6"
Corresponding agent id of this call.
"oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD"
Status of call.
-
registered
: Call id issued, starting to make a call using this id. -
ongoing
: Call connected and ongoing. -
ended
: The underlying websocket has ended for the call. Either user or agent hanged up, or call transferred. -
error
: Call encountered error.
registered
, ongoing
, ended
, error
"registered"
An arbitrary object for storage purpose only. You can put anything here like your internal customer id associated with the call. Not used for processing. You can later get this field from the call object.
Add optional dynamic variables in key value pairs of string that injects into your Retell LLM Response Engine prompt and tool description. Only applicable for Retell LLM Response Engine.
{ "customer_name": "John Doe" }
Whether this call opts out of sensitive data storage like transcript, recording, logging.
true
Begin timestamp (milliseconds since epoch) of the call. Available after call starts.
1703302407333
End timestamp (milliseconds since epoch) of the call. Available after call ends.
1703302428855
Transcription of the call. Available after call ends.
"Agent: hi how are you doing?\nUser: Doing pretty well. How are you?\nAgent: That's great to hear! I'm doing well too, thanks! What's up?\nUser: I don't have anything in particular.\nAgent: Got it, just checking in!\nUser: Alright. See you.\nAgent: have a nice day\n "
Transcript of the call in the format of a list of utterance, with timestamp. Available after call ends.
Transcript of the call weaved with tool call invocation and results. It precisely captures when (at what utterance, which word) the tool was invoked and what was the result. Available after call ends.
Recording of the call. Available after call ends.
"https://retellai.s3.us-west-2.amazonaws.com/Jabr9TXYYJHfvl6Syypi88rdAHYHmcq6/recording.wav"
Public log of the call, containing details about all the requests and responses received in LLM WebSocket, latency tracking for each turntaking, helpful for debugging and tracing. Available after call ends.
"https://retellai.s3.us-west-2.amazonaws.com/Jabr9TXYYJHfvl6Syypi88rdAHYHmcq6/public_log.txt"
Latency tracking of the call, available after call ends. Not all fields here will be available, as it depends on the type of call and feature used.
The reason for the disconnection of the call. Read details desciption about reasons listed here at Disconnection Reason Doc.
user_hangup
, agent_hangup
, call_transfer
, voicemail_reached
, inactivity
, machine_detected
, max_duration_reached
, concurrency_limit_reached
, no_valid_payment
, scam_detected
, error_inbound_webhook
, dial_busy
, dial_failed
, dial_no_answer
, error_llm_websocket_open
, error_llm_websocket_lost_connection
, error_llm_websocket_runtime
, error_llm_websocket_corrupt_payload
, error_frontend_corrupted_payload
, error_twilio
, error_no_audio_received
, error_asr
, error_retell
, error_unknown
, error_user_not_joined
, registered_call_timeout
"agent_hangup"
Post call analysis that includes information such as sentiment, status, summary, and custom defined data to extract. Available after call ends. Subscribe to call_analyzed
webhook event type to receive it once ready.
Cost of the call, including all the products and their costs and discount.
Was this page helpful?