Skip to content

Send a campaign

Starts sending the campaign.

HTTP method: POST

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


ParameterTypeDescription
idstring requiredThe campaign id you want to send.

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

Example Response
{
"success": true,
"message": "Campaign started to send"
}