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

# Invite link

> Returns the group's invite link. Send `reset: true` to revoke the previous link and generate a new one.



## OpenAPI

````yaml /en/api-reference/openapi.json post /groups/invite-link
openapi: 3.1.0
info:
  title: Zapfy API
  description: >-
    Multi-tenant WhatsApp API. Send messages and manage webhooks through a
    single surface.
  version: 1.0.0
servers:
  - url: https://api.zapfy.io/v1
security:
  - accountToken: []
paths:
  /groups/invite-link:
    post:
      tags:
        - Groups
      summary: Invite link
      description: >-
        Returns the group's invite link. Send `reset: true` to revoke the
        previous link and generate a new one.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GroupInviteLinkBody'
      responses:
        '200':
          $ref: '#/components/responses/InviteLinkResult'
        '400':
          $ref: '#/components/responses/Error'
        '401':
          $ref: '#/components/responses/Error'
        '403':
          $ref: '#/components/responses/Error'
        '502':
          $ref: '#/components/responses/Error'
      security:
        - instanceToken: []
components:
  schemas:
    GroupInviteLinkBody:
      type: object
      required:
        - id
      properties:
        id:
          $ref: '#/components/schemas/GroupId'
          description: the group id (returned by GET /groups).
        reset:
          type: boolean
          description: Revokes the previous link and generates a new one.
          default: false
    GroupId:
      type: string
      description: the group id (returned by GET /groups).
      example: '120363012345678901'
  responses:
    InviteLinkResult:
      description: Group invite link.
      content:
        application/json:
          schema:
            type: object
            properties:
              data:
                type: object
                properties:
                  inviteLink:
                    type: string
                    example: https://chat.whatsapp.com/ABC123
    Error:
      description: Error.
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: string
                example: Instance not found
  securitySchemes:
    accountToken:
      type: http
      scheme: bearer
      description: Account token (`zpfy_acct_...`) — manages instances and webhooks.
    instanceToken:
      type: http
      scheme: bearer
      description: Instance token (`zpfy_inst_...`) — sends messages.

````