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

# Leave Group

> Leave a WhatsApp group.



## OpenAPI

````yaml /api-reference/openapi.json post /api/v1/groups/{group_jid}/leave
openapi: 3.1.0
info:
  title: wazzapi Public API
  description: >-
    Public API surface for external API-key clients. Only stable /api/v1
    endpoints are included.


    ## Webhook deliveries

    This reference also includes the webhook requests Wazzapi sends to your
    endpoint for incoming messages, message status updates, and device status
    changes. See the `Incoming webhooks` section in the sidebar for headers,
    payload fields, and concrete examples.
  version: 1.0.0
servers: []
security: []
tags:
  - name: Incoming webhooks
    description: >-
      POST deliveries that Wazzapi sends to your webhook endpoint after you
      subscribe to supported events. Verify the signature against the raw body
      and return a 2xx response quickly.
paths:
  /api/v1/groups/{group_jid}/leave:
    post:
      tags:
        - groups
      summary: Leave Group
      description: Leave a WhatsApp group.
      operationId: leave_group_api_v1_groups__group_jid__leave_post
      parameters:
        - name: group_jid
          in: path
          required: true
          schema:
            type: string
            title: Group Jid
        - name: session_name
          in: query
          required: true
          schema:
            type: string
            description: WhatsApp session name
            title: Session Name
          description: WhatsApp session name
        - name: Authorization
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GroupOperationResponseModel'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    GroupOperationResponseModel:
      properties:
        success:
          type: boolean
          title: Success
        details:
          type: string
          title: Details
      type: object
      required:
        - success
        - details
      title: GroupOperationResponseModel
      description: Generic response for group operations.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````