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

# Listar WABAs

> Liste as WABAs disponíveis para o seu token

## Conceituação

Retorna a lista de WABAs (WhatsApp Business Accounts) vinculadas ao seu token. O `businessId` retornado é necessário para todos os demais endpoints de templates.


## OpenAPI

````yaml GET /whatsapp/businesses
openapi: 3.1.0
info:
  title: Hub Message - Templates API
  description: API for managing WhatsApp Business message templates
  version: 1.0.0
servers:
  - url: https://api.hubmessage.io
security:
  - bearerAuth: []
paths:
  /whatsapp/businesses:
    get:
      tags:
        - Templates
      summary: List WABAs
      description: >-
        Returns the list of WABAs (WhatsApp Business Accounts) available for the
        authenticated token.
      operationId: listBusinesses
      responses:
        '200':
          description: List of WABAs
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Business'
              example:
                - businessId: '428083093730937'
                  name: Demo
                  channelsCount: 1
                  connectedCount: 1
                  disconnectedCount: 0
        '401':
          $ref: '#/components/responses/Unauthorized'
components:
  schemas:
    Business:
      type: object
      properties:
        businessId:
          type: string
          description: WABA ID (WhatsApp Business Account)
        name:
          type: string
          description: WABA name
        channelsCount:
          type: integer
          description: Total linked channels
        connectedCount:
          type: integer
          description: Connected channels
        disconnectedCount:
          type: integer
          description: Disconnected channels
    Error:
      type: object
      properties:
        error:
          type: integer
          description: Error code
        message:
          type: string
          description: Error description
  responses:
    Unauthorized:
      description: Invalid or missing token.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: 401
            message: Unauthorized
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Secret Key generated in the Hub Message Security panel

````