Passer au contenu principal
POST
https://{tenantDomain}/api/v2
/
branding
/
phone
/
providers
/
{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 ManagementClient(
            token: "<token>"
        );

        await client.Branding.Phone.Providers.TestAsync(
            id: "id",
            request: new CreatePhoneProviderSendTestRequestContent {
                To = "to"
            }
        );
    }

}
{
  "code": 123,
  "message": "<string>"
}

Autorisations

Authorization
string
header
requis

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

Paramètres de chemin

id
string
requis
Required string length: 1 - 255

Corps

to
string
requis

The recipient phone number to receive a given notification.

Required string length: 1 - 16
delivery_method
enum<string>

The delivery method for the notification

Options disponibles:
text,
voice
Required string length: 1 - 10

Réponse

Phone notification sent.

code
number

The status code of the operation.

message
string

The description of the operation status.