curl --request GET \
--url https://api.cartesia.ai/agents/calls \
--header 'Authorization: Bearer <token>' \
--header 'Cartesia-Version: <cartesia-version>'{
"data": [
{
"id": "<string>",
"agent_id": "<string>",
"status": "active",
"start_time": "2023-11-07T05:31:56Z",
"end_time": "2023-11-07T05:31:56Z",
"transcript": [
{
"role": "<string>",
"start_timestamp": 123,
"end_timestamp": 123,
"text": "<string>",
"text_chunks": [
{
"text": "<string>",
"start_timestamp": 123
}
],
"end_reason": "<string>",
"tool_calls": [
{
"id": "<string>",
"name": "<string>",
"arguments": {}
}
],
"vad_buffer_ms": 123,
"tts_ttfb": 123,
"log_event": {
"event": "<string>",
"metadata": {},
"timestamp": 123
},
"log_metric": {
"name": "<string>",
"value": 123,
"timestamp": 123
}
}
],
"telephony_params": {
"to": "<string>",
"from": "<string>"
},
"summary": "<string>",
"error_message": "<string>",
"deployment_id": "<string>"
}
],
"next_page": "<string>"
}Lists calls sorted by start time in descending order for a specific agent. agent_id is required and if you want to include transcript in the response, add expand=transcript to the request. This endpoint is paginated.
curl --request GET \
--url https://api.cartesia.ai/agents/calls \
--header 'Authorization: Bearer <token>' \
--header 'Cartesia-Version: <cartesia-version>'{
"data": [
{
"id": "<string>",
"agent_id": "<string>",
"status": "active",
"start_time": "2023-11-07T05:31:56Z",
"end_time": "2023-11-07T05:31:56Z",
"transcript": [
{
"role": "<string>",
"start_timestamp": 123,
"end_timestamp": 123,
"text": "<string>",
"text_chunks": [
{
"text": "<string>",
"start_timestamp": 123
}
],
"end_reason": "<string>",
"tool_calls": [
{
"id": "<string>",
"name": "<string>",
"arguments": {}
}
],
"vad_buffer_ms": 123,
"tts_ttfb": 123,
"log_event": {
"event": "<string>",
"metadata": {},
"timestamp": 123
},
"log_metric": {
"name": "<string>",
"value": 123,
"timestamp": 123
}
}
],
"telephony_params": {
"to": "<string>",
"from": "<string>"
},
"summary": "<string>",
"error_message": "<string>",
"deployment_id": "<string>"
}
],
"next_page": "<string>"
}Cartesia API key
API version header. Must be set to the API version, e.g. '2024-06-10'.
2024-06-10, 2024-11-13, 2025-04-16 "2025-04-16"
The ID of the agent.
The fields to expand in the response. Currently, the only supported value is transcript.
(Pagination option)The ID of the call to start after.
(Pagination option) The ID of the call to end before.
(Pagination option) The number of calls to return per page, ranging between 1 and 100.
The list of agent calls.
Show child attributes
The unique identifier for the agent call.
The identifier of the agent associated with the call.
The status of the agent call.
active, completed, failed, cancelled The start time of the agent call.
The end time of the agent call.
The transcript of the agent call.
Show child attributes
The role of the participant in the conversation. Roles are user, assistant, or system. assistant is the agent. system is used to indicate logs during the conversation such as log_event or log_metric.
The start timestamp in seconds relative to the start of the call.
The end timestamp in seconds relative to the start of the call.
The text content of the transcript. This is the text that was spoken by the user or the agent.
The chunks of text at a more granular level in the transcript with timestamps relative to the start of the call.
The reason for why the assistant turn ended. This could be call_ended, interrupted, or tts_completed.
The tool calls made during the turn.
Show child attributes
The unique identifier for the tool call.
The name of the tool that was called.
The VAD buffer time in milliseconds.
The time to first byte in seconds from the agent for text-to-speech.
The log event from user code.
Show child attributes
The event name.
The timestamp when the event was received relative to the start of the call.
The log metric from user code.
Show child attributes
A summary of the agent call. This is a brief summary of the call that is generated by Cartesia.
The error message, if any, associated with the call.
The deployment identifier associated with the call.
The cursor for the next page of results.