Skip to main content
POST
/
sendWebNotificationRequest
Send web push notification (server-to-server)
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.

Authorizations

X-API-KEY
string
header
required

Server-to-Server API Key for internal/lambda/cron calls

Body

application/json
template
string

Web notification template name

Example:

"web_push_deal"

replace_data
object

Key-value pairs to replace in the template

Example:
[]
receiver
integer

Recipient user ID

Example:

1

deal_id
integer | null

Related deal/job ID (optional)

Example:

1

deliverable_id
integer | null

Related deliverable ID (optional)

Example:

1

Response

200 - application/json

Web notification sent

status
string
Example:

"success"

message
string
Example:

"Web notification sent successfully."