Skip to main content

Send transactional email

POST 

/v1/public/emails

Accepts one transactional email and returns 202 only after it is stored with everything needed for sending. to is one email for all its recipients (they see each other), not a batch. Content is either html/text or a template (templateId or templateAlias). Without keyId the default sending key of the from domain is used. Recipients suppressed by the sending key (unsubscribed, complained) or rejected by the RuSender undeliverable list are returned with their status and are not charged; if no to recipient can receive the email, it is rejected with 422 and copies are not sent. The X-Quota-Remaining response header contains the remaining quota at the commit of this request (on replay - of the original request). Use Idempotency-Key for safe retries: a 402 response releases the key, so a retry passes after the balance is topped up.

Request​

Responses​

The email is accepted and queued for sending.

Response Headers
    Idempotency-Replayed

    Indicates that the response was returned from idempotency replay instead of being executed again.

    X-Quota-Remaining

    Remaining email quota after this send was committed (for a replay, after the original one). Parallel sends may reduce it before you read the header.