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

# Obtener colecciones

> Obtiene las colecciones del catálogo de un número de WhatsApp Business.



## OpenAPI

````yaml openapi.evolution-v2.es.json POST /business/getCollections/{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:
  /business/getCollections/{instance}:
    post:
      tags:
        - Call & Business
      summary: Obtener colecciones
      description: Obtiene las colecciones del catálogo de un número de WhatsApp Business.
      operationId: post__business_getCollections_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: false
        content:
          application/json:
            schema:
              type: object
              properties:
                number:
                  type: string
                  description: >-
                    Número de empresa cuyas colecciones se obtienen; por
                    defecto, el propio número de la instancia.
                  example: '5511999999999'
                limit:
                  type: number
                  description: Número máximo de colecciones a devolver.
                  example: 20
      responses:
        '200':
          description: 'Éxito: cuerpo de respuesta nativo del proveedor.'
          content:
            application/json:
              schema:
                type: object
                description: >-
                  Colecciones de productos obtenidas de una cuenta de WhatsApp
                  Business.
                properties:
                  wuid:
                    type: string
                    description: JID de WhatsApp resuelto del número de empresa consultado.
                  name:
                    type:
                      - string
                      - 'null'
                    description: >-
                      Nombre visible asociado al número consultado, si está
                      disponible.
                  numberExists:
                    type: boolean
                    description: Si el número consultado existe en WhatsApp.
                  isBusiness:
                    type: boolean
                    description: Si el número es una cuenta de WhatsApp Business.
                  collectionsLength:
                    type: integer
                    description: >-
                      Número de colecciones devueltas en el array de
                      colecciones.
                  collections:
                    type: array
                    description: Lista de colecciones del catálogo.
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          description: Id de la colección.
                        name:
                          type: string
                          description: Nombre de la colección.
                        status:
                          type: string
                          description: Estado de revisión/publicación de la colección.
                        products:
                          type: array
                          description: Productos contenidos en esta colección.
                          items:
                            type: object
                            properties:
                              id:
                                type: string
                                description: Id del producto.
                              name:
                                type: string
                                description: Nombre del producto.
                              description:
                                type: string
                                description: Descripción del producto.
                              price:
                                type: integer
                                description: >-
                                  Precio en la unidad monetaria más pequeña (p.
                                  ej. centavos).
                              currency:
                                type: string
                                description: Código de moneda ISO 4217.
                              retailerId:
                                type: string
                                description: >-
                                  SKU / id de contenido definido por el
                                  comerciante.
                              url:
                                type: string
                                description: URL de destino del producto.
                              isHidden:
                                type: boolean
                                description: Si el producto está oculto en la tienda.
                              availability:
                                type: string
                                description: >-
                                  Disponibilidad de stock, p. ej. 'in stock',
                                  'out of stock'.
                              imageUrls:
                                type: object
                                description: >-
                                  Mapa de clave de tamaño de imagen a URL de
                                  imagen.
                                additionalProperties:
                                  type: string
                              reviewStatus:
                                type: object
                                description: >-
                                  Mapa de dimensión de revisión a estado de
                                  revisión.
                                additionalProperties:
                                  type: string
                required:
                  - wuid
                  - numberExists
                  - isBusiness
                  - collectionsLength
                  - collections
              example:
                wuid: 5511999999999@s.whatsapp.net
                name: Loja Exemplo
                numberExists: true
                isBusiness: true
                collectionsLength: 1
                collections:
                  - id: '434823429384756'
                    name: Lançamentos
                    status: APPROVED
                    products:
                      - id: '6104474702914109'
                        name: Camiseta Pilot Status
                        description: Camiseta 100% algodão, edição limitada.
                        price: 7990
                        currency: BRL
                        retailerId: SKU-TSHIRT-001
                        url: https://loja.exemplo.com.br/camiseta
                        isHidden: false
                        availability: in stock
                        imageUrls:
                          requested_image_size: >-
                            https://mmg.whatsapp.net/v/t45.5328-4/prod1_thumb.jpg
                        reviewStatus:
                          whatsapp: APPROVED
        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.