- Audience API - Manage audiences and contacts
- Contact API - Contact management
- Credit API - Credit management and billing
Types
Type Definitions
Type Definitions
API Endpoints
Base path:
/sms-programsRequest/Response Types
Create a new SMS program
List all SMS programs
Get SMS program by ID with progress information
Update an SMS program
Error Responses:Delete an SMS program
Error Responses:Launch an SMS program
Notes:- Only programs in
draftstatus can be launched - Requires sufficient credits - estimated cost = contacts × 1.887
- If insufficient credits, returns
InsufficientCreditsError - On success, status transitions to
pending, thensendingwhen job starts - Credits are deducted at campaign completion
Cancel a running SMS program
Notes:- Only programs in
pendingorsendingstatus can be cancelled - Best-effort cancellation - some messages may still be sent
- Already sent messages are not affected
- Credits for already sent messages are still charged
Billing
SMS programs use the same cost as SMS nodes in call flows: Pre-launch credit check:- Before launching, the system calculates:
estimatedCost = contactCount × 1.887 - If
balance < estimatedCost, launch is rejected withInsufficientCreditsError - Unlike calls (which can go negative due to unpredictable duration), SMS programs require credits upfront
- Credits are deducted at campaign completion based on actual messages sent
- Transaction type in credit history:
sms_charge - Failed messages are not charged