Skip to main content
Send Email

Description

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

Parameters

string
required
Email address of the sender. Must be a verified domain in your account. Examples: noreply@yourdomain.com, no-reply@mail.yourdomain.com
string | string[]
required
Email address(es) of the recipient. Can be a string or array.
string
required
Email subject. Maximum 255 characters.
string
HTML content of the email. Required if text is not provided.
string
Plain text content. Used as fallback if html is not provided.
string | string[]
CC recipient(s). Visible to all recipients.
string | string[]
BCC recipient(s). Visible only on server.
string | string[]
Reply-to address(es).
object
Custom headers. Example: {"X-Custom-Header": "value"}
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
string
Unique key to prevent duplicates. Resending with the same key returns the previous response.
object
Tracking options:
  • open (boolean): Track opens. Default: false
  • click (boolean): Track clicks. Default: false

Response

string
Unique email ID. Use to check status later.
string
Current email status.
string
ISO 8601 timestamp of creation.
string
Recipient email address.
string
Email subject.
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