C#
using Auth0.ManagementApi;
using System.Threading.Tasks;
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.Guardian.Factors.Phone.GetTwilioProviderAsync();
}
}package example
import (
context "context"
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
}
mgmt.Guardian.Factors.Phone.GetTwilioProvider(
context.TODO(),
)
}package com.example.usage;
import com.auth0.client.mgmt.ManagementApi;
public class Example {
public static void main(String[] args) {
ManagementApi client = ManagementApi
.builder()
.domain("{YOUR_DOMAIN}")
.token("<token>")
.build();
client.guardian().factors().phone().getTwilioProvider();
}
}<?php
namespace Example;
use Auth0\SDK\API\Management\Wrapper\ManagementClient;
use Auth0\SDK\API\Management\Wrapper\ManagementClientOptions;
$client = new ManagementClient(new ManagementClientOptions(
domain: '{YOUR_DOMAIN}',
token: '<token>',
));
$client->guardian->factors->phone->getTwilioProvider();from auth0.management import ManagementClient
client = ManagementClient(
domain="{YOUR_DOMAIN}",
token="<token>",
)
client.guardian.factors.phone.get_twilio_provider()require "auth0"
client = Auth0::Management.new(token: "<token>", base_url: "https://{YOUR_DOMAIN}/api/v2")
client.guardian.factors.phone.get_twilio_providerimport { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
domain: "{YOUR_DOMAIN}",
token: "<token>",
});
await client.guardian.factors.phone.getTwilioProvider();
}
main();import { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
domain: "{YOUR_DOMAIN}",
token: "<token>",
});
await client.guardian.factors.phone.getTwilioProvider();
}
main();curl --request GET \
--url https://{tenantDomain}/api/v2/guardian/factors/phone/providers/twilio \
--header 'Authorization: Bearer <token>'{
"from": "+1223323",
"messaging_service_sid": "5dEkAiHLPCuQ1uJj4qNXcAnERFAL6cpq",
"auth_token": "zw5Ku6z2sxhd0ZVXto5SDHX6KPDByJPU",
"sid": "wywA2BH4VqTpfywiDuyDAYZL3xQjoO40"
}Get Twilio configuration
Retrieve configuration details for a Twilio phone provider that has been set up in your tenant. To learn more, review Configure SMS and Voice Notifications for MFA.
GET
https://{tenantDomain}/api/v2
/
guardian
/
factors
/
phone
/
providers
/
twilio
C#
using Auth0.ManagementApi;
using System.Threading.Tasks;
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.Guardian.Factors.Phone.GetTwilioProviderAsync();
}
}package example
import (
context "context"
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
}
mgmt.Guardian.Factors.Phone.GetTwilioProvider(
context.TODO(),
)
}package com.example.usage;
import com.auth0.client.mgmt.ManagementApi;
public class Example {
public static void main(String[] args) {
ManagementApi client = ManagementApi
.builder()
.domain("{YOUR_DOMAIN}")
.token("<token>")
.build();
client.guardian().factors().phone().getTwilioProvider();
}
}<?php
namespace Example;
use Auth0\SDK\API\Management\Wrapper\ManagementClient;
use Auth0\SDK\API\Management\Wrapper\ManagementClientOptions;
$client = new ManagementClient(new ManagementClientOptions(
domain: '{YOUR_DOMAIN}',
token: '<token>',
));
$client->guardian->factors->phone->getTwilioProvider();from auth0.management import ManagementClient
client = ManagementClient(
domain="{YOUR_DOMAIN}",
token="<token>",
)
client.guardian.factors.phone.get_twilio_provider()require "auth0"
client = Auth0::Management.new(token: "<token>", base_url: "https://{YOUR_DOMAIN}/api/v2")
client.guardian.factors.phone.get_twilio_providerimport { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
domain: "{YOUR_DOMAIN}",
token: "<token>",
});
await client.guardian.factors.phone.getTwilioProvider();
}
main();import { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
domain: "{YOUR_DOMAIN}",
token: "<token>",
});
await client.guardian.factors.phone.getTwilioProvider();
}
main();curl --request GET \
--url https://{tenantDomain}/api/v2/guardian/factors/phone/providers/twilio \
--header 'Authorization: Bearer <token>'{
"from": "+1223323",
"messaging_service_sid": "5dEkAiHLPCuQ1uJj4qNXcAnERFAL6cpq",
"auth_token": "zw5Ku6z2sxhd0ZVXto5SDHX6KPDByJPU",
"sid": "wywA2BH4VqTpfywiDuyDAYZL3xQjoO40"
}Authorizations
bearerAuthoAuth2ClientCredentials
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Response
Twilio Phone configuration successfully retrieved.
From number
Maximum string length:
64Copilot SID
Required string length:
1 - 1000Twilio Authentication token
Required string length:
1 - 1000Twilio SID
Required string length:
1 - 1000⌘I