curl -X POST https://app.nautilus.co/api/v1/email \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"to": "customer@example.com",
"subject": "Your monthly wash summary",
"html": "<h1>Hi!</h1><p>You washed 12 times this month.</p>"
}'
{
"success": true,
"results": [
{
"to": "customer@example.com",
"success": true,
"id": "abc123"
}
]
}Send an email to one or more recipients. Each recipient is processed independently in parallel. The from address must use the @mail.nautilus.co domain if provided, otherwise it defaults to Nautilus <contact@mail.nautilus.co>.
curl -X POST https://app.nautilus.co/api/v1/email \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"to": "customer@example.com",
"subject": "Your monthly wash summary",
"html": "<h1>Hi!</h1><p>You washed 12 times this month.</p>"
}'
{
"success": true,
"results": [
{
"to": "customer@example.com",
"success": true,
"id": "abc123"
}
]
}curl -X POST https://app.nautilus.co/api/v1/email \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"to": "customer@example.com",
"subject": "Your monthly wash summary",
"html": "<h1>Hi!</h1><p>You washed 12 times this month.</p>"
}'
from field is optional. If omitted, emails are sent from Nautilus <contact@mail.nautilus.co>.
When provided, the address must use the @mail.nautilus.co domain. You can include a display name:
Squeaky Clean <squeaky@mail.nautilus.co>
attachments array. Each attachment requires a filename and either:
path — a publicly accessible URL to the filecontent — the file as a base64-encoded string| Field | Type | Required | Description |
|---|---|---|---|
| filename | string | Yes | Filename with extension (e.g. report.pdf) |
| path | string | No | Public URL to the file |
| content | string | No | Base64-encoded file content |
path or content, but not both.results for details)id field for tracking.API key provided by Nautilus. Pass as Authorization: Bearer <token>.
Recipient email address(es). Accepts a single address or an array.
"customer@example.com"
The email subject line.
1The email body as HTML.
1Sender address. Must use the @mail.nautilus.co domain. Supports display name format: Name <email@mail.nautilus.co>. Defaults to Nautilus <contact@mail.nautilus.co>.
Optional reply-to email address.
Optional file attachments. Each must include a filename and either a path (public URL) or content (base64-encoded string).
Show child attributes