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

# Get Transcript

> Fetch a call transcript JSON file from the server.

### Headers

<ParamField header="Authorization" type="string" required>
  Bearer token for authentication (e.g., `Bearer <your_token>`).
</ParamField>

### Path Parameters

<ParamField path="transcript_id" type="string" required>
  The unique identifier (UUID) of the transcript (e.g., `39de3ba4-51b4-47e4-aa33-31b12075e2f3`).
</ParamField>

### Response

<ResponseField name="success" type="boolean">
  Indicates whether the request was successful.
</ResponseField>

<ResponseField name="data" type="array">
  Array of transcript messages in chronological order.

  <Expandable title="Message Object">
    <ResponseField name="speaker" type="string">
      The speaker identifier. Either `HUMAN` (caller) or `BOT` (AI agent).
    </ResponseField>

    <ResponseField name="message" type="string">
      The spoken message content. May contain Hindi, English, or mixed-language text.
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="error" type="string">
  The error type or code (Error responses only).
</ResponseField>

<ResponseField name="message" type="string">
  A descriptive message explaining the error (Error responses only).
</ResponseField>

<ResponseExample>
  ```json 200 OK theme={null}
  {
    "success": true,
    "data": [
      {
        "speaker": "BOT",
        "message": "हेलो, मैं आर्यन बोल रहा हूं timepay से। क्या मेरी बात राहुल जी से हो रही है?"
      },
      {
        "speaker": "HUMAN",
        "message": "हां बोलिए"
      },
      {
        "speaker": "BOT",
        "message": "सर, मैं timepay की तरफ से आपके पर्सनल लोन अकाउंट के बारे में कॉल कर रहा हूं। आपकी अगली EMI पंद्रह अगस्त को ड्यू है, क्या आपने twelve thousand, five hundred rupees खाते में रख दिए हैं?"
      },
      {
        "speaker": "HUMAN",
        "message": "अभी नहीं रखे हैं, कल तक डाल दूंगा"
      },
      {
        "speaker": "BOT",
        "message": "ठीक है सर, कृपया चौदह अगस्त की रात बारह बजे तक खाते में पैसे जमा कर दीजिए। देरी होने पर लेट फीस और ब्याज लग सकता है। क्या आप समय पर पेमेंट कर पाएंगे?"
      },
      {
        "speaker": "HUMAN",
        "message": "हां कर दूंगा"
      },
      {
        "speaker": "BOT",
        "message": "बहुत अच्छा सर, धन्यवाद। timepay की तरफ से आपका दिन शुभ हो।"
      }
    ]
  }
  ```

  ```json 401 Unauthorized theme={null}
  {
    "success": false,
    "message": "Missing or invalid authorization header"
  }
  ```

  ```json 404 Not Found theme={null}
  {
    "success": false,
    "message": "Data not found. Invalid transcript_id."
  }
  ```

  ```json 500 Server Error theme={null}
  {
    "success": false,
    "error": "Internal Server Error",
    "message": "An unexpected error occurred"
  }
  ```
</ResponseExample>
