> ## Documentation Index
> Fetch the complete documentation index at: https://myco-29fc6df6-sweetmantech-myc-3925-docs-document-the-apiar.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Chats

> Retrieve chat rooms (conversations) for a specific account. Provide an account_id to scope the results, and optionally filter by an artist_account_id. The endpoint returns metadata about each room, including the topic, associated artist, and last updated timestamp.



## OpenAPI

````yaml GET /api/chats
openapi: 3.1.0
info:
  title: Recoup API
  description: >-
    API documentation for the Recoup platform - an AI agent platform for the
    music industry
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://recoup-api.vercel.app
security:
  - apiKeyAuth: []
paths:
  /api/chats:
    get:
      description: >-
        Retrieve chat rooms (conversations) for a specific account. Provide an
        account_id to scope the results, and optionally filter by an
        artist_account_id. The endpoint returns metadata about each room,
        including the topic, associated artist, and last updated timestamp.
      parameters:
        - name: account_id
          in: query
          description: UUID of the account whose chats to retrieve
          required: true
          schema:
            type: string
            format: uuid
        - name: artist_account_id
          in: query
          description: >-
            Optional. Filter chats to only include those for the specified
            artist.
          required: false
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Chats retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetChatsResponse'
        '400':
          description: Bad request - missing required parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetChatsErrorResponse'
components:
  schemas:
    GetChatsResponse:
      type: object
      required:
        - status
        - chats
      properties:
        status:
          type: string
          enum:
            - success
          description: Status of the request
        chats:
          type: array
          items:
            $ref: '#/components/schemas/ChatRoom'
          description: Array of chat room objects
    GetChatsErrorResponse:
      type: object
      required:
        - status
        - error
      properties:
        status:
          type: string
          enum:
            - error
          description: Status of the request
        error:
          type: string
          description: Error message describing what went wrong
    ChatRoom:
      type: object
      properties:
        id:
          type: string
          format: uuid
          description: UUID of the chat room
        account_id:
          type: string
          format: uuid
          nullable: true
          description: UUID of the associated account (can be null if not set)
        topic:
          type: string
          nullable: true
          description: Optional topic or description of the room (null if not provided)
        updated_at:
          type: string
          format: date-time
          description: ISO timestamp of the last update to the room
        artist_id:
          type: string
          format: uuid
          nullable: true
          description: UUID of the associated artist account (null when not applicable)
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: Your Recoup API key. [Learn more](/quickstart#api-keys).

````