Skip to main content
GET
/
api
/
transcript
/
{call_id}
# 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"
{
  "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"
}

Get Transcript

Retrieve the transcript for a call.

Parameters

call_id
string
required
The unique call ID (e.g., outbound-1776774443-863aa698)

Request Example

# 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"

Response

Success Response (200)

{
  "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).
{
  "transcript": "Transcript not found in Azure Blob Storage",
  "status_code": 404,
  "function": "get_transcript"
}

Validation Error (422)

{
  "detail": [
    {
      "loc": ["path", "call_id"],
      "msg": "field required",
      "type": "value_error.missing"
    }
  ]
}