> ## Documentation Index
> Fetch the complete documentation index at: https://docs-staging-fix-docs-5525.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# WhatsApp

> Découvrez comment configurer vos actions de flux WhatsApp pour envoyer des messages.

## Configurer la connexion à votre coffre-fort

Pour configurer une connexion au coffre-fort pour vos actions WhatsApp, vous aurez besoin d’un **jeton** :

<Frame>
  <img src="https://mintcdn.com/docs-staging-fix-docs-5525/JNvAFLGL0Y4c3WKA/docs/images/fr-ca/cdy7uua7fh8z/1Qevi3V1UbkUjb6c51x6R4/44590932bdced6e50afa436835c7cb15/whatsapp-vault-connection.png?fit=max&auto=format&n=JNvAFLGL0Y4c3WKA&q=85&s=f378f1a323a29e62efc8d254017c6002" alt="Dashboard > Actions > Forms > Flows > actions > WhatsApp" data-og-width="1404" width="1404" data-og-height="545" height="545" data-path="docs/images/fr-ca/cdy7uua7fh8z/1Qevi3V1UbkUjb6c51x6R4/44590932bdced6e50afa436835c7cb15/whatsapp-vault-connection.png" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/docs-staging-fix-docs-5525/JNvAFLGL0Y4c3WKA/docs/images/fr-ca/cdy7uua7fh8z/1Qevi3V1UbkUjb6c51x6R4/44590932bdced6e50afa436835c7cb15/whatsapp-vault-connection.png?w=280&fit=max&auto=format&n=JNvAFLGL0Y4c3WKA&q=85&s=6eb56eeae9a2a434bc9a2b6ab7a14a58 280w, https://mintcdn.com/docs-staging-fix-docs-5525/JNvAFLGL0Y4c3WKA/docs/images/fr-ca/cdy7uua7fh8z/1Qevi3V1UbkUjb6c51x6R4/44590932bdced6e50afa436835c7cb15/whatsapp-vault-connection.png?w=560&fit=max&auto=format&n=JNvAFLGL0Y4c3WKA&q=85&s=cf3e9d7308aef9480b3d8365e83f9eff 560w, https://mintcdn.com/docs-staging-fix-docs-5525/JNvAFLGL0Y4c3WKA/docs/images/fr-ca/cdy7uua7fh8z/1Qevi3V1UbkUjb6c51x6R4/44590932bdced6e50afa436835c7cb15/whatsapp-vault-connection.png?w=840&fit=max&auto=format&n=JNvAFLGL0Y4c3WKA&q=85&s=22461ef241aa80035785328e9e1864e9 840w, https://mintcdn.com/docs-staging-fix-docs-5525/JNvAFLGL0Y4c3WKA/docs/images/fr-ca/cdy7uua7fh8z/1Qevi3V1UbkUjb6c51x6R4/44590932bdced6e50afa436835c7cb15/whatsapp-vault-connection.png?w=1100&fit=max&auto=format&n=JNvAFLGL0Y4c3WKA&q=85&s=6d28de618b8866aa48b3126a6b39e82c 1100w, https://mintcdn.com/docs-staging-fix-docs-5525/JNvAFLGL0Y4c3WKA/docs/images/fr-ca/cdy7uua7fh8z/1Qevi3V1UbkUjb6c51x6R4/44590932bdced6e50afa436835c7cb15/whatsapp-vault-connection.png?w=1650&fit=max&auto=format&n=JNvAFLGL0Y4c3WKA&q=85&s=9df425362c4e3261a29fcbcc2c2034b4 1650w, https://mintcdn.com/docs-staging-fix-docs-5525/JNvAFLGL0Y4c3WKA/docs/images/fr-ca/cdy7uua7fh8z/1Qevi3V1UbkUjb6c51x6R4/44590932bdced6e50afa436835c7cb15/whatsapp-vault-connection.png?w=2500&fit=max&auto=format&n=JNvAFLGL0Y4c3WKA&q=85&s=3380f551a796b30ad7b402020cf1bffd 2500w" />
</Frame>

Pour savoir comment générer un jeton, lisez l’article [Utilisation de jetons d’autorisation pour WhatsApp](https://developers.facebook.com/blog/post/2022/12/05/auth-tokens/).

## Envoyer un message

Envoie un message.

<Frame>
  <img src="https://mintcdn.com/docs-staging-fix-docs-5525/ZMM3_i1UsDIOj-DJ/docs/images/fr-ca/cdy7uua7fh8z/5zZPQw5KKYwBqxbR9jF1wZ/edba085456e3536f5167ff4c21bea77c/whatsapp.png?fit=max&auto=format&n=ZMM3_i1UsDIOj-DJ&q=85&s=d482bdd41946df682cefe6e93a143f5c" alt="" width="1404" height="1094" data-path="docs/images/fr-ca/cdy7uua7fh8z/5zZPQw5KKYwBqxbR9jF1wZ/edba085456e3536f5167ff4c21bea77c/whatsapp.png" />
</Frame>

### Paramètres de saisie

| Paramètre                                         | Description                                                                                                                                                                                                                                                      |
| ------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| ID du téléphone expéditeur (obligatoire)          | L’ID du téléphone expéditeur se trouve dans les [paramètres WhatsApp du Facebook Business Manager](https://developers.facebook.com/apps). Notez qu’il ne s’agit pas d’un numéro de téléphone.                                                                    |
| Numéro de téléphone du destinataire (obligatoire) | Le numéro de téléphone du destinataire au [format E.164](https://en.wikipedia.org/wiki/E.164).                                                                                                                                                                   |
| Type de message (obligatoire)                     | Sélectionnez le type de message dans le menu déroulant. Voici les différents types : <ul> <li>Audio</li> <li>Contacts</li> <li>Document</li> <li>Image</li> <li>Interactive</li> <li>Localisation</li> <li>Autocollant</li> <li>Modèle</li> <li>Texte</li> </ul> |
| Objet de message (obligatoire)                    | Le contenu de l’objet de message varie selon le type de message sélectionné. Pour en savoir plus, consultez l’article [Messages](https://developers.facebook.com/docs/whatsapp/cloud-api/reference/messages).                                                    |

### Paramètres de sortie

Vous trouverez les codes d’état attendus dans la [documentation de Facebook](https://developers.facebook.com/docs/whatsapp/cloud-api/support/error-codes).
