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

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

Retrieve a single draft.

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

## 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_draft',
  {
    "inbox_id": "inbox_123",
    "draft_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_draft --input '{
  "inbox_id": "inbox_123",
  "draft_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_draft --json` for the complete live contract.

## Input reference

Retrieve a single draft

| 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.draft_id` | `string` | Yes | — | The Draft ID. 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 draft",
    "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."
      },
      "draft_id": {
        "type": "string",
        "description": "The Draft ID.",
        "format": "uuid"
      }
    },
    "required": [
      "inbox_id",
      "draft_id"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | Provider response payload. |
| `result.data.object` | `string` | Yes | — | The object type. |
| `result.data.id` | `string` | Yes | — | The ID of the draft. Format: `uuid`. |
| `result.data.type` | `"standalone" \| "reply"` | Yes | — | `reply` when the draft replies to an email in an existing thread. `standalone` when the draft starts a new thread. Allowed: `standalone`, `reply`. |
| `result.data.to` | `array \| null` | Yes | — | The recipients. `null` or empty when no recipients are set. |
| `result.data.cc` | `array` | Yes | — | The CC recipients. |
| `result.data.bcc` | `array` | Yes | — | The BCC recipients. |
| `result.data.subject` | `string \| null` | Yes | — | The subject. |
| `result.data.html` | `string \| null` | Yes | — | The HTML body. |
| `result.data.text` | `string \| null` | Yes | — | The plain text body. A reply draft created without a body has an empty string. |
| `result.data.thread_id` | `string \| null` | Yes | — | The Thread ID when the draft is a reply. `null` otherwise. Format: `uuid`. |
| `result.data.reply_to_email_id` | `string \| null` | Yes | — | The Email ID the draft replies to. `null` otherwise. Format: `uuid`. |
| `result.data.email_id` | `string \| null` | Yes | — | The ID of the outbound email queued when the draft was sent. `null` until the draft is sent. Format: `uuid`. |
| `result.data.created_at` | `string` | Yes | — | Timestamp when the draft was created. Format: `date-time`. |
| `result.data.updated_at` | `string` | Yes | — | Timestamp when the draft was last saved. Format: `date-time`. |
| `result.data.attachments` | `array` | Yes | — | The files stored on the draft. |
| `result.data.attachments[].id` | `string` | Yes | — | The ID of the attachment. Format: `uuid`. |
| `result.data.attachments[].filename` | `string` | Yes | — | The filename of the attachment. |
| `result.data.attachments[].content_type` | `string` | Yes | — | The MIME type of the attachment. |
| `result.data.attachments[].size` | `integer` | Yes | — | The size of the attachment in bytes. |
| `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": {
          "object": {
            "type": "string",
            "description": "The object type."
          },
          "id": {
            "type": "string",
            "description": "The ID of the draft.",
            "format": "uuid"
          },
          "type": {
            "type": "string",
            "description": "`reply` when the draft replies to an email in an existing thread. `standalone` when the draft starts a new thread.",
            "enum": [
              "standalone",
              "reply"
            ]
          },
          "to": {
            "type": [
              "array",
              "null"
            ],
            "description": "The recipients. `null` or empty when no recipients are set.",
            "items": {
              "type": "string"
            }
          },
          "cc": {
            "type": "array",
            "description": "The CC recipients.",
            "items": {
              "type": "string"
            }
          },
          "bcc": {
            "type": "array",
            "description": "The BCC recipients.",
            "items": {
              "type": "string"
            }
          },
          "subject": {
            "type": [
              "string",
              "null"
            ],
            "description": "The subject."
          },
          "html": {
            "type": [
              "string",
              "null"
            ],
            "description": "The HTML body."
          },
          "text": {
            "type": [
              "string",
              "null"
            ],
            "description": "The plain text body. A reply draft created without a body has an empty string."
          },
          "thread_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "The Thread ID when the draft is a reply. `null` otherwise.",
            "format": "uuid"
          },
          "reply_to_email_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "The Email ID the draft replies to. `null` otherwise.",
            "format": "uuid"
          },
          "email_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "The ID of the outbound email queued when the draft was sent. `null` until the draft is sent.",
            "format": "uuid"
          },
          "created_at": {
            "type": "string",
            "description": "Timestamp when the draft was created.",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "description": "Timestamp when the draft was last saved.",
            "format": "date-time"
          },
          "attachments": {
            "type": "array",
            "description": "The files stored on the draft.",
            "items": {
              "type": "object",
              "description": "A file stored on a draft.",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "The ID of the attachment.",
                  "format": "uuid"
                },
                "filename": {
                  "type": "string",
                  "description": "The filename of the attachment."
                },
                "content_type": {
                  "type": "string",
                  "description": "The MIME type of the attachment."
                },
                "size": {
                  "type": "integer",
                  "description": "The size of the attachment in bytes."
                }
              },
              "required": [
                "id",
                "filename",
                "content_type",
                "size"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "object",
          "id",
          "type",
          "to",
          "cc",
          "bcc",
          "subject",
          "html",
          "text",
          "thread_id",
          "reply_to_email_id",
          "email_id",
          "created_at",
          "updated_at",
          "attachments"
        ],
        "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.