Send email batch

POST
/email/emails/batch

Authorization

headerAuthorizationBearer <Relevate API key>

Relevate API key scoped to the operation's product and environment.

Header Parameters

Idempotency-Key?|

1 to 200 characters. Item i is sent with the key <key>:<i>, so retrying the batch with the same key and body replays the items that were accepted and tries the rest again.

Request Body

application/json
  1. body
items*array<>

Up to 100 emails, each a complete send. With an Idempotency-Key header, item i uses the key <key>:<i>.

Response Body

Every item was tried; each has its own status. Retry with the same Idempotency-Key to resend only the failed items.

application/json
  1. response
api_version*string
data*array<>

One result per item, in order.

Example Request
curl -X POST 'https://api.relevate.app/email/emails/batch' \
  -H 'Content-Type: application/json' \
  -d '{
  "items": [
    {
      "to": "string"
    }
  ]
}'
Example Response
{
  "api_version": "string",
  "data": [
    {
      "email": {},
      "error": {},
      "index": 0,
      "status": 0
    }
  ]
}