Get email templates

GET /api/email-templates

Get the list of email templates.

Query parameters

  • The language tag of the email template, e.g., en or fr.

    Minimum length is 1, maximum length is 16.

  • The type of the email template, e.g. SignIn or ForgotPassword

    Values are SignIn, Register, ForgotPassword, OrganizationInvitation, Generic, UserPermissionValidation, or BindNewIdentifier.

Responses

GET /api/email-templates
curl \
 --request GET https://[tenant_id].logto.app/api/email-templates \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
[
  {
    "tenantId": "string",
    "id": "string",
    "languageTag": "string",
    "templateType": "SignIn",
    "details": {
      "subject": "string",
      "content": "string",
      "contentType": "string",
      "replyTo": "string",
      "sendFrom": "string"
    },
    "createdAt": 42.0
  }
]