<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content

Custom Email Template is Not Being Used

Administration
Okta Classic Engine
Okta Identity Engine

Overview

An unexpected email template is sent to a user when a triggering action is performed via an Application Programming Interface (API) call. The article clarifies why an unexpected email template is sent to a user when triggered via an API call.

Applies To

  • Email Templates
  • Brands
  • Custom Domain

Cause

The system determines which email template to use based on the domain used in the API call.

Solution

The correct domain must be used in the API call to ensure the matching template is sent.

  1. Before making the API call, set the url variable to the correct brand.

    • For example, when activating a user, the call is:

POST {{url}}/api/v1/users/{{userID}}/lifecycle/activate?sendEmail=true

Related References

Loading
Okta Support - Custom Email Template is Not Being Used