Skip to Content

Send transactional email

POST
/v1/send

Send a transactional email via the public API. Automatically creates or updates the recipient contact.

Required content: either a template ID, or both subject and body. Template fields can be overridden by explicit request fields.

Sender: from is required unless using a template that already has a from configured. The sender's domain must be verified.

Multiple recipients: when to is an array, each recipient is processed sequentially with its own contact upsert and rendered email — there is no batch-send semantics.

Attachments: up to 10 attachments per email and 10 MB total by default. The total message size cannot exceed 40 MB.

Message format: body is your HTML. Plunk generates a plain text alternative from it and sends both, which avoids the spam penalties that apply to HTML-only mail. There is no plain text field to set.

Delivery: delivery.at schedules the email for later (up to 30 days ahead), and delivery.throttle sends a notification to a recipient at most once per window. A throttled recipient is skipped without writing or billing anything, and is reported with status: "throttled" in a normal 200 response. See Scheduling and Throttling.

Authorization

ApiKeyAuth
headerAuthorizationBearer <API Key>

API Key authentication. The project is automatically derived from the key.

/v1/track requires a public key (pk_*) — it is the one endpoint intended for client-side use, and a secret key is rejected there with 401.

Every other endpoint requires a secret key (sk_*) and rejects public keys with 401.

So the two key types are not interchangeable in either direction: pick the key that matches the endpoint you are calling.

Header parameters

Idempotency-Key?string

Optional key that guarantees this request runs at most once. If the key was already used by your project, the request is refused with 409 instead of being performed a second time. Keys are scoped to your project, expire after 24 hours (configurable when self-hosting), and must be 1-255 printable ASCII characters.

Lengthlength <= 255

Request body

application/json
  1. body
to*||array<|>

Recipient email(s). Can be a string, an object with {name, email}, or an array of either.

subject?string

Email subject. Required if no template is provided. Cannot contain newline characters.

Length1 <= length <= 998
body?string

Email body (HTML). Required if no template is provided.

Length1 <= length
template?string

Template ID to use for this email. When provided, uses the template's subject, body, from, and reply-to settings. You can override these by explicitly providing subject, body, from, or reply fields in the request. Template variables are populated from the data field.

Formatuuid
from?|

Sender email address (requires verified domain). Required unless using a template that has a 'from' address configured. Can be a string (e.g., 'hello@example.com') or an object with {name, email} (e.g., {name: 'My App', email: 'hello@example.com'}).

name?string

Deprecated. Sender display name. Prefer from: { name, email }. Used only as a fallback when from is a string and no name is set there.

subscribed?boolean

Subscription state to apply to the recipient. For new contacts, defaults to false on /v1/send. For existing contacts, omitting this preserves their current state — pass true or false to explicitly change it. A change emits contact.subscribed or contact.unsubscribed.

data?

Variables for template rendering and contact data updates. Each value can be:

  • A primitive (string, number, boolean) — saved on the contact and available as a template variable.
  • null — deletes the field from the contact.
  • An empty string — skipped (does not overwrite existing data).
  • An object { value, persistent: false } — used for this send only, not stored on the contact (good for one-shot password reset codes, magic links).

Reserved keys (id, plunk_id, plunk_email, email, unsubscribeUrl, subscribeUrl, manageUrl) are silently filtered out.

headers?

Custom email headers. Header names cannot contain \r\n. Header values are limited to 998 characters and cannot contain \r\n (header injection is rejected).

reply?string

Reply-to address.

Formatemail
attachments?array<>

Email attachments. Default cap: 10 attachments and 10 MB total. The full message size cannot exceed 40 MB.

Itemsitems <= 10
delivery?

When, and whether, the email goes out.

Response body

Accepted. Each recipient reports whether its email was queued, scheduled or throttled.

application/json
  1. response
success?boolean
data?
curl -X POST 'https://api.send.47signals.com/v1/send' \  -H 'Content-Type: application/json' \  -d '{  "to": "user@example.com",  "subject": "Password Reset Request",  "body": "<h1>Reset Your Password</h1><p>Click the link to reset: {{resetLink}}</p>",  "data": {    "resetLink": "https://example.com/reset/abc123"  }}'
Example response
{  "success": true,  "data": {    "emails": [      {        "contact": {          "id": "cnt_abc123",          "email": "user@example.com"        },        "email": "ac32f08e-c6b9-45d3-9824-a73dff1e3bbf",        "status": "queued"      }    ],    "timestamp": "2025-01-15T10:30:00.000Z"  }}