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

# Enviar botões

<Badge size="lg" shape="rounded" color="green" stroke color="green">POST</Badge> /message/buttons

<CodeGroup>
  ```javascript Node.js theme={null}
  // Botões rápidos (máx. 5) (Só disponível em planos pagos)
  await zap.sendMessageButtons('my-session-id', {
    to: '5564999999999',
    message: 'Escolha uma opção',
    footer: 'Selecione abaixo',
    buttons: [
      { id: 'op1', text: 'Opção 1' },
      { id: 'op2', text: 'Opção 2' },
    ],
  });
  ```

  ```python python.py theme={null}
  zap.send_message_buttons(
              SESSION_ID,
              PHONE,
              "Escolha uma opcao",
              buttons=[{"id": "op1", "text": "Opcao 1"}, {"id": "op2", "text": "Opcao 2"}],
              footer="Selecione abaixo",
          )
  ```

  ```curl curl theme={null}
  API_URL="http://localhost:8080/v1"
  API_KEY="SUA_API_KEY"
  SESSION_ID="sessao-123"
  PHONE="5599999999999" # DDI + DDD + número ou groupId @g.us

  curl -X POST "$API_URL/message/buttons" \
    -H "Authorization: Bearer $API_KEY" \
    -H "Content-Type: application/json" \
    -d '{
      "sessionId": "'"$SESSION_ID"'",
      "phone": "'"$PHONE"'",
      "message": "Escolha uma opção",
      "footer": "Rodapé opcional",
      "buttons": [
        { "buttonId": "opt1", "buttonText": "Opção 1" },
        { "buttonId": "opt2", "buttonText": "Opção 2" }
      ]
    }'
  ```
</CodeGroup>

* Sempre envie `Authorization: Bearer <API_KEY>`.
* `phone` aceita DDI/DDD/número ou `groupId@g.us`.
