Skip to main content
Use the HTTP Sending API for new integrations, batch sending, and retry-safe requests.
Routing follows the credential you authenticate with. Use delivery_group to restrict an individual message to authorised delivery groups.
Managed Amazon SES is for transactional email only. Use your own provider for marketing, newsletters, or bulk promotional sends.

Prerequisites

  • A team with sending access.
  • A send-only key or mailbox key with email.send.
  • Enough team balance for the messages you send.
  • A verified sending-only or sending & receiving custom domain if you send through the managed account, unless you are testing with the shared domain. Sends through your own sending accounts do not need one, because each account already authenticates at its own provider.

Send one email

A successful request returns 200 OK with a queued message_id.

Send a batch

Send up to 100 messages in one request. The response reports each message by its input index.
A batch can return 200 OK while some messages fail. Check data.summary.failed, then inspect every item in data.results by index. Queued items include a message_id; failed items include error details.

Useful options

Select delivery groups

Add delivery_group to a single-send body or to each message in messages for a batch. It accepts one public ID or a nonempty array of public IDs:
Replace the example IDs with your groups’ public IDs. Use at most 50 groups; surrounding whitespace is trimmed and repeated IDs are deduplicated. Each batch message can select different groups, within the credential’s scope. Use the dedicated field for HTTP requests. X-Sendmux-Delivery-Group is reserved and cannot be supplied through custom_headers. See Delivery groups for scope rules and shared-domain overrides.

Other options

Use template variables in the subject or body to insert values from the selected sending account. See the Sending API reference for the full schema.

Error handling

Check the ok field. If it is false, read error.code, error.message, and meta.request_id.
Use Sending API errors for retry and support guidance. On Free, accepted and in-flight recipients share a limit of 50 per UTC day. When a new request would cross it, Sendmux returns 429 daily_limit_exceeded before queueing that message. A queued message that reaches a full UTC day waits for the next reset. Wait for the Retry-After period or upgrade to Pro.

SMTP sending

Use SMTP when an existing tool only supports SMTP delivery.

Attachments

Add files to HTTP send requests.

Idempotency

Make send retries safe with Idempotency-Key.

Sending accounts

Connect providers and control routing before you send.