> ## Documentation Index
> Fetch the complete documentation index at: https://docs-dev-docs-add-auth0-cli-management-api-examples.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Twilio

> Utilisez les actions Twilio pour envoyer des SMS et passer des appels à l’aide de Twilio.

Cette liste d’actions Twilio vous permet d’envoyer des SMS et de passer des appels en utilisant Twilio comme fournisseur.

## Configurer la connexion à votre coffre-fort

Pour configurer une connexion au coffre-fort pour vos actions Twilio, vous aurez besoin d’un **SID de compte** et d’un **jeton d’authentification** :

<Frame>
  <img src="https://mintcdn.com/docs-dev-docs-add-auth0-cli-management-api-examples/8YS2R25LxIyFcDMt/docs/images/fr-ca/cdy7uua7fh8z/7MafHKBR1acJE0iGtab2J4/5f4d85a149b9dbd881b4c4558bb0e7bb/twilio-vault-connection.png?fit=max&auto=format&n=8YS2R25LxIyFcDMt&q=85&s=6ff71b32dcca67f3a6482d8f6c44e91e" alt="Dashboard > Actions > Forms > Flows > actions > Twilio" data-og-width="1404" width="1404" data-og-height="697" height="697" data-path="docs/images/fr-ca/cdy7uua7fh8z/7MafHKBR1acJE0iGtab2J4/5f4d85a149b9dbd881b4c4558bb0e7bb/twilio-vault-connection.png" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/docs-dev-docs-add-auth0-cli-management-api-examples/8YS2R25LxIyFcDMt/docs/images/fr-ca/cdy7uua7fh8z/7MafHKBR1acJE0iGtab2J4/5f4d85a149b9dbd881b4c4558bb0e7bb/twilio-vault-connection.png?w=280&fit=max&auto=format&n=8YS2R25LxIyFcDMt&q=85&s=cc7a94a96647bda5f61274239f49aac0 280w, https://mintcdn.com/docs-dev-docs-add-auth0-cli-management-api-examples/8YS2R25LxIyFcDMt/docs/images/fr-ca/cdy7uua7fh8z/7MafHKBR1acJE0iGtab2J4/5f4d85a149b9dbd881b4c4558bb0e7bb/twilio-vault-connection.png?w=560&fit=max&auto=format&n=8YS2R25LxIyFcDMt&q=85&s=616c13c009108ed0fbf556df3a34ccfc 560w, https://mintcdn.com/docs-dev-docs-add-auth0-cli-management-api-examples/8YS2R25LxIyFcDMt/docs/images/fr-ca/cdy7uua7fh8z/7MafHKBR1acJE0iGtab2J4/5f4d85a149b9dbd881b4c4558bb0e7bb/twilio-vault-connection.png?w=840&fit=max&auto=format&n=8YS2R25LxIyFcDMt&q=85&s=4aa99dbcc78794831be5268fe6fdb71e 840w, https://mintcdn.com/docs-dev-docs-add-auth0-cli-management-api-examples/8YS2R25LxIyFcDMt/docs/images/fr-ca/cdy7uua7fh8z/7MafHKBR1acJE0iGtab2J4/5f4d85a149b9dbd881b4c4558bb0e7bb/twilio-vault-connection.png?w=1100&fit=max&auto=format&n=8YS2R25LxIyFcDMt&q=85&s=423518447bcf980c5dd763eb57e5f36d 1100w, https://mintcdn.com/docs-dev-docs-add-auth0-cli-management-api-examples/8YS2R25LxIyFcDMt/docs/images/fr-ca/cdy7uua7fh8z/7MafHKBR1acJE0iGtab2J4/5f4d85a149b9dbd881b4c4558bb0e7bb/twilio-vault-connection.png?w=1650&fit=max&auto=format&n=8YS2R25LxIyFcDMt&q=85&s=f9b7ef20955499ac4d18090762862431 1650w, https://mintcdn.com/docs-dev-docs-add-auth0-cli-management-api-examples/8YS2R25LxIyFcDMt/docs/images/fr-ca/cdy7uua7fh8z/7MafHKBR1acJE0iGtab2J4/5f4d85a149b9dbd881b4c4558bb0e7bb/twilio-vault-connection.png?w=2500&fit=max&auto=format&n=8YS2R25LxIyFcDMt&q=85&s=8fe8d7eeac41e9263528fe72f14ecd10 2500w" />
</Frame>

Ils peuvent être trouvés sur le [tableau de bord de la console de Twilio](https://console.twilio.com/).

## Envoyer un SMS

Envoie un SMS.

<Frame>
  <img src="https://mintcdn.com/docs-dev-docs-add-auth0-cli-management-api-examples/kxl-mWSKwl8FQgkM/docs/images/fr-ca/cdy7uua7fh8z/4lPqmcYGCJ2oRHM3GSta6w/10b0141d163e4be601c2786895486440/sendsmstwilio.png?fit=max&auto=format&n=kxl-mWSKwl8FQgkM&q=85&s=abe267c886ab8496c37ae96b5f3e6186" alt="" width="1404" height="1061" data-path="docs/images/fr-ca/cdy7uua7fh8z/4lPqmcYGCJ2oRHM3GSta6w/10b0141d163e4be601c2786895486440/sendsmstwilio.png" />
</Frame>

### Paramètres de saisie

| Paramètre             | Description                                                                                                |
| --------------------- | ---------------------------------------------------------------------------------------------------------- |
| De (obligatoire)      | Le nom de l’expéditeur du SMS.                                                                             |
| À (obligatoire)       | Le numéro de téléphone de destination indiqué dans le [format E.164](https://en.wikipedia.org/wiki/E.164). |
| Message (obligatoire) | Le contenu du corps du SMS.                                                                                |

### Paramètres de sortie

Vous trouverez tous les codes d’état attendus dans la [documentation de Twilio](https://www.twilio.com/docs/messaging/api/message-resource#message-status-values).

## Faire un appel

Fait un appel.

<Frame>
  <img src="https://mintcdn.com/docs-dev-docs-add-auth0-cli-management-api-examples/bvPQvbdG-cfE11Vz/docs/images/fr-ca/cdy7uua7fh8z/4JaAbJIVuVUJY40lhQuVUN/1a1bd6143c8033c12e18fa49252bd36b/makecalltwilio.png?fit=max&auto=format&n=bvPQvbdG-cfE11Vz&q=85&s=612d2e655739cd58bfd5856ef7aa777b" alt="" width="1404" height="975" data-path="docs/images/fr-ca/cdy7uua7fh8z/4JaAbJIVuVUJY40lhQuVUN/1a1bd6143c8033c12e18fa49252bd36b/makecalltwilio.png" />
</Frame>

### Paramètres de saisie

| Paramètre                        | Description                                                                                                                                                   |
| -------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| De (obligatoire)                 | Votre numéro de téléphone Twilio. Le code du pays doit être inclus. Exemple : +18005550175, 1 étant le code pour les États-Unis.                              |
| À (obligatoire)                  | Le numéro de téléphone de destination indiqué dans le [format E.164](https://en.wikipedia.org/wiki/E.164).                                                    |
| Charge utile TwiML (obligatoire) | Les instructions TwiML pour votre message vocal.<br />Pour en savoir plus, lisez [la documentation TwiML de Twilio](https://www.twilio.com/docs/voice/twiml). |

### Paramètres de sortie

Vous trouverez tous les codes d’état attendus dans la [documentation de Twilio](https://www.twilio.com/docs/voice/twiml).
