Passer au contenu principal
PUT
/
guardian
/
factors
/
phone
/
providers
/
twilio
TypeScript
import { ManagementClient } from "auth0";

async function main() {
    const client = new ManagementClient({
        token: "<token>",
    });
    await client.guardian.factors.phone.setTwilioProvider({});
}
main();
{
  "from": "+1223323",
  "messaging_service_sid": "5dEkAiHLPCuQ1uJj4qNXcAnERFAL6cpq",
  "auth_token": "zw5Ku6z2sxhd0ZVXto5SDHX6KPDByJPU",
  "sid": "wywA2BH4VqTpfywiDuyDAYZL3xQjoO40"
}

Autorisations

Authorization
string
header
requis

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

Corps

from
string | null
défaut:+1223323

From number

Maximum string length: 64
messaging_service_sid
string | null
défaut:5dEkAiHLPCuQ1uJj4qNXcAnERFAL6cpq

Copilot SID

Required string length: 1 - 1000
auth_token
string | null
défaut:zw5Ku6z2sxhd0ZVXto5SDHX6KPDByJPU

Twilio Authentication token

Required string length: 1 - 1000
sid
string | null
défaut:wywA2BH4VqTpfywiDuyDAYZL3xQjoO40

Twilio SID

Required string length: 1 - 1000

Réponse

Twilio Phone configuration successfully updated.

from
string | null
défaut:+1223323

From number

Maximum string length: 64
messaging_service_sid
string | null
défaut:5dEkAiHLPCuQ1uJj4qNXcAnERFAL6cpq

Copilot SID

Required string length: 1 - 1000
auth_token
string | null
défaut:zw5Ku6z2sxhd0ZVXto5SDHX6KPDByJPU

Twilio Authentication token

Required string length: 1 - 1000
sid
string | null
défaut:wywA2BH4VqTpfywiDuyDAYZL3xQjoO40

Twilio SID

Required string length: 1 - 1000