Send Campaign
Once your campaign is created and built, you can send it to your contact list using this endpoint.
Endpoint
PUT https://beta.intelsend.com/api/campaign/{campaignId}/send
Request Example
- cURL
- Node.js
curl --location --request PUT 'https://beta.intelsend.com/api/campaign/68b0b5ccfcccb5cfc3b1f4eb/send' \
--header 'Cookie: __Secure-next-auth.session-token=<YOUR_SESSION_TOKEN>' \
--data ''
import fetch from "node-fetch";
const response = await fetch("https://beta.intelsend.com/api/campaign/68b0b5ccfcccb5cfc3b1f4eb/send", {
method: "PUT",
headers: {
Cookie: "__Secure-next-auth.session-token=<YOUR_SESSION_TOKEN>",
},
});
const data = await response.json();
console.log(data);
Response Example
{
"result": "success",
"response": "Successfully processed messages."
}
Notes
Replace campaignId with the ID of your campaign.
A valid session token (__Secure-next-auth.session-token) must be included in the request headers.
This action triggers message delivery for all selected channels (Email, SMS, Voice).