Send Notification
Send Push Notification Send a notification to all or specific subscribers.
Endpoint:
POST https://domain.com/api/notifications/send-notification/
Request Type:
POST
Authentication:
Required (Bearer token in header)
Payload Example:
{
"website_id": "uuid-of-website",
"title": "Test Notifications Title",
"message": "Test Message go here",
"require_interaction": false, // optional
"icon_url": "https://example.com/media/icons/bell_UR7MzyA.png", // optional
"image_url": "https://example.com/media/images/example.png", // optional
"click_url": "https://example.co/post-of-test", // optional
"scheduled_time": "2025-03-07T14:30:00Z", // optional
"segment_id": "uuid-of-segment", // if not specified, it will send all website's subscribers
"action_buttons": [
{
"action": "visit_home",
"title": "Visit Home",
"url": "https://testhomepage.com" // action buttons optional
},
{
"action": "home_page",
"title": "Home Page",
"url": "https://home-page.com" // upto 2 buttons
}
]
}
Success Response:
HTTP 201 CREATED
{
"message": "Notification sent in background successfully",
"notification_id": "9c1962cd-e7a1-4f09-b64c-a2910f15f313"
}