> ## 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 Email

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

Retrieve a single thread email.

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

## 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_email',
  {
    "inbox_id": "inbox_123",
    "thread_id": "123e4567-e89b-42d3-a456-426614174000",
    "email_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_email --input '{
  "inbox_id": "inbox_123",
  "thread_id": "123e4567-e89b-42d3-a456-426614174000",
  "email_id": "123e4567-e89b-42d3-a456-426614174000"
}'
```

## Example response

The SDK returns this shape at `result.toolResponse.raw`. The example values illustrate the response.

```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
{
  "data": {
    "id": "123e4567-e89b-42d3-a456-426614174000",
    "direction": "inbound",
    "from": "example",
    "to": [
      "example"
    ],
    "cc": [
      "example"
    ],
    "bcc": [
      "example"
    ],
    "reply_to": [
      "example"
    ],
    "subject": "Introduction",
    "message_id": "message_123",
    "html": "example",
    "text": "example",
    "attachments": [
      {
        "id": "id_123",
        "filename": "example",
        "size": 1
      }
    ],
    "read": true,
    "received_at": "2026-01-15T12:00:00Z"
  }
}
```

Use `deepline describe resend_inboxes_get_thread_email --json` for the latest machine-readable contract.

## Input reference

Retrieve a single thread email

| 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`. |
| `payload.email_id` | `string` | Yes | — | The Email ID, as returned in `data[].id` by the list thread emails endpoint. Format: `uuid`. |

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

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Retrieve a single thread email",
    "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"
      },
      "email_id": {
        "type": "string",
        "description": "The Email ID, as returned in `data[].id` by the list thread emails endpoint.",
        "format": "uuid"
      }
    },
    "required": [
      "inbox_id",
      "thread_id",
      "email_id"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | Provider response payload. |
| `result.data.id` | `string` | Yes | — | The ID of the message. Format: `uuid`. |
| `result.data.direction` | `"inbound" \| "outbound"` | Yes | — | Whether the inbox received the message (`inbound`) or sent it (`outbound`). A message the inbox sent to itself is `inbound`, so a reply to it goes to its sender. Allowed: `inbound`, `outbound`. |
| `result.data.from` | `string` | Yes | — | Sender email address. Includes the display name when the sender has one, in the format "Name ". |
| `result.data.to` | `array` | Yes | — | The recipients of the message. For a received message, these are the addresses it was delivered to, not the full `To` header. |
| `result.data.cc` | `array` | Yes | — | The CC recipients of the message. |
| `result.data.bcc` | `array` | Yes | — | The BCC recipients of the message. Always empty for a received message. |
| `result.data.reply_to` | `array` | Yes | — | The Reply-To addresses of the message. |
| `result.data.subject` | `string \| null` | Yes | — | The subject of the message. |
| `result.data.message_id` | `string \| null` | Yes | — | The Message-ID header of the message. |
| `result.data.html` | `string \| null` | Yes | — | The HTML body. |
| `result.data.text` | `string \| null` | Yes | — | The plain-text body. |
| `result.data.attachments` | `array` | Yes | — | The attachments of the message. |
| `result.data.attachments[].id` | `string` | Yes | — | The ID of the attachment. |
| `result.data.attachments[].filename` | `string \| null` | Yes | — | The filename of the attachment. |
| `result.data.attachments[].size` | `integer \| null` | Yes | — | The size of the attachment in bytes. |
| `result.data.read` | `boolean` | Yes | — | Whether the message has been read. |
| `result.data.received_at` | `string` | Yes | — | Timestamp when the inbox received the message, or when the inbox sent it. Format: `date-time`. |
| `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": "Provider response payload.",
        "properties": {
          "id": {
            "type": "string",
            "description": "The ID of the message.",
            "format": "uuid"
          },
          "direction": {
            "type": "string",
            "description": "Whether the inbox received the message (`inbound`) or sent it (`outbound`). A message the inbox sent to itself is `inbound`, so a reply to it goes to its sender.",
            "enum": [
              "inbound",
              "outbound"
            ]
          },
          "from": {
            "type": "string",
            "description": "Sender email address. Includes the display name when the sender has one, in the format \"Name \"."
          },
          "to": {
            "type": "array",
            "description": "The recipients of the message. For a received message, these are the addresses it was delivered to, not the full `To` header.",
            "items": {
              "type": "string"
            }
          },
          "cc": {
            "type": "array",
            "description": "The CC recipients of the message.",
            "items": {
              "type": "string"
            }
          },
          "bcc": {
            "type": "array",
            "description": "The BCC recipients of the message. Always empty for a received message.",
            "items": {
              "type": "string"
            }
          },
          "reply_to": {
            "type": "array",
            "description": "The Reply-To addresses of the message.",
            "items": {
              "type": "string"
            }
          },
          "subject": {
            "type": [
              "string",
              "null"
            ],
            "description": "The subject of the message."
          },
          "message_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "The Message-ID header of the message."
          },
          "html": {
            "type": [
              "string",
              "null"
            ],
            "description": "The HTML body."
          },
          "text": {
            "type": [
              "string",
              "null"
            ],
            "description": "The plain-text body."
          },
          "attachments": {
            "type": "array",
            "description": "The attachments of the message.",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "The ID of the attachment."
                },
                "filename": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The filename of the attachment."
                },
                "size": {
                  "type": [
                    "integer",
                    "null"
                  ],
                  "description": "The size of the attachment in bytes."
                }
              },
              "required": [
                "id",
                "filename",
                "size"
              ],
              "additionalProperties": false
            }
          },
          "read": {
            "type": "boolean",
            "description": "Whether the message has been read."
          },
          "received_at": {
            "type": "string",
            "description": "Timestamp when the inbox received the message, or when the inbox sent it.",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "direction",
          "from",
          "to",
          "cc",
          "bcc",
          "reply_to",
          "subject",
          "message_id",
          "html",
          "text",
          "attachments",
          "read",
          "received_at"
        ],
        "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.