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

> Returns all conversations from the system



## OpenAPI

````yaml api-reference/openapi.json get /api/v1/conversations/
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/conversations/:
    get:
      tags:
        - api
      description: >-
        ViewSet for managing conversations (bot sessions).


        Endpoints:

        - GET /conversations/ - List conversations with filters (paginated)

        - POST /conversations/ - Create a new conversation

        - GET /conversations/{id}/ - Get conversation details

        - GET /conversations/{id}/messages/ - Get messages

        - POST /conversations/{id}/messages/ - Send a message (text or template)

        - POST /conversations/{id}/prompt/ - Prompt agent with custom
        instruction

        - POST /conversations/{id}/takeover/ - Enable human takeover mode

        - POST /conversations/{id}/handback/ - Return conversation to agent
      operationId: api_v1_conversations_list
      parameters:
        - in: query
          name: agent
          schema:
            type: string
            format: uuid
        - in: query
          name: contact
          schema:
            type: string
            minLength: 1
        - in: query
          name: hasUnread
          schema:
            type: boolean
        - in: query
          name: lastMessageAfter
          schema:
            type: string
            format: date-time
        - in: query
          name: lastMessageBefore
          schema:
            type: string
            format: date-time
        - in: query
          name: limit
          schema:
            type: integer
          description: Pagination limit (default 20, max 100)
        - in: query
          name: offset
          schema:
            type: integer
          description: Pagination offset (default 0)
        - in: query
          name: status
          schema:
            enum:
              - active
              - closed
            type: string
            minLength: 1
          description: |-
            * `active` - active
            * `closed` - closed
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedConversationList'
          description: ''
      security:
        - ApiKeyAuth: []
components:
  schemas:
    PaginatedConversationList:
      type: object
      required:
        - count
        - results
      properties:
        count:
          type: integer
          example: 123
        next:
          type: string
          nullable: true
          format: uri
          example: http://api.example.org/accounts/?offset=400&limit=100
        previous:
          type: string
          nullable: true
          format: uri
          example: http://api.example.org/accounts/?offset=200&limit=100
        results:
          type: array
          items:
            $ref: '#/components/schemas/Conversation'
    Conversation:
      type: object
      properties:
        id:
          type: string
          format: uuid
          readOnly: true
        contact:
          $ref: '#/components/schemas/ConversationContact'
        activeAgent:
          type: string
          readOnly: true
        chatWindowRemainingTime:
          type: string
          readOnly: true
        lastMessage:
          type: string
          readOnly: true
        isHumanTakeover:
          type: string
          readOnly: true
        active:
          type: string
          readOnly: true
      required:
        - active
        - activeAgent
        - chatWindowRemainingTime
        - contact
        - id
        - isHumanTakeover
        - lastMessage
    ConversationContact:
      type: object
      properties:
        phoneNumber:
          type: string
        name:
          type: string
          nullable: true
      required:
        - name
        - phoneNumber
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: API key authentication. Pass your API key in the X-API-Key header.

````