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

# WhatsApp

## Configure your Vault connection

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

<Frame>![Dashboard > Actions > Forms > Flows > actions > WhatsApp](https://images.ctfassets.net/cdy7uua7fh8z/1Qevi3V1UbkUjb6c51x6R4/44590932bdced6e50afa436835c7cb15/whatsapp-vault-connection.png)</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>![](https://images.ctfassets.net/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 settings

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