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

> ## Agent Instructions
> Integrating Pilot Status end to end? Follow https://docs.pilotstatus.com.br/guides/integrate-with-ai.md (pt-BR: https://docs.pilotstatus.com.br/pt-BR/guides/integrate-with-ai.md). No step requires contacting support: every credential is shown in the dashboard or in an API response, and a lost one is regenerated, not recovered.
> Webhook signing secret: shown ONCE in the Signing secret window right after creating the webhook on /webhooks, and in the `secret` field of the POST /v1/webhooks response (MCP: webhooks_create). Lost it: Edit Webhook → Generate a new secret, POST /v1/webhooks/{id}/rotate-secret, or webhooks_rotate_secret (the old one stops working at once). Verify `x-pilot-status-signature` = hex HMAC-SHA256 of the raw request body keyed with that secret.
> Meta verify token (number connected with the user's own Meta app credentials): Meta Number Created! window after connecting, then the number's card on Numbers (workspace Owner), or webhook.verifyToken in the POST /v1/numbers/meta response. It is not the webhook signing secret.
> REST auth: `x-api-key: ps_...` header, never Authorization: Bearer. MCP: https://mcp.pilotstatus.com.br/mcp (148 tools, OAuth 2.1 or x-api-key); Code Mode: https://mcp.pilotstatus.com.br/code. Destructive MCP tools return a preview and a confirm_token: show the preview and call again only after the user's explicit yes. Over OAuth, revealing or creating ps_ API keys is workspace Owner only.

# Enviar botones

> Envía un mensaje de botones interactivos. El `type` de cada botón es uno de `reply`, `copy`, `url`, `call`, `pix`.



## OpenAPI

````yaml openapi.evolution-v2.es.json POST /message/sendButtons/{instance}
openapi: 3.1.0
info:
  title: Evolution V2 Layer
  version: 1.0.0
  description: >-
    Pilot Status API Layer: Evolution V2. URL base
    `https://pilotstatus.com.br/api/layer/evolution-v2`. Autentícate con el
    encabezado `apikey` (tu clave `ps_` de Pilot Status). Los endpoints de
    instancia/sesión NO están disponibles a través del layer.
servers:
  - url: https://pilotstatus.com.br/api/layer/evolution-v2
security:
  - apiKey: []
tags:
  - name: Call & Business
  - name: Chat
  - name: Group
  - name: Label
  - name: Message
  - name: Profile
  - name: Settings & Proxy
  - name: Storage (S3)
  - name: Template
paths:
  /message/sendButtons/{instance}:
    post:
      tags:
        - Message
      summary: Enviar botones
      description: >-
        Envía un mensaje de botones interactivos. El `type` de cada botón es uno
        de `reply`, `copy`, `url`, `call`, `pix`.
      operationId: post__message_sendButtons_instance
      parameters:
        - name: instance
          in: path
          required: true
          schema:
            type: string
          description: >-
            El nombre de la instancia: el nombre de la instancia anterior que
            migraste en el panel, o el nombre de la instancia de Pilot Status
            (no el nombre visible del número).
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                number:
                  type: string
                  description: Teléfono del destinatario en E.164 sin `+`, o un JID.
                  example: '5511999999999'
                buttons:
                  type: array
                  description: Arreglo de objetos de botón (consulta los campos abajo).
                  items:
                    type: object
                  example:
                    - type: reply
                      displayText: Talk to sales
                      id: sales
                    - type: url
                      displayText: Visit site
                      url: https://pilotstatus.com.br
                    - type: call
                      displayText: Call us
                      phoneNumber: '5511955554444'
                buttons[].type:
                  type: string
                  description: 'Tipo de botón: `reply`, `copy`, `url`, `call` o `pix`.'
                buttons[].displayText:
                  type: string
                  description: Texto que se muestra en el botón.
                buttons[].id:
                  type: string
                  description: ID del botón (para `reply`).
                buttons[].url:
                  type: string
                  description: URL que se abre (para `url`).
                buttons[].phoneNumber:
                  type: string
                  description: Número de teléfono al que llamar (para `call`).
                buttons[].currency:
                  type: string
                  description: Moneda (para `pix`).
                buttons[].name:
                  type: string
                  description: Nombre del comercio/clave (para `pix`).
                buttons[].keyType:
                  type: string
                  description: >-
                    Tipo de clave Pix: `phone`, `email`, `cpf`, `cnpj`,
                    `random`.
                buttons[].key:
                  type: string
                  description: Valor de la clave Pix (para `pix`).
                title:
                  type: string
                  description: Título del mensaje.
                  example: How can we help?
                description:
                  type: string
                  description: Texto del cuerpo del mensaje.
                  example: Choose an option below
                footer:
                  type: string
                  description: Texto del pie.
                  example: Pilot Status
                thumbnailUrl:
                  type: string
                  description: URL de una imagen miniatura.
                delay:
                  type: integer
                  description: Retraso antes del envío, en milisegundos.
                quoted:
                  type: object
                  description: Mensaje a citar/responder (`key`, `message`).
                everyOne:
                  type: boolean
                  description: Mencionar a todos en el grupo.
                mentioned:
                  type: array
                  items:
                    type: string
                  description: Array de strings numéricos a mencionar.
              required:
                - number
                - buttons[].type
      responses:
        '200':
          description: 'Éxito: cuerpo de respuesta nativo del proveedor.'
          content:
            application/json:
              schema:
                type: object
                description: >-
                  Se envió un mensaje de botones interactivos. Devuelve el
                  envelope messageRaw de Baileys persistido, que contiene un
                  interactiveMessage con un nativeFlowMessage de botones.
                properties:
                  key:
                    type: object
                    properties:
                      remoteJid:
                        type: string
                      fromMe:
                        type: boolean
                      id:
                        type: string
                  pushName:
                    type: string
                  status:
                    type: string
                    enum:
                      - ERROR
                      - PENDING
                      - SERVER_ACK
                      - DELIVERY_ACK
                      - READ
                      - PLAYED
                  message:
                    type: object
                    properties:
                      interactiveMessage:
                        type: object
                        properties:
                          body:
                            type: object
                            properties:
                              text:
                                type: string
                          footer:
                            type: object
                            properties:
                              text:
                                type: string
                          nativeFlowMessage:
                            type: object
                            properties:
                              buttons:
                                type: array
                                items:
                                  type: object
                                  properties:
                                    name:
                                      type: string
                                      description: >-
                                        Tipo de botón de native flow, p. ej.
                                        'quick_reply', 'cta_url', 'cta_call',
                                        'cta_copy', 'review_and_pay'.
                                    buttonParamsJson:
                                      type: string
                                      description: >-
                                        Parámetros del botón codificados en
                                        JSON.
                              messageParamsJson:
                                type: string
                  contextInfo:
                    type:
                      - object
                      - 'null'
                  messageType:
                    type: string
                  messageTimestamp:
                    type: integer
                  instanceId:
                    type: string
                  source:
                    type: string
              example:
                key:
                  remoteJid: 5511999999999@s.whatsapp.net
                  fromMe: true
                  id: 3EB0BTN8899AABBCCDDEE
                pushName: Você
                status: PENDING
                message:
                  interactiveMessage:
                    body:
                      text: |
                        *Confirme seu pedido*

                        Pedido #1234 no valor de R$ 49,90
                    footer:
                      text: Pilot Status
                    nativeFlowMessage:
                      buttons:
                        - name: quick_reply
                          buttonParamsJson: '{"display_text":"Confirmar","id":"confirm_1234"}'
                        - name: quick_reply
                          buttonParamsJson: '{"display_text":"Cancelar","id":"cancel_1234"}'
                      messageParamsJson: >-
                        {"from":"api","templateId":"b3f2c1a0-9e8d-4c7b-a6f5-1d2e3f4a5b6c"}
                contextInfo: null
                messageType: interactiveMessage
                messageTimestamp: 1720483860
                instanceId: a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d
                source: web
        default:
          description: Error — provider or layer error.
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: integer
                  error:
                    type: string
                  message:
                    type: string
                  response:
                    type: object
              example:
                status: 400
                error: Bad Request
                message: Invalid payload
components:
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: apikey
      description: >-
        El token de la instancia, enviado en el encabezado `apikey`: el token de
        la instancia Evolution V2 que migraste en el panel (Números → Conectar →
        Migrar), o el token propio de la instancia de Pilot Status; y debe
        pertenecer a la `{instance}` de la ruta. Una clave de API `ps_` de Pilot
        Status NO se acepta (404 `Instance not found`). Este es el único
        encabezado que lee el layer Evolution V2: `Authorization: Bearer` y
        `x-api-key` no se aceptan, y una solicitud sin `apikey` recibe 401.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.