Saltar al contenido 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>"
    }
  ]
}

Autorizaciones

Authorization
string
header
requerido

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

Parámetros de consulta

disabled
boolean

Indica si la plantilla está habilitada (false) o deshabilitada (true).

Respuesta

Se recuperaron las plantillas de notificación telefónica.

templates
object[]