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

# Get Thread

> Retrieve a conversation thread by its ID

Returns the details of a specific conversation thread, including its channel, contact, status, and assignee.

## Headers

<ParamField header="x-api-key" type="string" required>
  Your API key for authentication.
</ParamField>

## Path Parameters

<ParamField path="threadId" type="string" required>
  The UUID of the thread to retrieve.
</ParamField>

## Response

<ResponseField name="id" type="string">
  Unique identifier of the thread (UUID).
</ResponseField>

<ResponseField name="channel_id" type="string">
  UUID of the channel this thread belongs to.
</ResponseField>

<ResponseField name="channel_type" type="string">
  Type of the channel (e.g. `WABA`, `INSTAGRAM`).
</ResponseField>

<ResponseField name="contact_id" type="string">
  UUID of the contact in this thread.
</ResponseField>

<ResponseField name="organization_id" type="string">
  UUID of the organization that owns this thread.
</ResponseField>

<ResponseField name="status" type="string">
  Thread status (e.g. `open`, `closed`).
</ResponseField>

<ResponseField name="assignee" type="string">
  UUID of the user or agent currently assigned to this thread.
</ResponseField>

<ResponseField name="assignee_type" type="string">
  Type of the assignee: `user` or `agent`.
</ResponseField>

<ResponseField name="created_at" type="string">
  Timestamp when the thread was created (ISO 8601).
</ResponseField>

<ResponseField name="updated_at" type="string">
  Timestamp of the last update (ISO 8601).
</ResponseField>

## Error Codes

* `401 Unauthorized` — Invalid or missing API key
* `404 Not Found` — Thread not found or does not belong to your organization
* `500 Internal Server Error` — Server-side error

## Code Examples

<RequestExample>
  ```bash cURL theme={null}
  curl -X GET "https://api.contactship.ai/v1/thread/thr-b2c3d4e5-f6a7-8901-bcde-f12345678901" \
    -H "x-api-key: your-api-key"
  ```

  ```javascript JavaScript theme={null}
  const threadId = 'thr-b2c3d4e5-f6a7-8901-bcde-f12345678901';
  const response = await fetch(
    `https://api.contactship.ai/v1/thread/${threadId}`,
    { headers: { 'x-api-key': 'your-api-key' } }
  );
  const thread = await response.json();
  console.log(`Thread status: ${thread.status}`);
  ```

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

  thread_id = 'thr-b2c3d4e5-f6a7-8901-bcde-f12345678901'
  response = requests.get(
      f'https://api.contactship.ai/v1/thread/{thread_id}',
      headers={'x-api-key': 'your-api-key'},
  )
  print(response.json())
  ```
</RequestExample>

<ResponseExample>
  ```json Example Response theme={null}
  {
    "id": "thr-b2c3d4e5-f6a7-8901-bcde-f12345678901",
    "channel_id": "chn_y0xspd9p1v7vla6wkwc2z01u",
    "channel_type": "WABA",
    "contact_id": "c1d2e3f4-a5b6-7890-cdef-123456789012",
    "organization_id": "org-f1e2d3c4-b5a6-7890-1234-567890abcdef",
    "status": "open",
    "assignee": null,
    "assignee_type": null,
    "created_at": "2026-04-06T15:00:00Z",
    "updated_at": "2026-04-06T15:05:00Z"
  }
  ```
</ResponseExample>
