Skip to main content
GET
/
branding
/
phone
/
templates
TypeScript
import { ManagementClient } from "auth0";

async function main() {
    const client = new ManagementClient({
        token: "<token>",
    });
    await client.branding.phone.templates.list({
        disabled: true,
    });
}
main();
{
  "templates": [
    {
      "id": "<string>",
      "content": {
        "syntax": "<string>",
        "from": "<string>",
        "body": {
          "text": "<string>",
          "voice": "<string>"
        }
      },
      "type": "otp_verify",
      "disabled": false,
      "channel": "<string>",
      "customizable": true,
      "tenant": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Query Parameters

disabled
boolean

Whether the template is enabled (false) or disabled (true).

Response

The phone notification templates were retrieved.

templates
object[]