Documentation ›
Campaigns › Launch campaign
POST
Launch campaign
POSThttps://app.sendapp.ai/api/campaigns/launch
Launch (send) an existing draft campaign, given its
campaign_id (returned by draft creation). This sends real messages to the selected recipients. Warning: this operation starts the bulk send. Make sure the draft is correct before launching it.
Parameters
apikey
required
Your API Key.
campaign_id
required
ID of the draft campaign to send.
Request
curl -X POST 'https://app.sendapp.ai/api/campaigns/launch' \
-H 'Content-Type: application/json' \
-d '{ "apikey": "YOUR_API_KEY", "campaign_id": 148 }'<?php
$ch = curl_init('https://app.sendapp.ai/api/campaigns/launch');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POST => true,
CURLOPT_HTTPHEADER => ['Content-Type: application/json'],
CURLOPT_POSTFIELDS => json_encode(['apikey' => 'YOUR_API_KEY', 'campaign_id' => 148]),
]);
echo curl_exec($ch);const res = await fetch('https://app.sendapp.ai/api/campaigns/launch', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ apikey: 'YOUR_API_KEY', campaign_id: 148 })
});
console.log(await res.json());Response (200 OK)
{
"status": "success",
"message": "Campaign created and queued for immediate sending!",
"campaign_id": 512,
"sending_now": true,
"total_recipients": 128
}Error
{
"status": "error",
"message": "Draft not found."
}