> ## 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: Domains Create

> Create a new domain. Resend Domains Create reference includes SDK V2 and CLI requests, input constraints, response fields, and Deepline cost.

Create a new domain.

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

## 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_domains_create',
  {
    "name": "Example"
  },
);

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

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline run resend_domains_create --input '{
  "name": "Example"
}'
```

## 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": "id_123",
    "name": "Example",
    "created_at": "2026-01-15T12:00:00Z"
  }
}
```

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

## Input reference

Create a new domain

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.name` | `string` | Yes | — | The name of the domain you want to create. |
| `payload.region` | `"us-east-1" \| "eu-west-1" \| "sa-east-1" \| "ap-northeast-1"` | No | `"us-east-1"` | The region where emails will be sent from. Possible values are us-east-1 \| eu-west-1 \| sa-east-1 \| ap-northeast-1 Allowed: `us-east-1`, `eu-west-1`, `sa-east-1`, `ap-northeast-1`. |
| `payload.custom_return_path` | `string` | No | — | For advanced use cases, choose a subdomain for the Return-Path address. Defaults to 'send' (i.e., send.yourdomain.tld). |
| `payload.open_tracking` | `boolean` | No | — | Track the open rate of each email. |
| `payload.click_tracking` | `boolean` | No | — | Track clicks within the body of each HTML email. |
| `payload.tls` | `"opportunistic" \| "enforced"` | No | `"opportunistic"` | TLS mode. Opportunistic attempts secure connection but falls back to unencrypted. Enforced requires TLS or email won't be sent. Allowed: `opportunistic`, `enforced`. |
| `payload.capabilities` | `object` | No | — | Configure the domain capabilities for sending and receiving emails. At least one capability must be enabled. |
| `payload.tracking_subdomain` | `string` | No | — | The subdomain to use for click and open tracking. |

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

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Create a new domain",
    "properties": {
      "name": {
        "type": "string",
        "description": "The name of the domain you want to create."
      },
      "region": {
        "type": "string",
        "description": "The region where emails will be sent from. Possible values are us-east-1 | eu-west-1 | sa-east-1 | ap-northeast-1",
        "default": "us-east-1",
        "enum": [
          "us-east-1",
          "eu-west-1",
          "sa-east-1",
          "ap-northeast-1"
        ]
      },
      "custom_return_path": {
        "type": "string",
        "description": "For advanced use cases, choose a subdomain for the Return-Path address. Defaults to 'send' (i.e., send.yourdomain.tld)."
      },
      "open_tracking": {
        "type": "boolean",
        "description": "Track the open rate of each email."
      },
      "click_tracking": {
        "type": "boolean",
        "description": "Track clicks within the body of each HTML email."
      },
      "tls": {
        "type": "string",
        "description": "TLS mode. Opportunistic attempts secure connection but falls back to unencrypted. Enforced requires TLS or email won't be sent.",
        "default": "opportunistic",
        "enum": [
          "opportunistic",
          "enforced"
        ]
      },
      "capabilities": {
        "type": "object",
        "description": "Configure the domain capabilities for sending and receiving emails. At least one capability must be enabled.",
        "properties": {
          "sending": {
            "type": "string",
            "description": "Enable or disable sending emails from this domain.",
            "enum": [
              "enabled",
              "disabled"
            ]
          },
          "receiving": {
            "type": "string",
            "description": "Enable or disable receiving emails to this domain.",
            "enum": [
              "enabled",
              "disabled"
            ]
          }
        },
        "additionalProperties": false
      },
      "tracking_subdomain": {
        "type": "string",
        "description": "The subdomain to use for click and open tracking."
      }
    },
    "required": [
      "name"
    ],
    "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` | No | — | The ID of the domain. |
| `result.data.name` | `string` | No | — | The name of the domain. |
| `result.data.created_at` | `string` | No | — | The date and time the domain was created. |
| `result.data.status` | `"pending" \| "verified" \| "failed" \| "not_started" \| "partially_verified" \| "partially_failed"` | No | — | The status of the domain. Allowed: `pending`, `verified`, `failed`, `not_started`, `partially_verified`, `partially_failed`. |
| `result.data.capabilities` | `object` | No | — | Configure the domain capabilities for sending and receiving emails. At least one capability must be enabled. |
| `result.data.capabilities.sending` | `"enabled" \| "disabled"` | No | — | Enable or disable sending emails from this domain. Allowed: `enabled`, `disabled`. |
| `result.data.capabilities.receiving` | `"enabled" \| "disabled"` | No | — | Enable or disable receiving emails to this domain. Allowed: `enabled`, `disabled`. |
| `result.data.records` | `array` | No | — | — |
| `result.data.records[].record` | `"SPF" \| "DKIM" \| "Receiving" \| "Tracking" \| "TrackingCAA"` | No | — | The type of record (SPF for sending, DKIM for sending, Receiving for inbound emails, Tracking & TrackingCAA for click and open tracking). Allowed: `SPF`, `DKIM`, `Receiving`, `Tracking`, `TrackingCAA`. |
| `result.data.records[].name` | `string` | No | — | The name of the DNS record. |
| `result.data.records[].type` | `"MX" \| "TXT" \| "CNAME" \| "CAA"` | No | — | The DNS record type. Allowed: `MX`, `TXT`, `CNAME`, `CAA`. |
| `result.data.records[].ttl` | `string` | No | — | The time to live for the record. |
| `result.data.records[].status` | `"pending" \| "verified" \| "failed" \| "temporary_failure" \| "not_started"` | No | — | The status of the record. Allowed: `pending`, `verified`, `failed`, `temporary_failure`, `not_started`. |
| `result.data.records[].value` | `string` | No | — | The value of the record. |
| `result.data.records[].priority` | `integer` | No | — | The priority of the record (only applicable for MX records). |
| `result.data.region` | `string` | No | — | The region where the domain is hosted. |
| `result.data.open_tracking` | `boolean` | No | — | Whether open tracking is enabled for this domain. |
| `result.data.click_tracking` | `boolean` | No | — | Whether click tracking is enabled for this domain. |
| `result.data.tracking_subdomain` | `string` | No | — | The subdomain used for click and open tracking. |
| `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 domain."
          },
          "name": {
            "type": "string",
            "description": "The name of the domain."
          },
          "created_at": {
            "type": "string",
            "description": "The date and time the domain was created."
          },
          "status": {
            "type": "string",
            "description": "The status of the domain.",
            "enum": [
              "pending",
              "verified",
              "failed",
              "not_started",
              "partially_verified",
              "partially_failed"
            ]
          },
          "capabilities": {
            "type": "object",
            "description": "Configure the domain capabilities for sending and receiving emails. At least one capability must be enabled.",
            "properties": {
              "sending": {
                "type": "string",
                "description": "Enable or disable sending emails from this domain.",
                "enum": [
                  "enabled",
                  "disabled"
                ]
              },
              "receiving": {
                "type": "string",
                "description": "Enable or disable receiving emails to this domain.",
                "enum": [
                  "enabled",
                  "disabled"
                ]
              }
            },
            "additionalProperties": false
          },
          "records": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "record": {
                  "type": "string",
                  "description": "The type of record (SPF for sending, DKIM for sending, Receiving for inbound emails, Tracking & TrackingCAA for click and open tracking).",
                  "enum": [
                    "SPF",
                    "DKIM",
                    "Receiving",
                    "Tracking",
                    "TrackingCAA"
                  ]
                },
                "name": {
                  "type": "string",
                  "description": "The name of the DNS record."
                },
                "type": {
                  "type": "string",
                  "description": "The DNS record type.",
                  "enum": [
                    "MX",
                    "TXT",
                    "CNAME",
                    "CAA"
                  ]
                },
                "ttl": {
                  "type": "string",
                  "description": "The time to live for the record."
                },
                "status": {
                  "type": "string",
                  "description": "The status of the record.",
                  "enum": [
                    "pending",
                    "verified",
                    "failed",
                    "temporary_failure",
                    "not_started"
                  ]
                },
                "value": {
                  "type": "string",
                  "description": "The value of the record."
                },
                "priority": {
                  "type": "integer",
                  "description": "The priority of the record (only applicable for MX records)."
                }
              },
              "additionalProperties": false
            }
          },
          "region": {
            "type": "string",
            "description": "The region where the domain is hosted."
          },
          "open_tracking": {
            "type": "boolean",
            "description": "Whether open tracking is enabled for this domain."
          },
          "click_tracking": {
            "type": "boolean",
            "description": "Whether click tracking is enabled for this domain."
          },
          "tracking_subdomain": {
            "type": "string",
            "description": "The subdomain used for click and open tracking."
          }
        },
        "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.