メインコンテンツへスキップ
GET
/
guardian
/
factors
/
sms
/
templates
TypeScript
import { ManagementClient } from "auth0";

async function main() {
    const client = new ManagementClient({
        token: "<token>",
    });
    await client.guardian.factors.sms.getTemplates();
}
main();
{
  "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.

レスポンス

SMS enrollment and verification templates successfully retrieved.

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

Message sent to the user when they are invited to enroll with a phone number.

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

Message sent to the user when they are prompted to verify their account.