curl --request POST \
--url http://localhost/mogl/mogl-backend/api/sendWebNotificationRequest \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"template": "web_push_deal",
"replace_data": [],
"receiver": 1,
"deal_id": 1,
"deliverable_id": 1
}
'{
"status": "success",
"message": "Web notification sent successfully."
}Called by internal services/Lambda to send a web push notification.
curl --request POST \
--url http://localhost/mogl/mogl-backend/api/sendWebNotificationRequest \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"template": "web_push_deal",
"replace_data": [],
"receiver": 1,
"deal_id": 1,
"deliverable_id": 1
}
'{
"status": "success",
"message": "Web notification sent successfully."
}Documentation Index
Fetch the complete documentation index at: https://developer.mogl.online/llms.txt
Use this file to discover all available pages before exploring further.
Server-to-Server API Key for internal/lambda/cron calls
Web notification template name
"web_push_deal"
Key-value pairs to replace in the template
[]Recipient user ID
1
Related deal/job ID (optional)
1
Related deliverable ID (optional)
1