Get email template default by event

Get email template default by event id and specified language code.

get
Path parameters
eventIdstringRequired

The id of the event.

Query parameters
languageCodestringRequired

The code of the language. The language code must be in the ISO 639-1 format.

Header parameters
Brand-URLstringRequired

The brand URL of the request. This is used to identify the brand.

Example: YOUR_BRAND_URL
Auth-KeystringRequired

This is used to authenticate the request. If the request is not authenticated, the server will return a 401 Unauthorized response.

Example: YOUR_AUTH_KEY
Responses
200
The request was successful.
application/json
get
GET /api/v1/events/{eventId}/email-templates/default HTTP/1.1
Host: protocol.jframework.io
Brand-URL: text
Auth-Key: text
Accept: */*
{
  "success": true,
  "statusCode": 200,
  "message": "The request was successful.",
  "data": {
    "languageCode": "en-US",
    "subject": "{{brand.name}} - Email Login Link",
    "body": "<html lang=\"en\">\n\t<body style=\"font-family: Arial, sans-serif; margin: 0; padding: 0;\">\n\t\t<p>Dear {{user.email_address}},</p>\n\t\t<p>Click the link below to log in to your account: <a href=\"{{login_link}}\">Login here</a></p>\n\t\t<p>If you didn't request this, please ignore this email.</p>\n\t\t<p>If you have any questions or need further assistance, please don't hesitate to contact us: {{brand.email_support}}</p>\n\t\t<p>Best regards,<br>{{brand.email_support_title}}</p>\n\t</body>\n</html>"
  },
  "errors": []
}

Last updated

Was this helpful?