You can check your account balance before sending campaigns. This step is optional—if your account has insufficient credits, the API will return an error when you try to send.
For bulk messaging, scheduling, and recurring campaigns, use the full Campaign API:
curl -X POST "https://sendazi.com/api/v1/sms-campaigns" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "name": "My First Campaign", "recipients": ["233241234567", "233501234567"], "sender_id": "YOUR_SENDER_ID", "message": "Hello! This is a test message from Sendazi." }'
const response = await fetch('https://sendazi.com/api/v1/sms-campaigns', { method: 'POST', headers: { 'Authorization': 'Bearer YOUR_API_KEY', 'Content-Type': 'application/json' }, body: JSON.stringify({ name: 'My First Campaign', recipients: ['233241234567', '233501234567'], sender_id: 'YOUR_SENDER_ID', message: 'Hello! This is a test message from Sendazi.' })});const data = await response.json();console.log(data);
import requestsresponse = requests.post( 'https://sendazi.com/api/v1/sms-campaigns', headers={ 'Authorization': 'Bearer YOUR_API_KEY', 'Content-Type': 'application/json' }, json={ 'name': 'My First Campaign', 'recipients': ['233241234567', '233501234567'], 'sender_id': 'YOUR_SENDER_ID', 'message': 'Hello! This is a test message from Sendazi.' })print(response.json())
$curl = curl_init();curl_setopt_array($curl, [ CURLOPT_URL => 'https://sendazi.com/api/v1/sms-campaigns', CURLOPT_RETURNTRANSFER => true, CURLOPT_POST => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer YOUR_API_KEY', 'Content-Type: application/json' ], CURLOPT_POSTFIELDS => json_encode([ 'name' => 'My First Campaign', 'recipients' => ['233241234567', '233501234567'], 'sender_id' => 'YOUR_SENDER_ID', 'message' => 'Hello! This is a test message from Sendazi.' ])]);$response = curl_exec($curl);curl_close($curl);echo $response;