Carillon docs
Messages

Send or schedule a notification

Create a campaign for one of four audiences: device_ids, external_ids, all devices, or a saved audience (audience_id). Sending runs asynchronously. Use Idempotency-Key for retries and dedup_key to reject duplicate business notifications for 30 days.

POST
/v1/messages

Create a campaign for one of four audiences: device_ids, external_ids, all devices, or a saved audience (audience_id). Sending runs asynchronously. Use Idempotency-Key for retries and dedup_key to reject duplicate business notifications for 30 days.

AuthorizationBearer <token>

An API key, sent as Authorization: Bearer carillon_sk_live_…. A secret key sends, reads traces and manages devices; a mobile key may only register its own device and report that device’s events.

In: header

Header Parameters

idempotency-key?string

Retry key retained for 24 hours. Reuse the same key and identical request-body bytes to receive the original response. A different body returns 422; a concurrent request returns 409.

Length1 <= length <= 255

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X POST "https://example.com/v1/messages" \  -H "Content-Type: application/json" \  -d '{    "audience": {      "device_ids": [        "743d709b-361e-4f32-8914-0bf36add9bdd"      ]    },    "payload": {}  }'
{  "audience": {    "kind": "device_ids",    "size": 0  },  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "status": "sending",  "mode": "live",  "created_at": "2019-08-24T14:15:22Z",  "deliveries": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "device_id": "3bafab7b-4400-4bcf-8e6e-09f954699940"    }  ],  "warnings": [    {      "code": "no_valid_credential",      "platform": "ios",      "detail": "string",      "devices": 0,      "reason": "string",      "credential": {        "key_id": "string",        "rejected_at": "2019-08-24T14:15:22Z"      }    }  ]}