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

# Crear grupo

> Crea un nuevo grupo de WhatsApp con un asunto y una lista inicial de participantes.



## OpenAPI

````yaml openapi.evolution-v2.es.json POST /group/create/{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:
  /group/create/{instance}:
    post:
      tags:
        - Group
      summary: Crear grupo
      description: >-
        Crea un nuevo grupo de WhatsApp con un asunto y una lista inicial de
        participantes.
      operationId: post__group_create_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:
                subject:
                  type: string
                  description: Nombre/asunto del grupo.
                  example: Equipe de Vendas
                participants:
                  type: array
                  items:
                    type: string
                  description: Números de teléfono (solo dígitos) a agregar como miembros.
                  example:
                    - '5511999999999'
                    - '5511888888888'
                description:
                  type: string
                  description: Descripción del grupo.
                  example: Grupo interno da equipe
                profilePicture:
                  type: string
                  description: URL de la foto de perfil del grupo.
                  example: https://example.com/group.png
                promoteParticipants:
                  type: boolean
                  description: Promover a admins a los participantes agregados.
                  example: false
              required:
                - subject
                - participants
      responses:
        '200':
          description: 'Éxito: cuerpo de respuesta nativo del proveedor.'
          content:
            application/json:
              schema:
                type: object
                description: >-
                  Metadatos crudos de Baileys del grupo recién creado (devueltos
                  por client.groupMetadata).
                properties:
                  id:
                    type: string
                    description: JID del grupo.
                  subject:
                    type: string
                    description: Nombre/asunto del grupo.
                  subjectOwner:
                    type: string
                    description: JID del participante que definió el asunto por última vez.
                  subjectTime:
                    type: integer
                    description: >-
                      Timestamp Unix (segundos) en que se definió el asunto por
                      última vez.
                  size:
                    type: integer
                    description: Número de participantes.
                  creation:
                    type: integer
                    description: Timestamp Unix (segundos) de creación del grupo.
                  owner:
                    type: string
                    description: JID del propietario/creador del grupo.
                  desc:
                    type: string
                    description: Texto de descripción del grupo.
                  descId:
                    type: string
                    description: Identificador de la descripción actual.
                  restrict:
                    type: boolean
                    description: >-
                      Si es true, solo los admins pueden editar la información
                      del grupo.
                  announce:
                    type: boolean
                    description: >-
                      Si es true, solo los admins pueden enviar mensajes (grupo
                      de anuncios).
                  isCommunity:
                    type: boolean
                    description: Si este grupo es la comunidad principal.
                  isCommunityAnnounce:
                    type: boolean
                    description: Si este es un grupo de anuncios de comunidad.
                  joinApprovalMode:
                    type: boolean
                    description: >-
                      Si los nuevos miembros requieren aprobación de un admin
                      para unirse.
                  memberAddMode:
                    type: boolean
                    description: >-
                      Si los miembros que no son admin pueden agregar
                      participantes.
                  ephemeralDuration:
                    type: integer
                    description: >-
                      Temporizador de mensajes temporales en segundos (0 cuando
                      está desactivado).
                  linkedParent:
                    type: string
                    description: JID de la comunidad principal vinculada, cuando aplica.
                  participants:
                    type: array
                    description: Participantes del grupo.
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          description: JID del participante.
                        admin:
                          type:
                            - string
                            - 'null'
                          enum:
                            - superadmin
                            - admin
                            - null
                          description: >-
                            Rol de admin: 'superadmin', 'admin', o null para un
                            miembro normal.
              example:
                id: 120363021234567890@g.us
                subject: Equipe Pilot Status
                subjectOwner: 5511999999999@s.whatsapp.net
                subjectTime: 1720545600
                size: 3
                creation: 1720545600
                owner: 5511999999999@s.whatsapp.net
                desc: Grupo oficial da equipe.
                descId: BAE5A1B2C3D4E5F6
                restrict: false
                announce: false
                isCommunity: false
                isCommunityAnnounce: false
                joinApprovalMode: false
                memberAddMode: false
                ephemeralDuration: 0
                participants:
                  - id: 5511999999999@s.whatsapp.net
                    admin: superadmin
                  - id: 5511988888888@s.whatsapp.net
                    admin: null
                  - id: 5511977777777@s.whatsapp.net
                    admin: null
        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.