---
title: "Send an email"
method: POST
path: "/api/e2/emails"
tags: ["Emails"]
---

# Send an email

`POST /api/e2/emails`

Send an email immediately or schedule it for later using the scheduled_at parameter. Supports HTML/text content, attachments, and custom headers.

## Request body

- object
  - `from` string, required — Sender email address
  - `to` union, required — Recipient email address(es)
    - string
    - string[]
  - `subject` string, required — Email subject
  - `html` string — HTML content of the email
  - `text` string — Plain text content of the email
  - `cc` union
    - string
    - string[]
  - `bcc` union
    - string
    - string[]
  - `reply_to` union
    - string
    - string[]
  - `headers` object — Custom email headers
  - `attachments` object[]
    - `filename` string, required
    - `content` string, required
    - `content_type` string
    - `path` string
  - `tags` object[]
    - `name` string, required
    - `value` string, required
  - `scheduled_at` string — ISO 8601 date or natural language for scheduling
  - `timezone` string — Timezone for natural language parsing

## Response `200`

Response for status 200

- object
  - `id` string, required
  - `message_id` string
  - `scheduled_at` string
  - `status` 'sent' | 'scheduled'
  - `timezone` string

## Other responses

- `400` — Response for status 400
- `401` — Response for status 401
- `403` — Response for status 403
- `429` — Response for status 429
- `500` — Response for status 500

---

[API](https://skmtc.dev/stainless-api/apis/inbound-email-api.md) · [All operations](https://skmtc.dev/stainless-api/apis/inbound-email-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/stainless-api/inbound-email-api/revisions/e279d3cb940b/schema)
