> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vectalk.com.br/llms.txt
> Use this file to discover all available pages before exploring further.

# Lista Interativa

> Envie um menu com seções e opções selecionáveis

<ParamField body="messaging_product" type="string" required default="whatsapp" />

<ParamField body="to" type="string" required placeholder="5511999999999" />

<ParamField body="recipient_type" type="string" default="individual" />

<ParamField body="type" type="string" required default="interactive" />

<ParamField body="context" type="object">
  Para responder uma mensagem. Inclua `message_id` da mensagem original.
</ParamField>

<ParamField body="interactive" type="object" required>
  <Expandable title="campos" defaultOpen>
    <ParamField body="interactive.type" type="string" required default="list" />

    <ParamField body="interactive.body" type="object" required>
      <Expandable title="campos" defaultOpen>
        <ParamField body="interactive.body.text" type="string" required placeholder="Selecione um produto:" />
      </Expandable>
    </ParamField>

    <ParamField body="interactive.footer" type="object">
      <Expandable title="campos">
        <ParamField body="interactive.footer.text" type="string" placeholder="Estoque disponível" />
      </Expandable>
    </ParamField>

    <ParamField body="interactive.action" type="object" required>
      <Expandable title="campos" defaultOpen>
        <ParamField body="interactive.action.button" type="string" required placeholder="Ver opções">
          Texto do botão que abre a lista (máx. 20 caracteres).
        </ParamField>

        <ParamField body="interactive.action.sections" type="array" required>
          Array de seções. Cada seção tem `title` e `rows` (array de `{ id, title, description }`).
        </ParamField>
      </Expandable>
    </ParamField>
  </Expandable>
</ParamField>

<RequestExample>
  ```bash cURL theme={null}
  curl --request POST \
    --url https://apis.vectalk.com.br/api/messages \
    --header 'Authorization: Bearer <token>' \
    --header 'Content-Type: application/json' \
    --data '{
      "messaging_product": "whatsapp",
      "to": "5511999999999",
      "type": "interactive",
      "interactive": {
        "type": "list",
        "body": { "text": "Selecione um produto:" },
        "footer": { "text": "Estoque disponível" },
        "action": {
          "button": "Ver produtos",
          "sections": [
            {
              "title": "Eletrônicos",
              "rows": [
                { "id": "prod_001", "title": "Smartphone X", "description": "R$ 1.999,00" },
                { "id": "prod_002", "title": "Fone Bluetooth", "description": "R$ 299,00" }
              ]
            }
          ]
        }
      }
    }'
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "messaging_product": "whatsapp",
    "contacts": [{ "input": "5511999999999", "wa_id": "5511999999999" }],
    "messages": [{ "id": "wamid.HBgLNTUxMTk5OTk5OTk5..." }]
  }
  ```
</ResponseExample>
