API reference
A REST API for sending email over plain HTTPS — no SMTPSync SDK required.
Authentication
Authenticate every request with an API key in the Authorization header, as Bearer sk_live_.... Create and revoke keys in the dashboard under API Keys — the full key is shown once, at creation; only its hash is stored. See Authentication.
Send an email
POST /v1/emails queues a message for delivery and returns immediately with a message ID. The from address must belong to a domain your account has verified, and delivery, bounce, and complaint events update the message's status in your dashboard logs.
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"
}{
"id": "msg_8f3a1c2e",
"status": "queued",
"created_at": "2026-07-13T18:04:22Z"
}Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| from | string | Yes | Verified sender address. |
| to | string | string[] | Yes | One or more recipient addresses. |
| subject | string | Yes | Message subject line. |
| html | string | No | HTML body. Either html or text is required. |
| text | string | No | Plain-text body, sent alongside html. |
| idempotency_key | string | No | Safely retry a request without sending twice. Reusing a key returns the original message instead of sending again. |
Idempotency
Pass an idempotency_key to safely retry a request after a timeout or network error without risking a duplicate send. Reusing the same key returns the original response instead of queuing a second message.
Errors
Non-2xx responses return a JSON body with an error object containing a machine-readable code. See Error codes for the full list.