Cancel a scheduled broadcast
Cancel a trigger you scheduled with scheduled_at, before it fires.
The request fails if the broadcast has started calculating its audience, is already sending, or has already sent. A trigger with a rate_limit is the exception: you can cancel it while it sends. Canceling stops more people from entering the broadcast, and people who already entered continue through your workflow.
- Type: integerbroadcast
_id requiredThe ID of the broadcast you triggered.
- Type: integertrigger
_id requiredThe ID of the trigger you want to cancel. You get it back from the trigger request that scheduled the send.
- application/json
- 400
The
broadcastID,actionIDortriggerIDis invalid. - 401
Unauthorized request. Make sure that you provided the right credentials.
- 404
The broadcast, action, and/or trigger do not exist.
- 409
When the broadcast is resolving its audience, already sending without a
rate_limit, or already sent.
curl https://api.customer.io/v1/campaigns/3/triggers/12/cancel \
--request POST \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
"trigger": {
"audience_count": 0,
"broadcast_id": 3,
"cancelled_at": 1796041200,
"created_at": 1796040000,
"expires_after": 0,
"id": 12,
"processed_at": 0,
"rate_limit": {
"period": "hour",
"rate": 1000,
"spread": true
},
"scheduled_at": 1796128200
}
}The trigger was canceled. Returns the trigger's current state.