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

# Get execution status by thread ID

> Check whether a run is still in progress, completed, or failed. Use the thread ID returned when you started the execution to poll for status.



## OpenAPI

````yaml /api-reference/openapi.json get /api/v1/workflow/manager/executions/thread/{threadId}/status
openapi: 3.0.0
info:
  title: Flowra API (API Key Endpoints)
  description: >-
    **Flowra** is an AI-powered platform for building agents, workflows, and
    integrations.


    ### Capabilities

    - **Tools & Toolkits** – Define and group tools for agents and workflows.

    - **Workflows** – Orchestrate steps and automate processes.

    - **Triggers** – Schedule or event-based execution.

    - **Auth & Connections** – OAuth, API keys, and connected accounts.

    - **MCP** – Model Context Protocol server integration.

    - **Knowledge / RAG** – Add files and URLs for retrieval-augmented
    generation.


    ### Authentication

    Use the **x-api-key** header with a project API key to access endpoints that
    support API Key auth. Create and manage API keys in the dashboard under your
    project settings.


    Only endpoints that support API Key authentication via the @ApiKeyEnabled()
    decorator.


    Send x-api-key (required). On multi-tenant endpoints, optionally send
    x-username to act as an external user.
  version: '1.0'
  contact:
    name: Flowra
    url: https://flowra.dev
servers:
  - url: https://flowra.dev
    description: Flowra API
security: []
tags:
  - name: Users
    description: User profile
  - name: External Users
    description: End-user identities inside a project (x-username)
  - name: Auth Configs
    description: OAuth and API key configs for toolkits
  - name: Connected Accounts
    description: OAuth connected accounts and link creation
  - name: Toolkits
    description: List and search toolkits
  - name: Tools
    description: List, execute, and manage tools
  - name: Skills
    description: Browse, create, import, and install skills
  - name: Workflow & Agent
    description: Create, run, and inspect workflows and agents
  - name: Triggers
    description: Schedule and event-based trigger instances
  - name: Chat
    description: Threads and streaming agent runs
  - name: File
    description: Upload, list, and download files
  - name: Knowledge
    description: RAG knowledge collections
  - name: Table
    description: Collections and documents
  - name: Sandbox
    description: Ephemeral and durable code sandboxes
  - name: Browser
    description: Live browser sessions and view
  - name: LLM
    description: List AI models and generate completions
  - name: MCP
    description: MCP server management
  - name: usage
    description: Credit balance and usage ledger for the project API key
paths:
  /api/v1/workflow/manager/executions/thread/{threadId}/status:
    get:
      tags:
        - Workflow & Agent
      summary: Get execution status by thread ID
      description: >-
        Check whether a run is still in progress, completed, or failed. Use the
        thread ID returned when you started the execution to poll for status.
      operationId: WorkflowManagerController_getExecutionStatus
      parameters:
        - name: threadId
          required: true
          in: path
          description: Thread ID returned when the execution started
          schema:
            example: b737d8af-a9e0-4251-9714-3fdc1126e5fb
            type: string
        - name: x-username
          in: header
          required: false
          description: >-
            External user (end user) to act as. Optional — if omitted, Flowra
            uses the project’s default external user. Send a stable username
            (e.g. customer_alice) only when you need another end-user context.
          schema:
            type: string
            default: (project default user)
          example: customer_alice
      responses:
        '200':
          description: Workflow execution status retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WorkflowExecutionStatusDtoSuccessResponse'
              example:
                success: true
                message: Operation completed successfully
                data:
                  threadId: b737d8af-a9e0-4251-9714-3fdc1126e5fb
                  workflowId: 3fa85f64-5717-4562-b3fc-2c963f66afa6
                  status: paused
                  currentNodeId: ''
                  state: {}
                  completedNodes:
                    - ''
                  failedNodes:
                    - ''
                  errors:
                    - {}
                  usage:
                    credits: 0
                    usdCost: 0
                    breakdown:
                      ai_model: 0
                      tool: 0
                      sandbox: 0
                      browser: 0
                      workflow: 0
                      media: 0
      security:
        - x-api-key: []
        - x-api-key: []
          x-username: []
components:
  schemas:
    WorkflowExecutionStatusDtoSuccessResponse:
      type: object
      properties:
        success:
          type: boolean
          description: Success status
          example: true
        message:
          type: string
          description: Success message
          example: Operation completed successfully
        data:
          type: object
          properties:
            threadId:
              type: string
              description: LangGraph thread ID
              example: b737d8af-a9e0-4251-9714-3fdc1126e5fb
            workflowId:
              type: string
              description: Workflow (agent) ID
              example: 3fa85f64-5717-4562-b3fc-2c963f66afa6
            status:
              type: string
              enum:
                - running
                - paused
                - completed
                - failed
                - timeout
              description: '`paused` → call RESUME with this threadId'
              example: paused
            currentNodeId:
              type: string
              nullable: true
              description: Current static-graph node id
            state:
              type: object
              description: Current execution state snapshot
            completedNodes:
              description: Node ids that finished successfully
              type: array
              items:
                type: string
            failedNodes:
              description: Node ids that failed
              type: array
              items:
                type: string
            errors:
              description: Per-node errors
              type: array
              items:
                type: object
            usage:
              type: object
              properties:
                credits:
                  type: number
                  description: Net credits consumed for this execution/run
                usdCost:
                  type: number
                  nullable: true
                  description: USD charged to the account for this usage
                breakdown:
                  type: object
                  properties:
                    ai_model:
                      type: number
                      default: 0
                    tool:
                      type: number
                      default: 0
                    sandbox:
                      type: number
                      default: 0
                    browser:
                      type: number
                      default: 0
                    workflow:
                      type: number
                      default: 0
                    media:
                      type: number
                      default: 0
                  required:
                    - ai_model
                    - tool
                    - sandbox
                    - browser
                    - workflow
                    - media
              required:
                - credits
                - usdCost
                - breakdown
              description: Credit usage once the run has finished settling charges
          required:
            - threadId
            - workflowId
            - status
            - completedNodes
            - failedNodes
            - errors
          example:
            threadId: b737d8af-a9e0-4251-9714-3fdc1126e5fb
            workflowId: 3fa85f64-5717-4562-b3fc-2c963f66afa6
            status: paused
            currentNodeId: ''
            state: {}
            completedNodes:
              - ''
            failedNodes:
              - ''
            errors:
              - {}
            usage:
              credits: 0
              usdCost: 0
              breakdown:
                ai_model: 0
                tool: 0
                sandbox: 0
                browser: 0
                workflow: 0
                media: 0
      required:
        - success
        - message
        - data
  securitySchemes:
    x-api-key:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        Project API key. Create and manage keys in the dashboard under Project →
        API Keys. Send as header: x-api-key: <your-key>
    x-username:
      type: apiKey
      in: header
      name: x-username
      description: >-
        Optional. External user username. If omitted, Flowra uses the project’s
        default external user. Send as header: x-username: <username>

````

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