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

# List Sessions

> Returns all WhatsApp Account Link Sessions from the system



## OpenAPI

````yaml api-reference/openapi.json get /api/v1/whatsapp-link-sessions/
openapi: 3.0.3
info:
  title: Wassist API
  version: 1.0.0
  description: API for building WhatsApp AI agents
servers:
  - url: https://backend.wassist.app
    description: Production
  - url: http://localhost:8050
    description: Development
security: []
tags:
  - name: Agents
    description: Create and manage AI agents
  - name: Conversations
    description: Chat conversations and messages
  - name: WhatsApp
    description: WhatsApp Business account management
  - name: Contacts
    description: Contact management
  - name: Integrations
    description: Third-party integrations
paths:
  /api/v1/whatsapp-link-sessions/:
    get:
      tags:
        - api
      description: |-
        ViewSet for managing WhatsApp Link Sessions.
        Endpoints:
        - GET /whatsapp-link-sessions/ - List all link sessions
        - POST /whatsapp-link-sessions/ - Create a new link session
        - GET /whatsapp-link-sessions/{id}/ - Get link session details
        - POST /whatsapp-link-sessions/{id}/expire/ - Expire link session
      operationId: api_v1_whatsapp_link_sessions_list
      responses:
        '200':
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/WhatsAppLinkSession'
          description: ''
      security:
        - ApiKeyAuth: []
components:
  schemas:
    WhatsAppLinkSession:
      type: object
      properties:
        id:
          type: string
          format: uuid
          readOnly: true
        successUrl:
          type: string
          format: uri
        returnUrl:
          type: string
          format: uri
        status:
          allOf:
            - $ref: '#/components/schemas/WhatsAppLinkSessionStatusEnum'
          readOnly: true
        linkUrl:
          type: string
          readOnly: true
      required:
        - id
        - linkUrl
        - returnUrl
        - status
        - successUrl
    WhatsAppLinkSessionStatusEnum:
      enum:
        - PENDING
        - EXPIRED
        - SUCCESS
        - FAILED
      type: string
      description: |-
        * `PENDING` - Pending
        * `EXPIRED` - Expired
        * `SUCCESS` - Success
        * `FAILED` - Failed
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: API key authentication. Pass your API key in the X-API-Key header.

````