> ## Documentation Index
> Fetch the complete documentation index at: https://dify-6c0370d8-fix-template-upload-size-guidance.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# List Conversations

> **Available for**: Chatflow, Agent, Chatbot, Legacy Agent apps.

Lists an end user's conversations, most recently active first.



## OpenAPI

````yaml /en/api-reference/openapi_service.json get /conversations
openapi: 3.0.1
info:
  description: >-
    REST API for Dify applications and knowledge bases. Application endpoints
    authenticate with an app API key; knowledge endpoints authenticate with a
    dataset API key.
  title: Dify Service API
  version: 1.0.0
servers:
  - description: >-
      Base URL of the Dify Service API. For self-hosted deployments, replace it
      with your own API base URL.
    url: https://{api_base_url}
    variables:
      api_base_url:
        default: api.dify.ai/v1
        description: Host and path of the API base URL, without the `https://` prefix.
security:
  - ApiKeyAuth: []
tags:
  - description: Operations related to chat messages and interactions.
    name: Chat Messages
  - description: File upload and preview operations.
    name: Files
  - description: Operations related to end user information.
    name: End Users
  - description: User feedback operations.
    name: Feedback
  - description: Operations related to managing conversations.
    name: Conversations
  - description: Text-to-Speech and Speech-to-Text operations.
    name: Audio
  - description: Operations to retrieve application settings and information.
    name: Applications
  - description: Operations related to managing annotations for direct replies.
    name: Annotations
  - description: Endpoints for resuming paused workflows that require human input.
    name: Human Input
  - description: Operations for executing and managing workflows.
    name: Workflow Runs
  - description: Operations related to text generation and completion.
    name: Completion Messages
  - description: >-
      Operations for managing knowledge bases, including creation,
      configuration, and retrieval.
    name: Knowledge Bases
  - description: >-
      Operations for creating, updating, and managing documents within a
      knowledge base.
    name: Documents
  - description: Operations for managing document chunks and child chunks.
    name: Chunks
  - description: >-
      Operations for managing knowledge base metadata fields and document
      metadata values.
    name: Metadata
  - description: Operations for managing knowledge base tags and tag bindings.
    name: Tags
  - description: Operations for retrieving available models.
    name: Models
  - description: >-
      Operations for managing and running knowledge pipelines, including
      datasource plugins and pipeline execution.
    name: Knowledge Pipeline
paths:
  /conversations:
    get:
      tags:
        - Conversations
      summary: List Conversations
      description: |-
        **Available for**: Chatflow, Agent, Chatbot, Legacy Agent apps.

        Lists an end user's conversations, most recently active first.
      operationId: getConversationsList
      parameters:
        - description: >-
            End-user identifier, defined by your app and unique within it. See
            [End User Identity](/en/api-reference/guides/end-user-identity).
          in: query
          name: user
          required: false
          schema:
            type: string
        - description: >-
            Pagination cursor: the `id` of the last conversation on the current
            page. Omit to fetch the first page.
          in: query
          name: last_id
          required: false
          schema:
            type: string
        - description: Number of records to return.
          in: query
          name: limit
          required: false
          schema:
            default: 20
            maximum: 100
            minimum: 1
            type: integer
        - description: Field to sort by. Prefix with `-` for descending order.
          in: query
          name: sort_by
          required: false
          schema:
            default: '-updated_at'
            enum:
              - created_at
              - '-created_at'
              - updated_at
              - '-updated_at'
            type: string
      responses:
        '200':
          content:
            application/json:
              examples:
                conversationsList:
                  summary: Response Example
                  value:
                    data:
                      - created_at: 1705407629
                        id: 45701982-8118-4bc5-8e9b-64562b4555f2
                        inputs:
                          city: San Francisco
                        introduction: Welcome! How can I help you today?
                        name: iPhone Specs Chat
                        status: normal
                        updated_at: 1705411229
                    has_more: false
                    limit: 20
              schema:
                $ref: '#/components/schemas/ConversationsListResponse'
          description: Successfully retrieved conversations list.
        '400':
          content:
            application/json:
              examples:
                not_chat_app:
                  summary: not_chat_app
                  value:
                    code: not_chat_app
                    message: Please check if your app mode matches the right API route.
                    status: 400
          description: '`not_chat_app` : App mode does not match the API route.'
        '404':
          content:
            application/json:
              examples:
                last_conversation_not_exists:
                  summary: not_found
                  value:
                    code: not_found
                    message: Last Conversation Not Exists.
                    status: 404
          description: '`not_found` : Last conversation does not exist (invalid `last_id`).'
components:
  schemas:
    ConversationsListResponse:
      properties:
        data:
          description: List of conversations.
          items:
            $ref: '#/components/schemas/ConversationListItem'
          type: array
        has_more:
          description: Whether there are more conversations.
          type: boolean
        limit:
          description: Number of items per page.
          type: integer
      type: object
    ConversationListItem:
      properties:
        created_at:
          description: Creation timestamp.
          format: int64
          type: integer
        id:
          description: Conversation ID.
          format: uuid
          type: string
        inputs:
          additionalProperties: true
          description: Input variables for the conversation.
          type: object
        introduction:
          description: Conversation introduction.
          type: string
        name:
          description: Conversation name.
          type: string
        status:
          description: Conversation status. `normal` for active conversations.
          type: string
        updated_at:
          description: Last update timestamp.
          format: int64
          type: integer
      type: object
  securitySchemes:
    ApiKeyAuth:
      bearerFormat: API_KEY
      description: >-
        Every request authenticates with an API key: `Authorization: Bearer
        {API_KEY}`. App endpoints take an app API key; knowledge endpoints take
        a knowledge base API key ([Get
        Started](/en/api-reference/guides/get-started)).


        Keep keys server-side; never embed them in client code. Requests with a
        missing or invalid key fail with HTTP `401` (`unauthorized`).
      scheme: bearer
      type: http

````