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

# Get call details

GET https://v1.getraya.app/api/call/{id}

Retrieves detailed information about a call using its UUID. Requires API key authentication and verifies the call belongs to the customer.

**Call Status Polling:**
The call `outcome` field can have three values:
- **Pending**: Call is dialing or in progress
- **Failure**: Call was not picked up or unable to dial
- **Completed**: Call was answered

You can poll this endpoint to check the call status. It is recommended to poll every 2 minutes until the outcome is either "Completed" or "Failure".

Reference: https://docs.getraya.app/api-reference/calls/get-call-details

## Authentication

- `X-API-Key` header (required) — API key for authentication. Example: raya_ABCD1234567890abcdef

## Request

### Path parameters

- `id` (string, required) — The UUID of the call

## Response

### 200

Call details retrieved successfully

- `uuid` (string, optional)
- `caller_no` (string, optional) — Phone number of the caller
- `to_number` (string, optional) — Phone number to which the call was made
- `in_did` (double, optional) — DID on which the call was received
- `out_did` (double, optional) — DID on which the call was made
- `call_transcript` (map from string to any, optional) — Call transcript as JSON object
- `call_recording_url` (string, optional)
- `outcome` (enum, optional) — Call outcome status. "Pending" means the call is dialing or in progress. "Failure" means the call was not picked up or unable to dial. "Completed" means the call was answered.
  - Allowed values: `Pending`, `Failure`, `Completed`
- `call_start_time` (datetime, optional) — Call start time in UTC (ISO 8601)
- `call_end_time` (datetime, optional) — Call end time in UTC (ISO 8601)
- `call_duration` (double, optional)
- `agent_id` (string, optional)
- `agent_args` (map from string to any, optional) — Agent arguments as JSON object
- `timezone` (string, optional)
- `call_output` (map from string to any, optional) — Call output as JSON object
- `created_at` (datetime, optional) — Timestamp when the call record was created (UTC, ISO 8601)

## Errors

### 400 Bad Request Error

Validation error

- `error` (string, optional)
- `message` (string, optional)

### 401 Unauthorized Error

Unauthorized - Invalid or missing API key

- `error` (string, optional)
- `message` (string, optional)

### 404 Not Found Error

Call not found or does not belong to this customer

- `error` (string, optional)
- `message` (string, optional)

### 500 Internal Server Error

Internal server error

- `error` (string, optional)
- `message` (string, optional)

## Examples

**Response**

```json
{
  "uuid": "123e4567e89b12d3a456426614174000",
  "caller_no": "+919876543210",
  "to_number": "+919876543210",
  "in_did": 918040582331,
  "out_did": 918040582331,
  "call_transcript": {},
  "call_recording_url": "https://example.com/recordings/call-123.wav",
  "outcome": "Completed",
  "call_start_time": "2024-01-15T10:30:00Z",
  "call_end_time": "2024-01-15T10:35:00Z",
  "call_duration": 300,
  "agent_id": "123e4567-e89b-12d3-a456-426614174000",
  "agent_args": {},
  "timezone": "Asia/Kolkata",
  "call_output": {},
  "created_at": "2024-01-15T10:25:00Z"
}
```

**SDK Code**

```python
import requests

url = "https://v1.getraya.app/api/call/123e4567e89b12d3a456426614174000"

headers = {"X-API-Key": "<apiKey>"}

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

print(response.json())
```

```javascript
const url = 'https://v1.getraya.app/api/call/123e4567e89b12d3a456426614174000';
const options = {method: 'GET', headers: {'X-API-Key': '<apiKey>'}};

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://v1.getraya.app/api/call/123e4567e89b12d3a456426614174000"

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

	req.Header.Add("X-API-Key", "<apiKey>")

	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://v1.getraya.app/api/call/123e4567e89b12d3a456426614174000")

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

request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<apiKey>'

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://v1.getraya.app/api/call/123e4567e89b12d3a456426614174000")
  .header("X-API-Key", "<apiKey>")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://v1.getraya.app/api/call/123e4567e89b12d3a456426614174000', [
  'headers' => [
    'X-API-Key' => '<apiKey>',
  ],
]);

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

```csharp
using RestSharp;

var client = new RestClient("https://v1.getraya.app/api/call/123e4567e89b12d3a456426614174000");
var request = new RestRequest(Method.GET);
request.AddHeader("X-API-Key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["X-API-Key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://v1.getraya.app/api/call/123e4567e89b12d3a456426614174000")! 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()
```