Send email or SMS
POST
/mass_emails
curl \
-X POST https://api.zooza.app/v1/mass_emails \
-H "Content-Type: application/json" \
-d '{"type":"email","message":"hello@example.com","subject":"string","registration_id":42,"params":[{"advanced_search":true,"schedule_id":42,"course_id":42,"place_id":42,"room_id":42,"trainer_id":42,"billing_period_id":42,"billing_status":"paid","user":"string","user_id":42,"email":"string","registration_id":42,"exclude":"string","exclude_user":"string","order_id":42,"parent":42,"distinct":true,"payment_id":42,"inactive_customers":true,"marketing_messages":true,"ef_full_name":"string","status":"string","created_from":"string","created_to":"string","schedule_groups":"string","schedule_query":"string"}]}'
Request examples
{
"type": "email",
"message": "hello@example.com",
"subject": "string",
"registration_id": 42,
"params": [
{
"advanced_search": true,
"schedule_id": 42,
"course_id": 42,
"place_id": 42,
"room_id": 42,
"trainer_id": 42,
"billing_period_id": 42,
"billing_status": "paid",
"user": "string",
"user_id": 42,
"email": "string",
"registration_id": 42,
"exclude": "string",
"exclude_user": "string",
"order_id": 42,
"parent": 42,
"distinct": true,
"payment_id": 42,
"inactive_customers": true,
"marketing_messages": true,
"ef_full_name": "string",
"status": "string",
"created_from": "string",
"created_to": "string",
"schedule_groups": "string",
"schedule_query": "string"
}
]
}
Response examples (200)
{
"result": true
}