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

# Get Chat Run Status

> Status of an asynchronous run started via [`POST /api/chat/runs`](/api-reference/chat/runs). Returns a point-in-time snapshot (**is it done?**) — not the generated content.

**Related endpoints**
- [`POST /api/chat/runs`](/api-reference/chat/runs) — starts the run this reports on.
- [`GET /api/chat/{chatId}/stream`](/api-reference/chat/workflow-stream) — read the **content**: poll *this* to know **whether** a run finished; use the stream to **watch the output** as it's produced.
- [`POST /api/chat`](/api-reference/chat/workflow) — the interactive, streaming counterpart to a headless run.



## OpenAPI

````yaml get /api/chat/runs/{runId}
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/runs/{runId}:
    get:
      description: >-
        Status of an asynchronous run started via [`POST
        /api/chat/runs`](/api-reference/chat/runs). Returns a point-in-time
        snapshot (**is it done?**) — not the generated content.


        **Related endpoints**

        - [`POST /api/chat/runs`](/api-reference/chat/runs) — starts the run
        this reports on.

        - [`GET /api/chat/{chatId}/stream`](/api-reference/chat/workflow-stream)
        — read the **content**: poll *this* to know **whether** a run finished;
        use the stream to **watch the output** as it's produced.

        - [`POST /api/chat`](/api-reference/chat/workflow) — the interactive,
        streaming counterpart to a headless run.
      parameters:
        - name: runId
          in: path
          required: true
          description: >-
            The durable workflow run id returned by [POST
            /api/chat/runs](/api-reference/chat/runs).
          schema:
            type: string
          example: wrun_01KVWZNM82NA7XKNEWWHG8VPHJ
      responses:
        '200':
          description: Run status snapshot
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ChatRunStatusResponse'
        '404':
          description: No run found for the given runId
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ChatGenerateErrorResponse'
      security:
        - apiKeyAuth: []
components:
  schemas:
    ChatRunStatusResponse:
      type: object
      required:
        - runId
        - status
      description: Point-in-time status of an asynchronous chat-generation run.
      properties:
        runId:
          type: string
          description: The durable workflow run id.
          example: wrun_01KVWZNM82NA7XKNEWWHG8VPHJ
        status:
          type: string
          enum:
            - queued
            - running
            - completed
            - failed
            - cancelled
          description: >-
            Lifecycle state of the run. Read the produced content via the chat
            (`chatId` from the start response).
    ChatGenerateErrorResponse:
      type: object
      required:
        - status
        - message
      properties:
        status:
          type: string
          enum:
            - error
          description: Status of the request
        message:
          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).

````