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

# Stop Chat

> Stop the response currently being generated for a chat, freeing it to accept a new message. Idempotent — returns `stopped: false` when nothing is in progress. The chat must belong to the authenticated account.



## OpenAPI

````yaml post /api/chat/{chatId}/stop
openapi: 3.1.0
info:
  title: Recoup API - Research
  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://api.recoupable.dev
security: []
paths:
  /api/chat/{chatId}/stop:
    post:
      description: >-
        Stop the response currently being generated for a chat, freeing it to
        accept a new message. Idempotent — returns `stopped: false` when nothing
        is in progress. The chat must belong to the authenticated account.
      parameters:
        - name: chatId
          in: path
          required: true
          description: UUID of the chat to stop.
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Stop request processed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StopChatResponse'
        '400':
          description: chatId is not a valid UUID
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StopChatErrorResponse'
        '403':
          description: The chat belongs to a different account
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StopChatErrorResponse'
        '404':
          description: Chat not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StopChatErrorResponse'
      security:
        - apiKeyAuth: []
components:
  schemas:
    StopChatResponse:
      type: object
      required:
        - success
        - stopped
      properties:
        success:
          type: boolean
          description: Always true when the request was processed.
          example: true
        stopped:
          type: boolean
          description: >-
            True when an in-progress response was cancelled; false when nothing
            was running.
          example: true
    StopChatErrorResponse:
      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
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: Your Recoup API key. [Learn more](/quickstart#api-keys).

````