Skip to main content
POST
/
sendEmailRequest
Send email notification (server-to-server)
curl --request POST \
  --url http://localhost/mogl/mogl-backend/api/sendEmailRequest \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --data '
{
  "template": "email_notification",
  "replace_data": [],
  "receiver_email": "recipient@example.com"
}
'
{
  "status": "success",
  "message": "Email 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

Email template name

Example:

"email_notification"

replace_data
object

Key-value pairs to replace in the template

Example:
[]
receiver_email
string<email>

Recipient email address

Example:

"recipient@example.com"

Response

200 - application/json

Email sent

status
string
Example:

"success"

message
string
Example:

"Email sent successfully."