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

# List Bot Chats

> List the chats the caller belongs to, newest first, up to 200. Archived chats are left out.



## OpenAPI

````yaml https://api.krea.ai/openapi.json get /bots/chats
openapi: 3.1.0
info:
  title: Krea API
  version: v1
servers:
  - url: https://api.krea.ai
    description: Krea API
security:
  - bearerAuth: []
tags:
  - name: General
    description: Core API operations including job management and billing information
  - name: Krea
    description: Krea-owned generation models including Krea 2
  - name: Assets
    description: >-
      Asset management endpoints for uploading and managing images, videos,
      audio files, and 3D models
  - name: Styles
    description: Style (LoRA) generation and management endpoints
  - name: Node Apps
    description: Executing custom node apps built in our nodes tool
  - name: Image
    description: Image generation endpoints
  - name: Image Enhance
    description: Image enhance endpoints
  - name: Video
    description: Video generation endpoints
  - name: Video Enhance
    description: Video enhance and upscale endpoints
  - name: 3D
    description: 3D model generation endpoints
  - name: Audio
    description: Speech and audio generation endpoints
  - name: Usage
    description: Workspace usage reporting
  - name: Agent
    description: Krea Agent sessions
  - name: Bots
    description: 'Krea Bots: chats with the bots in a workspace'
  - name: Utilities
    description: Miscellaneous utility endpoints
paths:
  /bots/chats:
    get:
      tags:
        - Bots
      summary: List Bot Chats
      description: >-
        List the chats the caller belongs to, newest first, up to 200. Archived
        chats are left out.
      responses:
        '200':
          description: The chats.
          content:
            application/json:
              schema:
                type: object
                properties:
                  chats:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                        kind:
                          type: string
                          enum:
                            - dm
                            - group
                        title:
                          type: string
                        lead_bot_id:
                          type:
                            - string
                            - 'null'
                        bots:
                          type: array
                          items:
                            type: object
                            properties:
                              id:
                                type: string
                              name:
                                type: string
                            required:
                              - id
                              - name
                            additionalProperties: false
                        people:
                          type: array
                          items:
                            type: object
                            properties:
                              id:
                                type: string
                              name:
                                type: string
                            required:
                              - id
                              - name
                            additionalProperties: false
                        last_message:
                          anyOf:
                            - type: object
                              properties:
                                id:
                                  type: integer
                                  minimum: -9007199254740991
                                  maximum: 9007199254740991
                                text:
                                  type: string
                                author:
                                  type: object
                                  properties:
                                    kind:
                                      type: string
                                      enum:
                                        - person
                                        - bot
                                        - system
                                    id:
                                      type: string
                                  required:
                                    - kind
                                  additionalProperties: false
                                created_at:
                                  type: string
                              required:
                                - id
                                - text
                                - author
                                - created_at
                              additionalProperties: false
                            - type: 'null'
                        working_bot_ids:
                          type: array
                          items:
                            type: string
                        unread:
                          type: integer
                          minimum: -9007199254740991
                          maximum: 9007199254740991
                        url:
                          type: string
                      required:
                        - id
                        - kind
                        - title
                        - lead_bot_id
                        - bots
                        - people
                        - last_message
                        - working_bot_ids
                        - unread
                        - url
                      additionalProperties: false
                required:
                  - chats
                additionalProperties: false
        '400':
          description: Invalid JSON body, or a request the chat refuses.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
                  required_plan:
                    type: string
                required:
                  - error
                additionalProperties: false
        '401':
          description: Authentication required.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
                  required_plan:
                    type: string
                required:
                  - error
                additionalProperties: false
        '403':
          description: >-
            Bots is not included in the workspace plan, not open to this
            account, or the caller may not make this change to the chat.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
                  required_plan:
                    type: string
                required:
                  - error
                additionalProperties: false
        '404':
          description: Bot, chat, question or attachment not found or not accessible.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
                  required_plan:
                    type: string
                required:
                  - error
                additionalProperties: false
        '409':
          description: The chat changed under the request.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
                  required_plan:
                    type: string
                required:
                  - error
                additionalProperties: false
        '422':
          description: Invalid input.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
                  required_plan:
                    type: string
                required:
                  - error
                additionalProperties: false
        '429':
          description: Too many requests.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
                  required_plan:
                    type: string
                required:
                  - error
                additionalProperties: false
components:
  securitySchemes:
    bearerAuth:
      scheme: bearer
      bearerFormat: Bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.