scheduled-notifications

Approve a scheduled notification

Approve a scheduled notification. Only admins can approve notifications. Once approved, the notification will be sent at the scheduled time.

post/notifications/scheduled/{id}/approve

Path parameters

idnumber required
Example:1

Notification ID

Request body

commentstring

Optional approval comment

Example request

{
  "comment": "Approved for sending"
}

Response

Notification approved successfully

notification_idnumber required

Notification ID

titlestring required

Notification title

bodystring required

Notification body

scheduled_timestring date-time required

Scheduled time

timezonestring required

Timezone

target_type'user' | 'users' | 'all_users' | 'tokens' | 'topic' | 'condition' required

Target type

target_valueobject

Target value

status'pending_approval' | 'pending' | 'processing' | 'sent' | 'failed' | 'cancelled' | 'expired' | 'rejected' required

Current status

sent_atstring date-time

Sent timestamp

success_countnumber required

Number of successful sends

failure_countnumber required

Number of failed sends

error_messagestring

Error message if failed

created_atstring date-time required

Created timestamp

updated_atstring date-time required

Updated timestamp

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.