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

# Resend: Inboxes Get Thread

> Retrieve a single inbox thread. Includes SDK V2 and CLI requests, input constraints, response fields, and Deepline credit cost.

Retrieve a single inbox thread.

> [!NOTE]
>
> Tool ID: `resend_inboxes_get_thread`

## Run this action

Use the TypeScript SDK for one call. Use `ctx.tools.execute(...)` inside a Play for durable calls, scheduled calls, or CSV processing.

```ts theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
import { Deepline } from 'deepline';

const deepline = await Deepline.connect();
const result = await deepline.tools.execute(
  'resend_inboxes_get_thread',
  {
    "inbox_id": "inbox_123",
    "thread_id": "123e4567-e89b-42d3-a456-426614174000"
  },
);

console.log(result.toolResponse.raw);
```

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline run resend_inboxes_get_thread --input '{
  "inbox_id": "inbox_123",
  "thread_id": "123e4567-e89b-42d3-a456-426614174000"
}'
```

## Example response

The static output schema lacks the details for a reliable example. Use `deepline describe resend_inboxes_get_thread --json` for the complete live contract.

## Input reference

Returns the thread summary. The emails in the thread are listed with the list thread emails endpoint.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.inbox_id` | `string` | Yes | — | The Inbox ID or the inbox email address, such as `support@acme.com`. A value that contains `@` must be a valid email address, and any other value must be a UUID, or the request returns a 422. The address match is case-insensitive and never falls back to the inbox `name`. An address that matches no inbox returns a 404. |
| `payload.thread_id` | `string` | Yes | — | The Thread ID. Format: `uuid`. |

<details>
  <summary>Show raw input schema</summary>

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Returns the thread summary. The emails in the thread are listed with the list thread emails endpoint.",
    "properties": {
      "inbox_id": {
        "type": "string",
        "description": "The Inbox ID or the inbox email address, such as `support@acme.com`. A value that contains `@` must be a valid email address, and any other value must be a UUID, or the request returns a 422. The address match is case-insensitive and never falls back to the inbox `name`. An address that matches no inbox returns a 404."
      },
      "thread_id": {
        "type": "string",
        "description": "The Thread ID.",
        "format": "uuid"
      }
    },
    "required": [
      "inbox_id",
      "thread_id"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | The summary of a single thread. |
| `result.data.object` | `string` | Yes | — | The object type. |
| `result.data.id` | `string` | Yes | — | The ID of the thread. Format: `uuid`. |
| `result.data.subject` | `string \| null` | Yes | — | The subject of the thread. |
| `result.data.folder` | `"inbox" \| "archive" \| "spam" \| "sent" \| "trash"` | Yes | — | The folder the thread is in. Allowed: `inbox`, `archive`, `spam`, `sent`, `trash`. |
| `result.data.labels` | `array` | Yes | — | The labels attached to the thread. |
| `result.data.labels[].id` | `string` | Yes | — | The ID of the label. Format: `uuid`. |
| `result.data.labels[].name` | `string` | Yes | — | The name of the label. |
| `result.data.labels[].color` | `string` | Yes | — | The color of the label, as a `#RRGGBB` hex color in uppercase. Pattern: `^#[0-9A-Fa-f]&#123;6&#125;$`. |
| `result.data.read` | `boolean` | Yes | — | True only when every email in the thread is read. |
| `result.meta` | `object` | No | — | Additional response metadata (status, paging). |

<details>
  <summary>Show raw output schema</summary>

  ### Output JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Standard tool result payload.",
    "properties": {
      "data": {
        "type": "object",
        "description": "The summary of a single thread.",
        "properties": {
          "object": {
            "type": "string",
            "description": "The object type."
          },
          "id": {
            "type": "string",
            "description": "The ID of the thread.",
            "format": "uuid"
          },
          "subject": {
            "type": [
              "string",
              "null"
            ],
            "description": "The subject of the thread."
          },
          "folder": {
            "type": "string",
            "description": "The folder the thread is in.",
            "enum": [
              "inbox",
              "archive",
              "spam",
              "sent",
              "trash"
            ]
          },
          "labels": {
            "type": "array",
            "description": "The labels attached to the thread.",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "The ID of the label.",
                  "format": "uuid"
                },
                "name": {
                  "type": "string",
                  "description": "The name of the label."
                },
                "color": {
                  "type": "string",
                  "description": "The color of the label, as a `#RRGGBB` hex color in uppercase.",
                  "pattern": "^#[0-9A-Fa-f]{6}$"
                }
              },
              "required": [
                "id",
                "name",
                "color"
              ],
              "additionalProperties": false
            }
          },
          "read": {
            "type": "boolean",
            "description": "True only when every email in the thread is read."
          }
        },
        "required": [
          "object",
          "id",
          "subject",
          "folder",
          "labels",
          "read"
        ],
        "additionalProperties": false
      },
      "meta": {
        "type": "object",
        "description": "Additional response metadata (status, paging).",
        "additionalProperties": true
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Deepline cost

* Pricing model: `fixed` (per call).
* Estimated Deepline credits: `0` per pricing unit.
* Provider-native pricing may still exist outside Deepline credit billing.

## Related documentation

* [Connect integrations](https://deepline.com/docs/integrations.md)
* [SDK V2 quickstart](https://deepline.com/docs/sdk-v2/quickstart.md)
* [SDK reference](https://deepline.com/docs/sdk-v2/sdk-reference.md)
* [Run tools across a CSV](https://deepline.com/docs/sdk-v2/batch-csv.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.