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

# List communities

> Lists the communities the instance belongs to, each with its `id` and name.



## OpenAPI

````yaml /en/api-reference/openapi.json get /communities
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:
  /communities:
    get:
      tags:
        - Communities
      summary: List communities
      description: >-
        Lists the communities the instance belongs to, each with its `id` and
        name.
      responses:
        '200':
          $ref: '#/components/responses/CommunityList'
        '401':
          $ref: '#/components/responses/Error'
        '403':
          $ref: '#/components/responses/Error'
        '502':
          $ref: '#/components/responses/Error'
      security:
        - instanceToken: []
components:
  responses:
    CommunityList:
      description: Communities the instance belongs to.
      content:
        application/json:
          schema:
            type: object
            properties:
              data:
                type: array
                items:
                  $ref: '#/components/schemas/CommunitySummary'
    Error:
      description: Error.
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: string
                example: Instance not found
  schemas:
    CommunitySummary:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/CommunityId'
          description: Community id.
        name:
          type: string
          description: Community name.
          example: My Community
    CommunityId:
      type: string
      description: >-
        Community id: the `...@g.us` `id` returned when creating the community
        (POST /communities/create). Use exactly as received.
      example: 120363012345678901@g.us
  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.

````