BeaconBox
Esc

Type to search.

Dashboard

Push a batch

Up to 100 complete pushes in one call. Always returns 200; the items report their own failures.

POST/api/v1/messages/batchIdempotency-Key required

Request

curl -X POST https://api.beaconbox.eu/api/v1/messages/batch \
  -H "Authorization: Bearer $BEACONBOX_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: 8f2b1c04-3d6a-4e55-9a12-77c0b4e9d100" \
  -d '{
       "items": [
         {
           "recipient_email": "a@example.com",
           "subject": "Your order has shipped",
           "body": "Tracking XY123456789EE."
         }
       ]
     }'

Body

FieldTypeDescription
items
required
object[]

Response

Returns 200.

FieldTypeDescription
itemsobject[]
succeededinteger
failedinteger

Errors

Failures are { "error_code": "..." } with a stable dotted code. See Errors for the codes worth branching on and the three outcomes that look like failures and are not.

This is a write, so it requires an Idempotency-Key header. A request without one is refused with 422. See Idempotency.