Wiraya API
Import contacts and schedule campaigns from your own systems. Campaign content is built in Wiraya.
One call to start a campaign
Import contacts and schedule a campaign for them in the same request.
curl
- curl
- Laravel
curl -X POST \
https://api.optimized.app/v1/groups/{GROUP_ID}/batches \
-H "Authorization: Bearer {API_TOKEN}" \
-H "Content-Type: application/json" \
-d '{
"profiles": [
{
"person": {
"first_name": "John",
"last_name": "Smith",
"phone_number": "+35840123456",
"email_address": "john.smith@example.com"
},
"attributes": [
{
"name": "HasPaid",
"value": "0"
}
]
}
],
"schedule": {
"start_at": "2026-12-01 08:00:00",
"campaign": {
"uuid": "9e679c93-ff33-4b1e-bfad-1ac77afe1aef"
}
}
}'