Skip to main content

API reference

A REST API for sending email over plain HTTPS — no SMTPSync SDK required.

Request
POST https://api.smtpsync.com/v1/emails
Authorization: Bearer sk_live_...
Content-Type: application/json

{
  "from": "billing@example.com",
  "to": "customer@example.com",
  "subject": "Your invoice is ready",
  "html": "<p>Your invoice INV-1042 for $49.00 is ready.</p>",
  "idempotency_key": "invoice-1042"
}
201 Response
{
  "id": "msg_8f3a1c2e",
  "status": "queued",
  "created_at": "2026-07-13T18:04:22Z"
}
ParameterTypeRequiredDescription
fromstringYesVerified sender address.
tostring | string[]YesOne or more recipient addresses.
subjectstringYesMessage subject line.
htmlstringNoHTML body. Either html or text is required.
textstringNoPlain-text body, sent alongside html.
idempotency_keystringNoSafely retry a request without sending twice. Reusing a key returns the original message instead of sending again.