Passer au contenu principal
GET
https://{tenantDomain}/api/v2
/
branding
/
phone
/
templates
Go
package example

import (
    context "context"

    management "github.com/auth0/go-auth0/management/management"
    phone "github.com/auth0/go-auth0/management/management/branding/phone"
    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>",
        ),
    )
    request := &phone.ListPhoneTemplatesRequestParameters{
        Disabled: management.Bool(
            true,
        ),
    }
    client.Branding.Phone.Templates.List(
        context.TODO(),
        request,
    )
}
{
  "templates": [
    {
      "content": {
        "body": {
          "text": "<string>",
          "voice": "<string>"
        },
        "from": "<string>",
        "syntax": "<string>"
      },
      "disabled": false,
      "id": "<string>",
      "channel": "<string>",
      "customizable": true,
      "tenant": "<string>"
    }
  ]
}

Autorisations

Authorization
string
header
requis

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

Paramètres de requête

disabled
boolean

Indique si le modèle est activé (false) ou désactivé (true).

Réponse

Les modèles de notification téléphonique ont été récupérés.

templates
object[]