Skip to main content
PUT
/
guardian
/
factors
/
phone
/
selected-provider
TypeScript
import { ManagementClient } from "auth0";

async function main() {
    const client = new ManagementClient({
        token: "<token>",
    });
    await client.guardian.factors.phone.setProvider({
        provider: "auth0",
    });
}
main();
{
  "provider": "auth0"
}

Authorizations

Authorization
string
header
required

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

Body

provider
enum<string>
required
Available options:
auth0,
twilio,
phone-message-hook

Response

Returns selected Phone provider configuration

provider
enum<string>
Available options:
auth0,
twilio,
phone-message-hook