Skip to main content
POST
/
sendInAppNotificationRequest
Send in-app notification (server-to-server)
curl --request POST \
  --url http://localhost/mogl/mogl-backend/api/sendInAppNotificationRequest \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --data '
{
  "template": "in_app_job_update",
  "replace_data": [],
  "receiver": 1
}
'
{
  "status": "success",
  "message": "In-app 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

In-app notification template name

Example:

"in_app_job_update"

replace_data
object

Key-value pairs to replace in the template

Example:
[]
receiver
integer

Recipient user ID

Example:

1

Response

200 - application/json

In-app notification sent

status
string
Example:

"success"

message
string
Example:

"In-app notification sent successfully."