Programs
What programs define
Property
Purpose
Creating a program
curl -X POST https://api.gomobile.ma/api/programs \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "January Payment Reminders",
"audienceId": "audience-uuid",
"flowId": "flow-uuid",
"startAt": "2025-01-20T09:00:00Z",
"stopAt": "2025-01-20T18:00:00Z",
"didPool": ["+212500000001", "+212500000002"],
"retryStrategy": {
"type": "fixed_delay",
"delayMinutes": 60,
"maxRetries": 2
},
"pauseWindows": {
"monday": [
{ "startAt": { "hour": 12, "minute": 0 }, "endAt": { "hour": 14, "minute": 0 } }
],
"tuesday": [
{ "startAt": { "hour": 12, "minute": 0 }, "endAt": { "hour": 14, "minute": 0 } }
]
}
}'Program status
Status
Description
DID pool
Retry strategies
No retries
Fixed delay
Scheduled
Pause windows
Launching a program
Updating programs
Listing programs
Deleting programs
Best practices
Related concepts
Last updated

