Custom Email Template is Not Being Used
Last Updated:
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.
-
Before making the API call, set the
urlvariable to the correct brand.-
For example, when activating a user, the call is:
-
POST {{url}}/api/v1/users/{{userID}}/lifecycle/activate?sendEmail=true
