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

import (
    context "context"

    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.Guardian.Factors.Phone.GetTemplates(
        context.TODO(),
    )
}
{
  "enrollment_message": "{{code}} is your verification code for {{tenant.friendly_name}}. Please enter this code to verify your enrollment.",
  "verification_message": "{{code}} is your verification code for {{tenant.friendly_name}}"
}

承認

Authorization
string
header
必須

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

レスポンス

電話番号の登録および検証テンプレートを正常に取得しました。

enrollment_message
string
デフォルト:{{code}} is your verification code for {{tenant.friendly_name}}. Please enter this code to verify your enrollment.
必須

ユーザーが電話番号を使用して登録するよう招待されたときに送信されるメッセージ。

verification_message
string
デフォルト:{{code}} is your verification code for {{tenant.friendly_name}}
必須

ユーザーがアカウントを確認するよう求められたときに送信されるメッセージ。