Skip to content

Errors and limits

Every error is JSON with an error message in plain words. Validation errors name the field:

{ "error": "invalid request: to: Add at least one recipient" }
Status Meaning Retry?
400 The request breaks a rule: a field, an address, an unknown field, or too many recipients. No: fix the request.
401 Missing, invalid or revoked key. No.
403 The relay key may not send from that From address. No.
404 No template, layout or version with that ID in your account. No.
409 Management API: the layout is in use. No.
412 Management API: If-Match/If-None-Match didn’t match. Re-read, then decide.
413 Request body too large. No.
422 The template isn’t valid, or couldn’t be rendered with this data. No: fix the template or data.
429 Rate limit exceeded. Yes, after Retry-After seconds.
5xx A temporary problem on our side. Yes, with backoff and the same Idempotency-Key.

Every response has an X-Request-Id header (req_ followed by 22 characters). Sends also return it as request_id and show it on the message’s page in the dashboard. Include it when you contact support.

Networks fail, and a request can succeed even when your app never sees the response. To retry sends safely, give each email an Idempotency-Key header: any string up to 255 characters that’s unique to that email, like signup-<user id> or receipt-<order id>.

If the same relay key sends the same Idempotency-Key again within 24 hours, nothing new is sent: you get 200 with "status": "duplicate" and the original message’s IDs.

A 202 from the send API means the message is queued, not delivered. velumRelay then delivers it in the background and retries automatically when a receiving server asks to try again later. Follow each message’s timeline in the dashboard’s Activity page.

Relay API Management API
Rate limit, per key 10 requests per second, bursts up to 20 20 requests per second, bursts up to 40
Request body 1 MiB 2 MiB
Recipients per email 50 across to, cc and bcc
Template HTML / text 512 KiB / 256 KiB
Subject 1,024 characters