API EndpointsApi Reference/get Call Details

Get Call Details

Returns full details for a single call — status, duration, cost, input parameters, output parameters, recording, and transcript.

Note: Recording and transcript URLs expire 30 days after the call ends. Download the files before expires_at if you need to retain them permanently.

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",
    "assistant_id": "69de483c68b23495c853b43a",
    "status": "completed",
    "direction": "outbound",
    "callee_phone": "9999999999",
    "caller_phone": "9999999999",
    "duration_seconds": 94,
    "billed_duration_seconds": 94,
    "cost": "₹15.67",
    "started_at": "2024-12-25T10:00:00Z",
    "ended_at": "2024-12-25T10:01:34Z",
    "input_parameters": {
      "customerName": "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
Base URLstring

Target server for requests. Edit to use your own host.

Basic Authentication
Usernamestring
Required

Username for basic authentication

Passwordpassword
Required

Password for basic authentication

Base64-encode your credentials in the format api_key:api_key_secret and pass the result in the Authorization header: ``http Authorization: Basic BASE64(api_key:api_key_secret) `` Generate your API Key and Secret from **Profile → Integrations → Build with Twenty2 API → Create new**.
query
call_idstring
Required

The unique ID of the call to retrieve. Obtained from the Initiate Call response or the List Calls response.

header
x-workspace-idstring
Required

Your Twenty2 Workspace ID. To find it, click the copy icon next to Switch Workspace at the bottom-left of the platform and select Copy workspace ID.

Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Basic authentication credentials. Base64-encode your credentials in the format api_key:api_key_secret and pass the result in the Authorization header:

Authorization: Basic BASE64(api_key:api_key_secret)

Generate your API Key and Secret from Profile → Integrations → Build with Twenty2 API → Create new.

Query Parameters

call_idstring
Required

The unique ID of the call to retrieve. Obtained from the Initiate Call response or the List Calls response.

Example:
699ed3b91ee5bee389dcb6a3

Headers

x-workspace-idstring
Required

Your Twenty2 Workspace ID. To find it, click the copy icon next to Switch Workspace at the bottom-left of the platform and select Copy workspace ID.

Example:
699ed3b91ee5bee389dcb6a3

Responses

successboolean
callobject