Call HistoryGet Call Detail

Get Call Detail

Retrieve full details for a single call including transcript, recording, and output variables.

curl -X GET "https://api.twentytwo.in/api/call/detail?call_id=699ed3b91ee5bee389dcb6a3" \
  -H "Content-Type: application/json" \
  -H "x-workspace-id: 699ed3b91ee5bee389dcb6a3" \
  -H "Authorization: Basic YOUR_CREDENTIALS"
{
  "success": true,
  "call": {
    "call_id": "call_9c4d7e12ab",
    "agent_id": "69de483c68b23495c853b43a",
    "status": "completed",
    "direction": "outbound",
    "callee_phone": "9999999999",
    "caller_phone": "9999999999",
    "duration_seconds": 94,
    "billed_duration_seconds": 94,
    "cost": "15.67 INR",
    "started_at": "2024-12-25T10:00:00Z",
    "ended_at": "2024-12-25T10:01:34Z"
  },
  "input_parameters": {
    "agentName": "Rohit"
  },
  "output_parameters": {
    "interested": "yes",
    "callback_requested": "yes",
    "callback_time": "Tomorrow 11am"
  },
  "recording": {
    "url": "https://storage.twentytwo.in/recordings/call_9c4d7e12ab.mp3",
    "expires_at": "2025-01-25T10:01:34Z"
  },
  "transcript": {
    "url": "https://storage.twentytwo.in/transcripts/call_9c4d7e12ab.txt",
    "expires_at": "2025-01-25T10:01:34Z"
  }
}
GET
/call/detail
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.
query
call_idstring
Required

The unique ID of the call to retrieve

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.

Query Parameters

call_idstring
Required

The unique ID of the call to retrieve

Headers

x-workspace-idstring
Required

Your Twenty2 workspace ID

Responses

successboolean
callobject
input_parametersobject
output_parametersobject
recordingobject
transcriptobject