POST
/
messages
/
{message_id}
/
cancel
curl --request POST \
  --url https://api.courier.com/messages/{message_id}/cancel \
  --header 'Authorization: Bearer <token>'
{
  "id": "<string>",
  "status": "CANCELED",
  "enqueued": 123,
  "sent": 123,
  "delivered": 123,
  "opened": 123,
  "clicked": 123,
  "recipient": "<string>",
  "event": "<string>",
  "notification": "<string>",
  "error": "<string>",
  "reason": "FILTERED"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

message_id
string
required

A unique identifier representing the message ID

Response

200 - application/json

The response is of type object.