> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.levrage.ai/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.levrage.ai/_mcp/server.

# Get call

GET https://api.levrage.ai/v1/calls/{call_id}

One call in full: who, when, outcome, summary, details collected and transcript.
call_id is the call's session_id as GET /calls returns it (its id works too when it is the same).

Reference: https://docs.levrage.ai/api-reference/calls/get-call

## Authentication

- `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer <token>`, where token is your auth token.

## Request

### Path parameters

- `call_id` (string, required)

## Response

### 200

Successful Response

- `data` (CallHistoryItem, required) — Single call record with full details.
- `request_id` (string, required)
- `timestamp` (datetime, required)
- `success` (boolean, optional, default: true)

## Errors

### 422 Unprocessable Entity Error

Validation Error

- `detail` (list of ValidationError, optional)

## Types

### CallHistoryItem

Single call record with full details.

- `id` (string, required) — Call history ID
- `session_id` (string, required) — Session ID
- `phone_number` (string, required) — Phone number called
- `direction` (string, required) — inbound or outbound
- `status` (string, required) — completed, no_answer, failed, voicemail
- `agent_id` (string, required) — Agent ID
- `started_at` (datetime, optional, nullable)
- `ended_at` (datetime, optional, nullable)
- `duration_seconds` (integer, optional, nullable) — Duration in seconds
- `duration_minutes` (double, optional, nullable) — Duration in minutes
- `agent_type` (string, optional, nullable)
- `agent_name` (string, optional, nullable) — The agent's name
- `contact_name` (string, optional, nullable) — The person's name, when the call carried one (campaign row or call details)
- `campaign_id` (string, optional, nullable) — The campaign the call belongs to, if any
- `campaign_name` (string, optional, nullable) — That campaign's name
- `outcome` (string, optional, nullable) — The call's outcome as filed, e.g. 'Interested' or 'Promise to pay'
- `sentiment` (string, optional, nullable)
- `handover` (boolean, optional, default: false)
- `call_summary` (string, optional, nullable)
- `call_end_reason` (string, optional, nullable)
- `ended_by` (string, optional, nullable)
- `details_collection` (DetailsCollection, optional, nullable) — Details collected during call.
- `recording_url` (string, optional, nullable)
- `ai_cost` (double, optional, nullable)
- `telephony_cost` (double, optional, nullable)
- `total_cost` (double, optional, nullable)
- `created_at` (datetime, optional, nullable)

### ValidationError

- `loc` (list of ValidationErrorLocItems, required)
- `msg` (string, required)
- `type` (string, required)

### DetailsCollection

Details collected during call.

- `status` (string, optional, nullable)
- `score` (double, optional, nullable)
- `collected_details` (list of string, optional, default: [])
- `collected_values` (DetailsCollectionCollectedValues, optional, default: {})

### ValidationErrorLocItems

- string
- integer

### DetailsCollectionCollectedValues

## Examples

**Response**

```json
{
  "data": {
    "id": "string",
    "session_id": "string",
    "phone_number": "string",
    "direction": "string",
    "status": "string",
    "agent_id": "string",
    "started_at": "2024-01-15T09:30:00Z",
    "ended_at": "2024-01-15T09:30:00Z",
    "duration_seconds": 1,
    "duration_minutes": 1.1,
    "agent_type": "string",
    "agent_name": "string",
    "contact_name": "string",
    "campaign_id": "string",
    "campaign_name": "string",
    "outcome": "string",
    "sentiment": "string",
    "handover": false,
    "call_summary": "string",
    "call_end_reason": "string",
    "ended_by": "string",
    "details_collection": {
      "status": "string",
      "score": 1.1,
      "collected_details": [
        "string"
      ],
      "collected_values": {}
    },
    "recording_url": "string",
    "ai_cost": 1.1,
    "telephony_cost": 1.1,
    "total_cost": 1.1,
    "created_at": "2024-01-15T09:30:00Z"
  },
  "request_id": "string",
  "timestamp": "2024-01-15T09:30:00Z",
  "success": true
}
```

**SDK Code**

```python
import requests

url = "https://api.levrage.ai/v1/calls/call_id"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript
const url = 'https://api.levrage.ai/v1/calls/call_id';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.levrage.ai/v1/calls/call_id"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.levrage.ai/v1/calls/call_id")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.levrage.ai/v1/calls/call_id")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.levrage.ai/v1/calls/call_id', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.levrage.ai/v1/calls/call_id");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.levrage.ai/v1/calls/call_id")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```