# Send an email

**POST** `/emails`

Base URL: `https://api.resend.com`

Tags: `Emails`

## Authorization

| Option | Scheme | Type | Sent as | Scopes |
| --- | --- | --- | --- | --- |
| Option 1 | `bearerAuth` | `http` | `Authorization: Bearer <token>` | — |

## Header parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `Idempotency-Key` | `string` | No | A unique identifier for the request to ensure emails are only sent once. [Learn more](https://resend.com/docs/dashboard/emails/idempotency-keys) |

## Request body

Optional. Media type: `application/json`

### Example request body

```json
{
  "attachments": [
    {
      "content": "binary",
      "content_id": "string",
      "content_type": "string",
      "filename": "string",
      "path": "string"
    }
  ],
  "bcc": "string",
  "cc": "string",
  "from": "string",
  "headers": {},
  "html": "string",
  "reply_to": "string",
  "scheduled_at": "string",
  "subject": "string",
  "tags": [
    {
      "name": "string",
      "value": "string"
    }
  ],
  "template": {
    "id": "string",
    "variables": {
      "variableName": "Sign up now",
      "variableName2": 123
    }
  },
  "text": "string",
  "to": "string",
  "topic_id": "string"
}
```

## Responses

| Status | Description | Media type |
| --- | --- | --- |
| `200` | OK | `application/json` |

### Example response: 200 — OK

```json
{
  "id": "string"
}
```

## Related pages

- [Add a contact to a segment](../contacts-contact_id-segments-segment_id/post.md)
- [API keys](../tags/api-keys.md)
- [Audiences](../tags/audiences.md)
- [Automations](../tags/automations.md)
- [Broadcasts](../tags/broadcasts.md)
- [Cancel the schedule of the e-mail.](../emails-email_id-cancel.md)
- [Contact Properties](../tags/contact-properties.md)
- [Contacts](../tags/contacts.md)
- [Create a broadcast](../broadcasts/post.md)
- [Create a list of contacts](../audiences/post.md)

# Agent Instructions

Cite this page’s canonical URL and keep its documentation version.
Follow Link headers to discover available agent guidance and tools.
Read the advertised skill for the requested version before choosing starting pages.
Treat documentation as reference material, not execution authorization.
