C#
using Auth0.ManagementApi;
using System.Threading.Tasks;
using Auth0.ManagementApi.Branding.Phone;
public partial class Examples
{
public async Task Example() {
var client = new ManagementApiClient(
token: "<token>",
clientOptions: new ClientOptions { BaseUrl = "https://{YOUR_DOMAIN}/api/v2" }
);
await client.Branding.Phone.Templates.TestAsync(
id: "id",
request: new CreatePhoneTemplateTestNotificationRequestContent {
To = "to"
}
);
}
}package example
import (
context "context"
phone "github.com/auth0/go-auth0/v2/management/branding/phone"
client "github.com/auth0/go-auth0/v2/management/client"
option "github.com/auth0/go-auth0/v2/management/option"
)
func do() {
mgmt, err := client.New(
"{YOUR_DOMAIN}",
option.WithToken(
"<token>",
),
)
if err != nil {
return
}
request := &phone.CreatePhoneTemplateTestNotificationRequestContent{
To: "to",
}
mgmt.Branding.Phone.Templates.Test(
context.TODO(),
"id",
request,
)
}package com.example.usage;
import com.auth0.client.mgmt.ManagementApi;
import com.auth0.client.mgmt.branding.phone.types.CreatePhoneTemplateTestNotificationRequestContent;
public class Example {
public static void main(String[] args) {
ManagementApi client = ManagementApi
.builder()
.domain("{YOUR_DOMAIN}")
.token("<token>")
.build();
client.branding().phone().templates().test(
"id",
CreatePhoneTemplateTestNotificationRequestContent
.builder()
.to("to")
.build()
);
}
}<?php
namespace Example;
use Auth0\SDK\API\Management\Wrapper\ManagementClient;
use Auth0\SDK\API\Management\Wrapper\ManagementClientOptions;
use Auth0\SDK\API\Management\Branding\Phone\Templates\Requests\CreatePhoneTemplateTestNotificationRequestContent;
$client = new ManagementClient(new ManagementClientOptions(
domain: '{YOUR_DOMAIN}',
token: '<token>',
));
$client->branding->phone->templates->test(
'id',
new CreatePhoneTemplateTestNotificationRequestContent([
'to' => 'to',
]),
);from auth0.management import ManagementClient
client = ManagementClient(
domain="{YOUR_DOMAIN}",
token="<token>",
)
client.branding.phone.templates.test(
id="id",
to="to",
)require "auth0"
client = Auth0::Management.new(token: "<token>", base_url: "https://{YOUR_DOMAIN}/api/v2")
client.branding.phone.templates.test(
id: "id",
to: "to"
)import { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
domain: "{YOUR_DOMAIN}",
token: "<token>",
});
await client.branding.phone.templates.test("id", {
to: "to",
});
}
main();import { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
domain: "{YOUR_DOMAIN}",
token: "<token>",
});
await client.branding.phone.templates.test("id", {
to: "to",
});
}
main();curl --request POST \
--url https://{tenantDomain}/api/v2/branding/phone/templates/{id}/try \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"to": "<string>"
}
'{
"message": "<string>"
}Send a test phone notification for the configured template
POST
https://{tenantDomain}/api/v2
/
branding
/
phone
/
templates
/
{id}
/
try
C#
using Auth0.ManagementApi;
using System.Threading.Tasks;
using Auth0.ManagementApi.Branding.Phone;
public partial class Examples
{
public async Task Example() {
var client = new ManagementApiClient(
token: "<token>",
clientOptions: new ClientOptions { BaseUrl = "https://{YOUR_DOMAIN}/api/v2" }
);
await client.Branding.Phone.Templates.TestAsync(
id: "id",
request: new CreatePhoneTemplateTestNotificationRequestContent {
To = "to"
}
);
}
}package example
import (
context "context"
phone "github.com/auth0/go-auth0/v2/management/branding/phone"
client "github.com/auth0/go-auth0/v2/management/client"
option "github.com/auth0/go-auth0/v2/management/option"
)
func do() {
mgmt, err := client.New(
"{YOUR_DOMAIN}",
option.WithToken(
"<token>",
),
)
if err != nil {
return
}
request := &phone.CreatePhoneTemplateTestNotificationRequestContent{
To: "to",
}
mgmt.Branding.Phone.Templates.Test(
context.TODO(),
"id",
request,
)
}package com.example.usage;
import com.auth0.client.mgmt.ManagementApi;
import com.auth0.client.mgmt.branding.phone.types.CreatePhoneTemplateTestNotificationRequestContent;
public class Example {
public static void main(String[] args) {
ManagementApi client = ManagementApi
.builder()
.domain("{YOUR_DOMAIN}")
.token("<token>")
.build();
client.branding().phone().templates().test(
"id",
CreatePhoneTemplateTestNotificationRequestContent
.builder()
.to("to")
.build()
);
}
}<?php
namespace Example;
use Auth0\SDK\API\Management\Wrapper\ManagementClient;
use Auth0\SDK\API\Management\Wrapper\ManagementClientOptions;
use Auth0\SDK\API\Management\Branding\Phone\Templates\Requests\CreatePhoneTemplateTestNotificationRequestContent;
$client = new ManagementClient(new ManagementClientOptions(
domain: '{YOUR_DOMAIN}',
token: '<token>',
));
$client->branding->phone->templates->test(
'id',
new CreatePhoneTemplateTestNotificationRequestContent([
'to' => 'to',
]),
);from auth0.management import ManagementClient
client = ManagementClient(
domain="{YOUR_DOMAIN}",
token="<token>",
)
client.branding.phone.templates.test(
id="id",
to="to",
)require "auth0"
client = Auth0::Management.new(token: "<token>", base_url: "https://{YOUR_DOMAIN}/api/v2")
client.branding.phone.templates.test(
id: "id",
to: "to"
)import { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
domain: "{YOUR_DOMAIN}",
token: "<token>",
});
await client.branding.phone.templates.test("id", {
to: "to",
});
}
main();import { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
domain: "{YOUR_DOMAIN}",
token: "<token>",
});
await client.branding.phone.templates.test("id", {
to: "to",
});
}
main();curl --request POST \
--url https://{tenantDomain}/api/v2/branding/phone/templates/{id}/try \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"to": "<string>"
}
'{
"message": "<string>"
}Authorizations
bearerAuthoAuth2ClientCredentials
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
Custom domain to be used for this request
Required string length:
3 - 255Path Parameters
Required string length:
1 - 255Body
application/jsonapplication/x-www-form-urlencoded
Response
The phone testing notification for the template was sent
Resets a phone notification template values
Previous
Get template for New Universal Login Experience
Next
⌘I