# Send email API

> Send email API reference: POST /emails sends one transactional email to up to 50 recipients, with HTML or a template, attachments, scheduling and tags.

Canonical: https://www.cresca.xyz/docs/api-reference/send-email
Last updated: 2026-11-05

Use the send email API to send one transactional email to up to 50 recipients.

POST https://api.cresca.xyz/api/v1/emails

Works with sending-access and full-access keys. The email is queued and sent within seconds; the response returns as soon as it is accepted.

### Body parameters

from string required

Sender address, as `hello@acme.com` or `Acme <hello@acme.com>`. It must be an active sender on a verified domain in your account. Without a display name, the sender's display name is used. Optional when the template has a default sender.

to string | string\[\] required

Recipient addresses. Up to 50 recipients in total across to, cc and bcc.

subject string required

Single line, up to 998 characters. Optional when the template has a default subject.

html string optional

HTML body, up to 5 MB. Provide `html`, `text` or a `template`.

text string optional

Plain-text body, up to 5 MB. If omitted, Cresca generates it from `html`. Send an empty string to leave the text part out.

cc string | string\[\] optional

Carbon-copy recipients.

bcc string | string\[\] optional

Blind carbon-copy recipients. They never appear in the message headers.

reply\_to string | string\[\] optional

Reply-To addresses. Defaults to the sender's Reply-To, if it has one.

template object optional

Send a published template instead of `html`/`text`: `{ "id": "password-reset", "variables": { "NAME": "Ana" } }`. `id` is the template id or alias. See [Templates and variables](https://www.cresca.xyz/docs/templates).

scheduled\_at string optional

ISO 8601 date-time to send at, up to 30 days ahead, for example `2026-10-21T09:00:00Z`. A time in the past sends immediately.

tags object\[\] optional

Up to 10 `{ "name", "value" }` pairs to label the email, for example `{ "name": "category", "value": "password_reset" }`. Names and values use ASCII letters, numbers, underscores and dashes, up to 256 characters. Each name can be used once per email. Cresca reserves the names `messagetype`, `transactionalid`, `ownerid`, `sendingdomainid`, `campaignid` and `contactid` (in any letter case).

headers object optional

Custom headers, such as `List-Unsubscribe` or `X-Entity-Ref-ID`. Up to 50. Names use letters, numbers and dashes, up to 76 characters; values are a single line of up to 998 characters. Headers that Cresca controls are rejected: From, To, Cc, Bcc, Subject, Reply-To, Sender, Return-Path, Message-ID, Date, MIME-Version, Content-Type, Content-Transfer-Encoding, DKIM-Signature, Received, and any header starting with `X-SES-` or `X-Cresca-`. Use the request fields instead.

attachments object\[\] optional

Up to 20 files, 7 MB in total. Each item has `filename`, base64 `content`, and optionally `content_type` and `content_id` (to show an inline image with `<img src="cid:logo">`). Executable types such as .exe and .js are refused. Attaching by `path` (URL) is not supported yet.

### Headers

Idempotency-Key string optional

Makes the request safe to retry. See [Idempotency](https://www.cresca.xyz/docs/idempotency).

## Send email API example

Request

```bash
curl -X POST 'https://api.cresca.xyz/api/v1/emails' \
  -H 'Authorization: Bearer cr_live_xxxxxxxxx' \
  -H 'Content-Type: application/json' \
  -H 'Idempotency-Key: invoice/inv-2026-0042' \
  -d '{
  "from": "Acme Billing <billing@acme.com>",
  "to": [
    "user@example.com"
  ],
  "reply_to": "support@acme.com",
  "subject": "Your invoice INV-2026-0042",
  "html": "<p>Thanks for your payment. Your invoice is attached.</p>",
  "tags": [
    {
      "name": "category",
      "value": "invoice"
    }
  ],
  "attachments": [
    {
      "filename": "invoice.pdf",
      "content": "JVBERi0xLjQKJ..."
    }
  ]
}'
```

Response 200

```json
{
  "id": "4ef9a417-02e9-4d39-ad75-9611e0fcc33c"
}
```

Recipients on your suppression list are skipped, but the request still succeeds. See [Suppression](https://www.cresca.xyz/docs/suppression). Unknown fields in the body are ignored.

For a longer walkthrough with cURL, Node.js and Python examples, read the [send email API guide](https://www.cresca.xyz/blog/send-email-api).

[Previous Errors](https://www.cresca.xyz/docs/errors) [Next Send batch emails](https://www.cresca.xyz/docs/api-reference/send-batch)

Last updated November 5, 2026. Questions? [lalit@cresca.xyz](mailto:lalit@cresca.xyz)
