Skip to main content

Marketing Email Admin API

Base path: /api/v1/admin/marketing/email


List Templates

GET /api/v1/admin/marketing/email/templates
[
{ "name": "welcome", "subject": "Welcome to ELIVAAS", "version": 2 },
{ "name": "booking-confirmation", "subject": "Booking Confirmed!", "version": 1 }
]

Create Template

POST /api/v1/admin/marketing/email/templates
{
"name": "summer-promo",
"subject": "Summer Sale - Up to 30% Off",
"content": "<h1>Summer Sale!</h1><p>Book now and save.</p>"
}

Delete Template

DELETE /api/v1/admin/marketing/email/templates/&#123;templateName&#125;

Send Email with Template

POST /api/v1/admin/marketing/email/send
{
"to": "[email protected]",
"templateName": "welcome",
"templateData": {
"guestName": "Riaz",
"bookingId": "BK-12345"
}
}

Send Simple Email

POST /api/v1/admin/marketing/email/send/simple
{
"to": "[email protected]",
"subject": "Your booking is confirmed",
"body": "Thank you for booking with ELIVAAS."
}