> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vaanivoice.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Transcript

> Retrieve the transcript for a call

## Get Transcript

Retrieve the transcript for a call.

## Parameters

**call\_id** `string` *required*

The unique call ID (e.g., `outbound-1776774443-863aa698`)

## Request Example

```bash cURL theme={null}
# CALL_ID=your_call_id
# API_KEY=your_api_key

curl -H "X-API-Key:$API_KEY" "https://api.vaanivoice.ai/api/transcript/$CALL_ID"
```

```javascript JavaScript theme={null}
const CALL_ID = "outbound-1776774443-863aa698";
const API_KEY = "your_api_key";

const response = await fetch(
  `https://api.vaanivoice.ai/api/transcript/${CALL_ID}`,
  {
    method: "GET",
    headers: {
      "X-API-Key": API_KEY,
    },
  }
);

const data = await response.json();
console.log(data);
```

```python Python theme={null}
import requests

CALL_ID = "outbound-1776774443-863aa698"
API_KEY = "your_api_key"

headers = {
    "X-API-Key": API_KEY
}

response = requests.get(
    f"https://api.vaanivoice.ai/api/transcript/{CALL_ID}",
    headers=headers,
)

print(response.json())
```

## Response

### Success Response (200)

```json theme={null}
{
  "transcript": "AGENT: Hi! You've reached our customer service. I am your assistant, how can I help you today?\n\n USER: Hello. Hello. What are you offering?\n\n AGENT: Namaste! We provide a platform where you can start any business according to your preference...\n\n USER: Yeah.\n\n AGENT: Great! So, let me tell you...",
  "status_code": 200,
  "function": "get_transcript"
}
```

**transcript** `string`

Full conversation transcript with speaker labels (`AGENT:` / `USER:`) and line breaks separating turns

**status\_code** `integer`

HTTP status code of the internal response

**function** `string`

Internal function name - always `"get_transcript"`

### Not Found (404)

Returned when the transcript has not been generated yet (e.g., call is still in progress).

```json theme={null}
{
  "transcript": "Transcript not found in Azure Blob Storage",
  "status_code": 404,
  "function": "get_transcript"
}
```

### Validation Error (422)

```json theme={null}
{
  "detail": [
    {
      "loc": ["path", "call_id"],
      "msg": "field required",
      "type": "value_error.missing"
    }
  ]
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.