v1

latestOpenAPI 3.0.32026-07-248519153.1 KB

Send an email template

Send a specific email template to a user. Either email or user_id must be provided.

post/email-templates/send

Headers

api_keystring required

API key for authentication

Request body

template_idinteger required

ID of the email template to send

user_idstring

User ID (required if email is not provided)

emailstring email

Email address to send to (required if user_id is not provided)

Example request

{
  "template_id": 1,
  "user_id": "c1409762-d624-4a47-a330-2a21d108b681",
  "email": "user@example.com"
}

Response

Email sent successfully

successboolean
messagestring

Example response

{
  "success": true,
  "message": "Email sent successfully",
  "data": {
    "email": "user@example.com",
    "template_id": 1,
    "subject": "Welcome to our service!"
  }
}