GET
/
v1
/
calls
{
  "calls": [
    {
      "_id": "<string>",
      "ai_agent_id": "<string>",
      "ai_agent_name": "<string>",
      "call_status": "registered",
      "override_ai_agent_id": "<string>",
      "metadata": {},
      "pia_llm_dynamic_data": {},
      "call_start_time": "2023-11-07T05:31:56Z",
      "call_end_time": "2023-11-07T05:31:56Z",
      "messages": [
        {
          "role": "agent",
          "content": "<string>"
        }
      ],
      "recorded_call_audio_url": "<string>",
      "access_token": "<string>",
      "call_duration_seconds": 123,
      "call_type": "web_call",
      "call_finish_reason": "user_ended_call"
    }
  ],
  "next_page_token": "<string>",
  "total_count": 123
}

Query Parameters

ai_agent_ids
string[] | null
start_time_before
string | null
start_time_after
string | null
end_time_before
string | null
end_time_after
string | null
sort_direction
string
default:desc
page_size
integer
default:100
Required range: 1 <= x <= 1000
page_token
string | null

Response

200
application/json
Successful Response
calls
object[]
required

List of call records, can include both web and phone calls

next_page_token
string | null

Token for retrieving the next page of results in paginated responses

total_count
integer | null

Total number of calls matching the query criteria