Skip to content

Cancel a broadcast

POST /v1/broadcasts/{id}/cancel

Stops a broadcast for good. Messages already being sent finish. The rest are never sent and stay pending.

Needs broadcasts:write.

id string · uuid

The broadcast’s ID.

Idempotency-Key string

Makes this request safe to retry. See Retrying safely.

1 to 255 characters.

A broadcast that is preparing, scheduled, queued, processing or paused. The request takes no body: send none, or {}.

200 The broadcast object. The broadcast, now cancelled. It also sends a broadcast.status event.

Besides the ones every request can get:

409invalid_stateThe broadcast has any other status, including one that completed a moment ago.
404not_foundThere is no broadcast with this ID in your workspace.
409idempotency_in_progressA request with the same Idempotency-Key is still running.
422idempotency_mismatchThe Idempotency-Key was used before for a different request, or by another of your API keys.