Call HistoryList Calls

List Calls

Retrieve a paginated list of past calls with optional filters.

curl -X GET "https://api.twentytwo.in/api/call/logs" \
  -H "Content-Type: application/json" \
  -H "x-workspace-id: 699ed3b91ee5bee389dcb6a3" \
  -H "Authorization: Basic YOUR_CREDENTIALS"
{
  "success": true,
  "calls": [
    {
      "call_id": "call_9c4d7e12ab",
      "agent_id": "69de483c68b23495c853b43a",
      "status": "completed",
      "direction": "outbound",
      "callee_phone": "9999999999",
      "caller_phone": "9999999999",
      "duration_seconds": 94,
      "cost": "15.67 INR",
      "started_at": "2024-12-25T10:00:00Z",
      "ended_at": "2024-12-25T10:01:34Z"
    }
  ]
}
GET
/call/logs
GET
Basic Authentication
Usernamestring
Required

Username for basic authentication

Passwordpassword
Required

Password for basic authentication

Pass your Basic auth token in the Authorization header along with your workspace ID in the x-workspace-id header on every request.
header
x-workspace-idstring
Required

Your Twenty2 workspace ID

Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Basic authentication credentials. Pass your Basic auth token in the Authorization header along with your workspace ID in the x-workspace-id header on every request.

Headers

x-workspace-idstring
Required

Your Twenty2 workspace ID

Responses

successboolean
callsarray