scheduled-notifications
Schedule a push notification
Schedule a push notification to be sent at a specific date and time. The notification will be automatically sent by the system when the scheduled time arrives. Requires admin approval before being sent. Supports multiple target types: single user, multiple users, all users, device tokens, topics, or conditions.
post/notifications/scheduled
Request body
Example request
{
"title": "Flash Sale Alert",
"body": "Get 50% off on all products! Limited time offer.",
"scheduledTime": "2025-12-25T10:00:00Z",
"targetType": "all_users",
"data": {
"campaignId": "123",
"category": "sales"
},
"imageUrl": "https://example.com/sale-banner.jpg",
"clickAction": "OPEN_SALE_PAGE",
"timezone": "Asia/Kuala_Lumpur",
"createdBy": "admin@example.com",
"recurrenceRule": "0 9 * * 1"
}Response
Notification scheduled successfully (pending admin approval)
Example response
{
"notification_id": 1,
"title": "Flash Sale Alert",
"body": "Get 50% off!",
"scheduled_time": "2025-12-25T10:00:00Z",
"timezone": "Asia/Kuala_Lumpur",
"target_type": "all_users",
"status": "pending",
"created_at": "2025-12-01T10:00:00Z",
"updated_at": "2025-12-01T10:00:00Z"
}Changes
No recorded changes to this endpoint across all 1 revision of this API.