GET
/
email-templates
/
{template_name}
Get Email Template
curl --request GET \
  --url https://api.wacht.dev/email-templates/{template_name} \
  --header 'Authorization: Bearer <token>'
{
  "name": "welcome_email",
  "subject": "Welcome to {{app_name}}!",
  "html_body": "<h1>Welcome {{user.name}}!</h1><p>Thank you for joining us.</p>",
  "text_body": "Welcome {{user.name}}! Thank you for joining us.",
  "variables": [
    "user.name",
    "user.email",
    "app_name"
  ],
  "updated_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

JWT Bearer token authentication using the Authorization header

Path Parameters

template_name
enum<string>
required
Available options:
welcome_email,
password_reset,
email_verification,
invitation

Response

Successful response

The response is of type object.