> ## Documentation Index
> Fetch the complete documentation index at: https://auth0.generaltranslation.app/llms.txt
> Use this file to discover all available pages before exploring further.

> Learn how to configure your WhatsApp flow actions to send messages.

# WhatsApp

## Configure your Vault connection

To configure a Vault connection for your WhatsApp actions, you will need a **Token**:

<Frame>
  <img src="https://mintcdn.com/generaltranslationinc/6Eil8sR_4nvgRMz0/docs/images/cdy7uua7fh8z/1Qevi3V1UbkUjb6c51x6R4/44590932bdced6e50afa436835c7cb15/whatsapp-vault-connection.png?fit=max&auto=format&n=6Eil8sR_4nvgRMz0&q=85&s=30cf2a9a5346389299082517eaaba830" alt="Dashboard > Actions > Forms > Flows > actions > WhatsApp" data-og-width="1404" width="1404" data-og-height="545" height="545" data-path="docs/images/cdy7uua7fh8z/1Qevi3V1UbkUjb6c51x6R4/44590932bdced6e50afa436835c7cb15/whatsapp-vault-connection.png" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/generaltranslationinc/6Eil8sR_4nvgRMz0/docs/images/cdy7uua7fh8z/1Qevi3V1UbkUjb6c51x6R4/44590932bdced6e50afa436835c7cb15/whatsapp-vault-connection.png?w=280&fit=max&auto=format&n=6Eil8sR_4nvgRMz0&q=85&s=3e4e4c0a263f18a96c887dab07dd8499 280w, https://mintcdn.com/generaltranslationinc/6Eil8sR_4nvgRMz0/docs/images/cdy7uua7fh8z/1Qevi3V1UbkUjb6c51x6R4/44590932bdced6e50afa436835c7cb15/whatsapp-vault-connection.png?w=560&fit=max&auto=format&n=6Eil8sR_4nvgRMz0&q=85&s=edb0e51a811a1b9c297d2d92afea5c86 560w, https://mintcdn.com/generaltranslationinc/6Eil8sR_4nvgRMz0/docs/images/cdy7uua7fh8z/1Qevi3V1UbkUjb6c51x6R4/44590932bdced6e50afa436835c7cb15/whatsapp-vault-connection.png?w=840&fit=max&auto=format&n=6Eil8sR_4nvgRMz0&q=85&s=20fc694db4419b376ae8049295c92b04 840w, https://mintcdn.com/generaltranslationinc/6Eil8sR_4nvgRMz0/docs/images/cdy7uua7fh8z/1Qevi3V1UbkUjb6c51x6R4/44590932bdced6e50afa436835c7cb15/whatsapp-vault-connection.png?w=1100&fit=max&auto=format&n=6Eil8sR_4nvgRMz0&q=85&s=767c25200334c913c3e42ef76231ec01 1100w, https://mintcdn.com/generaltranslationinc/6Eil8sR_4nvgRMz0/docs/images/cdy7uua7fh8z/1Qevi3V1UbkUjb6c51x6R4/44590932bdced6e50afa436835c7cb15/whatsapp-vault-connection.png?w=1650&fit=max&auto=format&n=6Eil8sR_4nvgRMz0&q=85&s=b1364c679308647aff00566f0f620fbe 1650w, https://mintcdn.com/generaltranslationinc/6Eil8sR_4nvgRMz0/docs/images/cdy7uua7fh8z/1Qevi3V1UbkUjb6c51x6R4/44590932bdced6e50afa436835c7cb15/whatsapp-vault-connection.png?w=2500&fit=max&auto=format&n=6Eil8sR_4nvgRMz0&q=85&s=010c5f081e7ed253c91ee1ed68716426 2500w" />
</Frame>

To learn how to generate a token, read [using authorization tokens for WhatsApp](https://developers.facebook.com/blog/post/2022/12/05/auth-tokens/).

## Send message

Sends a message.

<Frame>
  <img src="https://mintcdn.com/generaltranslationinc/3E5d0TEwC25OF1Ek/docs/images/cdy7uua7fh8z/5zZPQw5KKYwBqxbR9jF1wZ/edba085456e3536f5167ff4c21bea77c/whatsapp.png?fit=max&auto=format&n=3E5d0TEwC25OF1Ek&q=85&s=5848cdfee29e8f51ad815dd5fa7c388f" alt="" width="1404" height="1094" data-path="docs/images/cdy7uua7fh8z/5zZPQw5KKYwBqxbR9jF1wZ/edba085456e3536f5167ff4c21bea77c/whatsapp.png" />
</Frame>

### Input settings

<table class="table">
  <thead>
    <tr>
      <th><b>Parameter</b></th>
      <th><b>Description</b></th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>Sender phone ID (required)</td>
      <td>The sender phone ID can be found in the  <a href="https://developers.facebook.com/apps">Facebook Business Manager WhatsAPP settings</a>. Note that it is not a phone number.</td>
    </tr>

    <tr>
      <td>Recipient phone number (required)</td>
      <td>The recipients' phone number in <a href="https://en.wikipedia.org/wiki/E.164">E.164 format</a>.</td>
    </tr>

    <tr>
      <td>
        Message type (required)
      </td>

      <td>
        Select from the dropdown menu the message type. They can be:

        <ul>
          <li>Audio</li>
          <li>Contacts</li>
          <li>Document</li>
          <li>Image</li>
          <li>Interactive</li>
          <li>Location</li>
          <li>Sticker</li>
          <li>Template</li>
          <li>Text</li>
        </ul>
      </td>
    </tr>

    <tr>
      <td>
        Message object (required)
      </td>

      <td>
        The content of the message object will differ based on the selected message type. To learn more, read  <a href="https://developers.facebook.com/docs/whatsapp/cloud-api/reference/messages">Messages</a>.
      </td>
    </tr>
  </tbody>
</table>

### Output object

You can find all expected status codes at [Facebook's documentation](https://developers.facebook.com/docs/whatsapp/cloud-api/support/error-codes).
