POST
/
bulk
curl --request POST \
  --url https://api.courier.com/bulk \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "message": {
    "brand": "<string>",
    "data": {},
    "event": "<string>",
    "locale": {},
    "override": "<any>",
    "message": {
      "data": {},
      "brand_id": "<string>",
      "channels": {},
      "context": {
        "tenant_id": "<string>"
      },
      "metadata": {
        "event": "<string>",
        "tags": [
          "<string>"
        ],
        "utm": {
          "source": "<string>",
          "medium": "<string>",
          "campaign": "<string>",
          "term": "<string>",
          "content": "<string>"
        },
        "trace_id": "<string>"
      },
      "preferences": {
        "subscription_topic_id": "<string>"
      },
      "providers": {},
      "routing": {
        "method": "all",
        "channels": [
          {
            "channel": "<string>",
            "config": {},
            "method": "all",
            "providers": {},
            "if": "<string>"
          }
        ]
      },
      "timeout": {
        "provider": {},
        "channel": {},
        "message": 123,
        "escalation": 123,
        "criteria": "no-escalation"
      },
      "delay": {
        "duration": 123,
        "until": "<string>"
      },
      "expiry": {
        "expires_at": "<string>",
        "expires_in": "<string>"
      },
      "template": "<string>"
    }
  }
}'
{
  "jobId": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
message
object
required

Response

200
application/json
jobId
string
required