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

# Get Execution Status

> Returns live status from the workflow engine if available, otherwise reads the persisted record. The response surfaces pending human-in-the-loop approval info and operator-pause state when applicable.



## OpenAPI

````yaml openapi/superflow.yaml GET /executions/{id}
openapi: 3.0.3
info:
  title: Lyzr SuperFlow API
  version: '1.0'
  description: >-
    SuperFlow orchestration API covering workflow CRUD, the execution lifecycle
    (run, pause, resume, terminate, rerun), scheduling, and human-in-the-loop
    approvals. Chat-completions and agent CRUD endpoints are documented
    separately and are not part of this surface.
servers:
  - url: https://inference.studio.lyzr.ai/api
security:
  - ApiKeyAuth: []
tags:
  - name: workflows
    description: Create, read, update, delete, and share workflow definitions.
  - name: workflow-execution
    description: Run workflows and control the execution lifecycle.
  - name: workflow-schedules
    description: Cron-driven recurring triggers for stored workflows.
  - name: approvals
    description: Human-in-the-loop approval requests raised by running workflows.
paths:
  /executions/{id}:
    get:
      tags:
        - workflow-execution
      summary: Get execution status
      description: >-
        Returns live status from the workflow engine if available, otherwise
        reads the persisted record. The response surfaces pending
        human-in-the-loop approval info and operator-pause state when
        applicable.
      operationId: getExecutionStatus
      parameters:
        - name: id
          in: path
          required: true
          description: Execution ID
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExecutionStatusResponse'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    ExecutionStatusResponse:
      type: object
      properties:
        execution_id:
          type: string
        status:
          type: string
          description: One of running, completed, failed, cancelled, or paused.
          example: running
        outputs:
          type: object
          additionalProperties:
            type: object
            additionalProperties:
              type: array
              items:
                $ref: '#/components/schemas/Item'
        node_outputs:
          type: object
          additionalProperties:
            type: object
            additionalProperties:
              type: array
              items:
                $ref: '#/components/schemas/Item'
        paused:
          $ref: '#/components/schemas/PausedResponse'
        pending_approval:
          $ref: '#/components/schemas/PendingApprovalResponse'
        errors:
          type: array
          items:
            type: string
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
    Item:
      type: object
      additionalProperties: {}
    PausedResponse:
      type: object
      description: Present when an operator has paused the execution.
      properties:
        awakeable_id:
          type: string
        paused_at:
          type: string
    PendingApprovalResponse:
      type: object
      description: Present when the execution is waiting on a human-in-the-loop approval.
      properties:
        awakeable_id:
          type: string
        node:
          type: string
          description: Name of the node waiting for approval.
        context:
          type: object
          additionalProperties: {}
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: Tenant API key. Required on every endpoint.

````