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

# Get conversation by ID

> Retrieve a single conversation record with transcript messages

Returns one conversation by ID, including transcript messages.

## Authentication

<ParamField header="X-API-Key" type="string" required>
  Project API key for this organization and project. Format: `bot_live_…`
</ParamField>

## Path parameters

<ParamField path="organization_id" type="string" required>
  Organization ID. Must match the API key.
</ParamField>

<ParamField path="project_id" type="string" required>
  Project ID. Must match the API key.
</ParamField>

<ParamField path="conversation_id" type="string" required>
  Conversation ID.
</ParamField>

## Response

Returns the conversation document plus a `messages` array.

<ResponseField name="_id" type="string" required>
  Conversation ID.
</ResponseField>

<ResponseField name="status" type="string" required>
  Conversation status (for example `completed`, `live`, `failed`).
</ResponseField>

<ResponseField name="conversation_type" type="string">
  `outbound`, `inbound`, `chat`, or `webvoice`.
</ResponseField>

<ResponseField name="phone_number" type="string">
  Caller / callee phone number when applicable.
</ResponseField>

<ResponseField name="start_time" type="datetime">
  Conversation start time.
</ResponseField>

<ResponseField name="duration_seconds" type="number">
  Call duration in seconds.
</ResponseField>

<ResponseField name="messages" type="array" required>
  Transcript messages for the conversation.
</ResponseField>

## Errors

<ResponseField name="401" type="Unauthorized">
  Missing, invalid, or revoked API key.
</ResponseField>

<ResponseField name="403" type="Forbidden">
  API key is not authorized for this organization or project.
</ResponseField>

<ResponseField name="404" type="Not Found">
  Conversation history not found.
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X GET "https://backend.botcadence.com/organizations/ORG_ID/projects/PROJECT_ID/conversations/CONV_ID" \
    -H "X-API-Key: bot_live_YOUR_KEY"
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch(
    `https://backend.botcadence.com/organizations/${organizationId}/projects/${projectId}/conversations/${conversationId}`,
    { headers: { "X-API-Key": process.env.BOTCADENCE_API_KEY } }
  );
  ```

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

  response = requests.get(
      f"https://backend.botcadence.com/organizations/{organization_id}/projects/{project_id}/conversations/{conversation_id}",
      headers={"X-API-Key": os.environ["BOTCADENCE_API_KEY"]},
  )
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "status": "success",
    "message": "Conversation history retrieved successfully",
    "data": {
      "_id": "665f1a2b3c4d5e6f7a8b9c0d",
      "status": "completed",
      "conversation_type": "outbound",
      "phone_number": "+14155552671",
      "start_time": "2026-07-21T15:04:00Z",
      "end_time": "2026-07-21T15:06:22Z",
      "duration_seconds": 142,
      "messages": [
        {
          "role": "assistant",
          "content": "Hi Alex, thanks for taking my call."
        }
      ]
    },
    "status_code": 200
  }
  ```

  ```json 404 theme={null}
  {
    "status": "error",
    "message": "Conversation history not found",
    "data": null,
    "status_code": 404
  }
  ```
</ResponseExample>
