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

# List Threads

> List conversation threads for your organization, most recently active first.

Returns threads ordered by `lastMessageAt` descending (most recently active first).

### Headers

<ParamField header="Authorization" type="string" required>
  Bearer token formatted as `Bearer gork_live_...`. Requires the `threads:read` scope.
</ParamField>

### Query parameters

<ParamField query="inboxId" type="string">
  Restrict to threads in one inbox. Inbox-bound keys are always restricted to their own inbox regardless of this value.
</ParamField>

<ParamField query="limit" type="number" default="50">
  Maximum threads to return, 1–100.
</ParamField>

### Response

<ResponseField name="data" type="object[]">
  <Expandable title="properties">
    <ResponseField name="id" type="string">
      Unique thread ID (`thd_...`).
    </ResponseField>

    <ResponseField name="inboxId" type="string">
      The inbox this thread belongs to.
    </ResponseField>

    <ResponseField name="subject" type="string">
      Thread subject.
    </ResponseField>

    <ResponseField name="snippet" type="string">
      Preview of the latest message body.
    </ResponseField>

    <ResponseField name="messageCount" type="number">
      Number of messages in the thread.
    </ResponseField>

    <ResponseField name="lastMessageAt" type="string">
      ISO 8601 timestamp of the most recent message.
    </ResponseField>

    <ResponseField name="isArchived" type="boolean">
      Whether the thread has been archived.
    </ResponseField>

    <ResponseField name="createdAt" type="string">
      ISO 8601 creation timestamp.
    </ResponseField>
  </Expandable>
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl "https://api.gork.email/v1/threads?inboxId=inb_728af980b4e&limit=20" \
    -H "Authorization: Bearer gork_live_YOUR_API_KEY"
  ```

  ```typescript TypeScript theme={null}
  import { Gork } from "@gork/sdk"

  const gork = new Gork({ apiKey: process.env.GORK_API_KEY })

  const threads = await gork.threads.list({ inboxId: "inb_728af980b4e", limit: 20 })
  ```

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

  res = requests.get(
      "https://api.gork.email/v1/threads",
      headers={"Authorization": f"Bearer {os.getenv('GORK_API_KEY')}"},
      params={"inboxId": "inb_728af980b4e", "limit": 20},
  )
  ```
</RequestExample>

<ResponseExample>
  ```json 200 OK theme={null}
  {
    "data": [
      {
        "id": "thd_128bca90f4",
        "organizationId": "org_1a2b3c4d",
        "inboxId": "inb_728af980b4e",
        "subject": "Invoice 1042",
        "snippet": "Invoice attached.",
        "messageCount": 2,
        "lastMessageAt": "2026-09-11T08:05:00.000Z",
        "isArchived": false,
        "createdAt": "2026-09-11T08:00:00.000Z"
      }
    ]
  }
  ```
</ResponseExample>

<Note>
  To read the full conversation with every message, fetch one thread with `GET /v1/threads/{id}`.
</Note>
