Skip to main content
Stops a message that is still delivering or postponed: no further channel is tried, and it ends canceled (a message.canceled event follows). A message already handed to a channel is not called back from it.
Needs the messages:send scope.

Path parameters

Request

Response

200 OK — the message, now canceled.

Errors

Every refusal is {"error": {"code", "message", "field"}}; field is there when one input is at fault. Any request can also be refused for its key, its account or its rate (key_required, invalid_key, account_suspended, plan_excludes_api, address_not_allowed, rate_limited); see the overview.