Skip to content

Cancel scheduled campaign

Cancel a campaign that is scheduled to be sent.

HTTP method: DELETE

https://api.sender.net/v2/campaigns/{id}/schedule


ParameterTypeDescription
idstring requiredCampaign ID

const url = new URL("https://api.sender.net/v2/campaigns/{id}/schedule");
let headers = {
"Authorization": "Bearer [your-token]",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));

Example Response
{
"success": true,
"message": "Campaign scheduled canceled"
}