✉️
Email marketing
Sending email, pulling reports, tracking clicks.
3 endpoints
POST
Send email
🔒 Token requiredPOSThttps://saas-email.mona.academy/v1/email/send
Sends a marketing email to a list of recipients.
Base URL: https://saas-email.mona.academy (NEXT_PUBLIC_API_EMAIL)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| type | string | Yes | vd 'html' |
| html_content | string | Yes | - |
| sender_name | string | Yes | - |
| subject | string | Yes | - |
| scheduled_at | string | null | No | Thời điểm gửi (ISO) hoặc null gửi ngay |
| recipients | Array<{name,email,additional_data}> | Yes | - |
Example request
Request
POST /v1/email/send
{
"type": "html",
"subject": "Ưu đãi đặc biệt",
"sender_name": "Mona Academy",
"html_content": "<h1>Xin chào</h1>",
"scheduled_at": null,
"recipients": [ { "name": "A", "email": "a@example.com", "additional_data": "" } ]
}GRAPHQL
Email report
🔒 Token requiredGRAPHQLhttps://khanhhungacademy-api.monamedia.net/graphql/
Returns campaign reporting (sent / opened / clicked / failed).
Base URL: https://khanhhungacademy-api.monamedia.net (NEXT_PUBLIC_API_KHA)
PUT
Track an email click
PublicPUThttps://saas-email.mona.academy/email/click/{mailingId}
Records a click event coming from an email.
Base URL: https://saas-email.mona.academy (NEXT_PUBLIC_API_EMAIL)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| mailingId | string | Yes | Passed as a URL parameter |