Skip to main content
Send Email

Description

Send a transactional email using Sendly. This is the most common and versatile endpoint.

Parameters

from
string
required
Email address of the sender. Must be a verified domain in your account. Examples: noreply@yourdomain.com, no-reply@mail.yourdomain.com
to
string | string[]
required
Email address(es) of the recipient. Can be a string or array.
subject
string
required
Email subject. Maximum 255 characters.
html
string
HTML content of the email. Required if text is not provided.
text
string
Plain text content. Used as fallback if html is not provided.
cc
string | string[]
CC recipient(s). Visible to all recipients.
bcc
string | string[]
BCC recipient(s). Visible only on server.
reply_to
string | string[]
Reply-to address(es).
headers
object
Custom headers. Example: {"X-Custom-Header": "value"}
attachments
array
Array of file attachments:
  • filename (string): File name
  • content (string | Buffer): Base64 encoded content
  • content_type (string): MIME type (e.g., application/pdf)
  • cid (string): Content ID for inline images
idempotencyKey
string
Unique key to prevent duplicates. Resending with the same key returns the previous response.
tracking
object
Tracking options:
  • open (boolean): Track opens. Default: false
  • click (boolean): Track clicks. Default: false

Response

id
string
Unique email ID. Use to check status later.
status
string
Current email status.
created_at
string
ISO 8601 timestamp of creation.
to
string
Recipient email address.
subject
string
Email subject.
from
string
Sender email address.

Examples

Basic Email

Multiple Recipients

With Tracking

With Attachments

With Idempotency Key

Error Handling

Limits

  • Recipients per email: Maximum 10,000
  • Attachment size: Maximum 25 MB per email
  • Send rate: 1,000 emails/minute
  • Auto-retries: Up to 5 times for temporary errors

Notes

  • The from address must be a verified domain
  • Emails are queued for immediate processing
  • Initial status is always QUEUED
  • Use idempotencyKey for critical transactions
  • Open tracking requires an image in the email

Need help? Contact support@usesendly.app