curl --location --request POST 'https://api.jokoor.com/v1/sms/campaigns' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "string",
"message_body": "string",
"template_id": "string",
"template_params": {
"property1": "string",
"property2": "string"
},
"sender_id": "string",
"contact_ids": [
"string"
],
"group_ids": [
"string"
],
"scheduled_at": "2019-08-24T14:15:22Z",
"is_draft": true
}'{
"data": {
"id": "string",
"organization_id": "string",
"name": "string",
"message_template_id": "string",
"sender_id_config_id": "string",
"status": "draft",
"scheduled_at": "2019-08-24T14:15:22Z",
"started_at": "2019-08-24T14:15:22Z",
"completed_at": "2019-08-24T14:15:22Z",
"created_by": "string",
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"details": {
"total_message_count": 0,
"total_sent_messages": 0,
"total_failed_messages": 0,
"total_pending_messages": 0,
"total_segments_used": 0,
"delivery_rate": 0,
"failure_rate": 0,
"pending_rate": 0,
"status_breakdown": {
"property1": 0,
"property2": 0
}
},
"metadata": {}
}
}