Passer au contenu principal
GET
https://{tenantDomain}/api/v2
/
guardian
/
factors
/
sms
/
templates
Go
package example

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

func do() () {
    client := client.NewClient(
        option.WithToken(
            "<token>",
        ),
    )
    client.Guardian.Factors.Sms.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}}"
}

Autorisations

Authorization
string
header
requis

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

Réponse

SMS enrollment and verification templates successfully retrieved.

enrollment_message
string
défaut:{{code}} is your verification code for {{tenant.friendly_name}}. Please enter this code to verify your enrollment.
requis

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

verification_message
string
défaut:{{code}} is your verification code for {{tenant.friendly_name}}
requis

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