メインコンテンツへスキップ
GET
https://{tenantDomain}/api/v2
/
email-templates
/
{templateName}
Go
package example

import (
    context "context"

    management "github.com/auth0/go-auth0/management/management"
    client "github.com/auth0/go-auth0/management/management/client"
    option "github.com/auth0/go-auth0/management/management/option"
)

func do() {
    client := client.NewClient(
        option.WithToken(
            "<token>",
        ),
    )
    client.EmailTemplates.Get(
        context.TODO(),
        management.EmailTemplateNameEnumVerifyEmail.Ptr(),
    )
}
{
  "body": "<string>",
  "enabled": true,
  "from": "sender@auth0.com",
  "includeEmailInRedirect": true,
  "resultUrl": "<string>",
  "subject": "<string>",
  "syntax": "liquid",
  "template": "verify_email",
  "urlLifetimeInSeconds": 1
}

承認

Authorization
string
header
必須

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

パスパラメータ

templateName
enum<string>
デフォルト:verify_email
必須

テンプレート名。verify_emailverify_email_by_codereset_emailreset_email_by_codewelcome_emailblocked_accountstolen_credentialsenrollment_emailmfa_oob_codeuser_invitationasync_approvalchange_password(レガシー)、または password_reset(レガシー)を指定できます。

利用可能なオプション:
verify_email,
verify_email_by_code,
reset_email,
reset_email_by_code,
welcome_email,
blocked_account,
stolen_credentials,
enrollment_email,
mfa_oob_code,
user_invitation,
change_password,
password_reset,
async_approval

レスポンス

テンプレートが正常に取得されました。

body
string | null

メールテンプレートの本文。

enabled
boolean | null

テンプレートが有効(true)か無効(false)か。

from
string | null
デフォルト:sender@auth0.com

送信元のfromメールアドレス。

includeEmailInRedirect
boolean

reset_email および verify_email テンプレートで、returnUrl に email パラメーターとしてユーザーのメールアドレスを含めるか(true)、またはリダイレクト先にメールアドレスを含めないか(false)を指定します。デフォルトは true です。

resultUrl
string | null

Action が正常に完了した後にユーザーをリダイレクトする URL。

subject
string | null

メールの件名。

syntax
string | null
デフォルト:liquid

テンプレート本文の構文。

template
enum<string>
デフォルト:verify_email

テンプレート名。verify_emailverify_email_by_codereset_emailreset_email_by_codewelcome_emailblocked_accountstolen_credentialsenrollment_emailmfa_oob_codeuser_invitationasync_approvalchange_password(レガシー)、または password_reset(レガシー)を指定できます。

利用可能なオプション:
verify_email,
verify_email_by_code,
reset_email,
reset_email_by_code,
welcome_email,
blocked_account,
stolen_credentials,
enrollment_email,
mfa_oob_code,
user_invitation,
change_password,
password_reset,
async_approval
urlLifetimeInSeconds
number | null

メール内のリンクが有効な期間(秒)。

必須範囲: x >= 0