GET
/
call-logs
curl --request GET \
  --url https://api-west.millis.ai/call-logs \
  --header 'authorization: <authorization>'
{
  "histories": [
    {
      "agent_id": "<string>",
      "agent_config": {},
      "duration": 123,
      "ts": 123,
      "chat": "<string>",
      "chars_used": 123,
      "session_id": "<string>",
      "call_id": "<string>",
      "cost_breakdown": [
        {}
      ],
      "voip": {},
      "recording": {},
      "metadata": {},
      "function_calls": [
        {}
      ],
      "call_status": "registered"
    }
  ],
  "next_cursor": 123
}

Headers

authorization
string
required

Query Parameters

limit
integer
default:20

Number of records to return per page. Max 100.

Required range: 0 < x <= 100
start_after_ts
number | null

Cursor for pagination. This should be the 'next_cursor' value returned from a previous request.

start_time
number | null

Start of time window filter (Unix timestamp).

end_time
number | null

End of time window filter (Unix timestamp).

agent_id
string | null

Filter by specific agent ID.

call_status
string | null

Filter by call status (e.g., COMPLETED, FAILED, etc.).

phone_number
string | null

Filter by phone number (searches in voip field).

Response

200
application/json

Successful Response

The response is of type object.