View Source Auth0.Management.EmailTemplates (Auth0Api v2.5.1)

Facade for the Auth0 Management API Email Templates endpoints.

Most applications should call Auth0.Api.Management instead of this module.

Summary

Functions

Create an email template.

Retrieve an email template by pre-defined name. These names are verify_email, verify_email_by_code, reset_email, welcome_email, blocked_account, stolen_credentials, enrollment_email, mfa_oob_code, and user_invitation. The names change_password, and password_reset are also supported for legacy scenarios.

Modify an email template.

Update an email template.

Types

@type config() :: Auth0.Config.t()
@type error() :: {:error, integer(), term()} | {:error, term()}
@type template_name() :: String.t()

Functions

@spec create(map(), config()) :: {:ok, map()} | error()

Create an email template.

see

https://auth0.com/docs/api/management/v2/email-templates/post-email-templates

Link to this function

get(template_name, config)

View Source
@spec get(template_name(), config()) :: {:ok, map()} | error()

Retrieve an email template by pre-defined name. These names are verify_email, verify_email_by_code, reset_email, welcome_email, blocked_account, stolen_credentials, enrollment_email, mfa_oob_code, and user_invitation. The names change_password, and password_reset are also supported for legacy scenarios.

see

https://auth0.com/docs/api/management/v2/email-templates/get-email-templates-by-template-name

Link to this function

patch(template_name, params, config)

View Source
@spec patch(template_name(), map(), config()) :: {:ok, map()} | error()

Modify an email template.

see

https://auth0.com/docs/api/management/v2/email-templates/patch-email-templates-by-template-name

Link to this function

update(template_name, params, config)

View Source
@spec update(template_name(), map(), config()) :: {:ok, map()} | error()

Update an email template.

see

https://auth0.com/docs/api/management/v2/email-templates/put-email-templates-by-template-name