Skip to Content
MailroomMailroom home

Send a batch of emails

Up to 100 messages, each validated independently.

POST
/emails/batch

Up to 100 messages, each validated independently.

Authorization

bearerAuth
headerAuthorizationBearer <mr_live_ / mr_test_>

API key. Never log the secret.

Header Parameters

Idempotency-Key?string

Stored 24h. Same key + body returns the original response.

Request Body

application/json
  1. body
items*array<>
Itemsitems <= 100

Response Body

Per-item results

application/json
  1. response
items?array<>
Example Request
curl -X POST 'https://api.mailroom.gosuevals.com/v1/emails/batch' \  -H 'Content-Type: application/json' \  -d '{  "items": [    {      "from": "string",      "to": [        "user@example.com"      ],      "subject": "string"    }  ]}'
Example Response202
{  "items": [    {      "id": "string",      "status": "queued",      "error": {        "type": "http://example.com",        "title": "string",        "status": 0,        "code": "unauthorized",        "detail": "string",        "instance": "string",        "request_id": "string"      }    }  ]}