Skip to main content

Sending Campaigns

This endpoint triggers the sending process for a pre-existing campaign, initiating a background bulk email dispatch to all profiles associated with the specified campaignId.

Endpoint

POST /campaign/send

Headers

HeaderValueRequired
AuthorizationBearer <your-api-key>✅ Yes
Content-Typeapplication/json✅ Yes

Body Parameters

ParameterTypeRequiredDescription
campaignIdString✅ YesThe unique ID of the campaign to be sent.

Examples

Request

const response = await fetch("https://api.basicsengage.com/api/v0/dev/campaign/send", {
method: "POST",
headers: {
"Content-Type": "application/json",
"Authorization": "Bearer <your-api-key>"
},
body: JSON.stringify({
campaignId: "64a55f123abcde1234567890"
})
});

const data = await response.json();
console.log(data);

Responses

{
"status": "success",
"message": "Campaign queued successfully!"
}