> ## 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.

# Listar formularios instantáneos

> Los formularios instantáneos de la página vinculada, leídos en vivo desde Meta, cada uno con sus preguntas, sus casillas de consentimiento y su configuración guardada en Pilot Status (`config`, o `null` si nunca se configuró). También devuelve `numberIsOfficial` y, para un número oficial (Meta Cloud API), las plantillas **APPROVED** que el número del vínculo puede enviar automáticamente (`templates`, vacío en un número no oficial).

`consentAvailable: false` significa que no se pudieron leer las casillas del formulario: la lista es desconocida, no vacía. `formsTruncated: true` significa que la página tiene más formularios de los que leyó Pilot Status. Los tokens OAuth/MCP necesitan `integrations:manage` (ADMIN u OWNER del workspace) en todos los verbos, incluidas las lecturas. Alcance: una key limitada a un número, o una credencial de toda la cuenta con `x-whatsapp-number-id`, actúa solo sobre los vínculos de ese número; una credencial de toda la cuenta sin el header ve todo el workspace.



## OpenAPI

````yaml openapi.es.json GET /v1/lead-pages/{pageLinkId}/forms
openapi: 3.1.0
info:
  title: Pilot Status API
  version: 1.0.0
  license:
    name: Pilot Status Terms of Service
    url: https://pilotstatus.com.br/terms
  description: >-
    API REST pública de Pilot Status. Autentícate con el encabezado `x-api-key:
    ps_...` (o `x-api-key-id`). URL base: https://pilotstatus.com.br
servers:
  - url: https://pilotstatus.com.br
security:
  - apiKey: []
  - apiKeyId: []
paths:
  /v1/lead-pages/{pageLinkId}/forms:
    get:
      tags:
        - Ads
      summary: Listar los formularios instantáneos de una página
      description: >-
        Los formularios instantáneos de la página vinculada, leídos en vivo
        desde Meta, cada uno con sus preguntas, sus casillas de consentimiento y
        su configuración guardada en Pilot Status (`config`, o `null` si nunca
        se configuró). También devuelve `numberIsOfficial` y, para un número
        oficial (Meta Cloud API), las plantillas **APPROVED** que el número del
        vínculo puede enviar automáticamente (`templates`, vacío en un número no
        oficial).


        `consentAvailable: false` significa que no se pudieron leer las casillas
        del formulario: la lista es desconocida, no vacía. `formsTruncated:
        true` significa que la página tiene más formularios de los que leyó
        Pilot Status. Los tokens OAuth/MCP necesitan `integrations:manage`
        (ADMIN u OWNER del workspace) en todos los verbos, incluidas las
        lecturas. Alcance: una key limitada a un número, o una credencial de
        toda la cuenta con `x-whatsapp-number-id`, actúa solo sobre los vínculos
        de ese número; una credencial de toda la cuenta sin el header ve todo el
        workspace.
      operationId: get_lead-page-forms
      parameters:
        - name: pageLinkId
          in: path
          required: true
          description: >-
            El id del vínculo (`linked[].pageLinkId` de `GET /v1/lead-pages`),
            no el id de la página de Facebook.
          schema:
            type: string
          example: cmgpl0001ab12cd34ef56
        - name: x-whatsapp-number-id
          in: header
          required: false
          description: >-
            Restringe una credencial de toda la cuenta a un número (su id o el
            id de instancia de `GET /v1/numbers`). Sin él, una credencial de
            toda la cuenta ve todo el workspace; una key limitada a un número
            siempre ve solo su propio número.
          schema:
            type: string
          example: num_01HZX...
      responses:
        '200':
          description: Formularios de la página
          content:
            application/json:
              example:
                forms:
                  - formId: '987654321098765'
                    formName: Orçamento — Outubro
                    status: ACTIVE
                    questions:
                      - key: full_name
                        label: full_name
                        type: FULL_NAME
                        options: []
                      - key: qual_ambiente
                        label: Qual ambiente você quer reformar?
                        type: CUSTOM
                        options:
                          - key: cozinha
                            value: Cozinha
                    consentCheckboxes:
                      - key: whatsapp_optin
                        text: Aceito receber mensagens no WhatsApp
                    consentAvailable: true
                    config:
                      formId: '987654321098765'
                      formName: Orçamento — Outubro
                      consentDisclaimerKey: whatsapp_optin
                      autoSendEnabled: true
                      templateId: null
                      freeText: Olá {{nome}}, recebemos seu pedido de orçamento!
                      variableMap:
                        nome:
                          source: field
                          key: full_name
                      updatedAt: '2026-10-21T09:30:00.000Z'
                formsTruncated: false
                numberIsOfficial: false
                templates: []
        '400':
          description: >-
            `NUMBER_REQUIRED` (un permiso OAuth por número sin
            `x-whatsapp-number-id`) o `NUMBER_NOT_FOUND` (una key limitada a un
            número cuyo número fue eliminado)
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
              example:
                error: >-
                  Provide x-whatsapp-number-id for a per-number connection |
                  Envie o header x-whatsapp-number-id para uma conexão por
                  número
                code: NUMBER_REQUIRED
        '401':
          description: Encabezado `x-api-key` / `x-api-key-id` ausente o inválido
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
              example:
                error: Unauthorized
        '403':
          description: >-
            El número está fuera del alcance de la credencial
            (`NUMBER_NOT_IN_GRANT`), o un token OAuth cuyo rol en el workspace
            no tiene `integrations:manage` (`PERMISSION_DENIED`)
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
              example:
                error: >-
                  This credential is not granted access to that WhatsApp number
                  | Esta credencial não tem acesso a esse número de WhatsApp
                code: NUMBER_NOT_IN_GRANT
        '404':
          description: >-
            Vínculo de página no encontrado: nunca se vinculó, ya se desvinculó
            o es de otro workspace
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
              example:
                error: Page link not found | Vínculo de página não encontrado
                code: NOT_FOUND
        '409':
          description: >-
            Pilot Status ya no tiene acceso a la página
            (`PAGE_MISSING_PERMISSION`, con `missingTasks`)
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
              example:
                error: >-
                  Pilot Status does not have the required permissions on this
                  Page yet. | A Pilot Status ainda não tem as permissões
                  necessárias nesta página.
                code: PAGE_MISSING_PERMISSION
                missingTasks:
                  - PAGE_ACCESS
        '500':
          description: Error interno
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
              example:
                error: Internal server error | Erro interno do servidor
                code: INTERNAL_ERROR
        '502':
          description: No se pudo contactar a Meta. Reintenta.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
              example:
                error: >-
                  Could not reach Meta right now. Try again. | Não foi possível
                  consultar a Meta agora. Tente novamente.
                code: LEADS_LOOKUP_UNAVAILABLE
        '503':
          description: La captura de leads no está configurada en esta instalación
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
              example:
                error: >-
                  Meta lead capture is not configured on this installation. |
                  Captura de leads da Meta não configurada nesta instalação.
                code: LEADS_NOT_CONFIGURED
components:
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: Tu API key ps_
    apiKeyId:
      type: apiKey
      in: header
      name: x-api-key-id
      description: Id de la API key (alternativa a x-api-key)

````

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