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

# Get workflow run

> Inspect the status of a workflow run.



## OpenAPI

````yaml api-reference/workflows/openapi.json GET /v1/workflows/{workflowId}/runs/{runId}
openapi: 3.0.3
info:
  title: Persistence Workflows API
  version: '1.0'
  description: Start, inspect, cancel, and wake published event-to-call workflow runs.
servers:
  - url: https://api.persistence.dev
    description: Production
security:
  - ApiKeyAuth: []
tags:
  - name: Workflows
paths:
  /v1/workflows/{workflowId}/runs/{runId}:
    get:
      tags:
        - Workflows
      summary: Get workflow run
      description: >-
        Return the current status, context, and output of a run. Requires the
        workflow read scope.
      operationId: getWorkflowRun
      parameters:
        - name: workflowId
          in: path
          required: true
          description: Workflow ID
          schema:
            type: string
        - name: runId
          in: path
          required: true
          description: Run ID returned by the start request
          schema:
            type: string
      responses:
        '200':
          description: Run status
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RunEnvelope'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  schemas:
    RunEnvelope:
      type: object
      required:
        - success
        - data
      properties:
        success:
          type: boolean
          example: true
        data:
          $ref: '#/components/schemas/Run'
    Run:
      type: object
      required:
        - id
        - automationId
        - version
        - status
        - createdAt
        - updatedAt
      properties:
        id:
          type: string
          description: Run ID
        automationId:
          type: string
          description: Workflow ID
        automationName:
          type: string
        version:
          type: integer
        parentRunId:
          type: string
        parentStepId:
          type: string
        currentStepId:
          type: string
        concurrencyKey:
          type: string
        status:
          type: string
          enum:
            - queued
            - running
            - waiting_call
            - waiting_schedule
            - waiting_automation
            - blocked
            - completed
            - failed
            - cancelled
        currentNodeId:
          type: string
        currentNodeTitle:
          type: string
        context:
          type: object
          additionalProperties: true
        output:
          type: object
          additionalProperties: true
        error:
          type: object
          additionalProperties: true
        revision:
          type: integer
        wakeAt:
          type: string
          format: date-time
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
    Error:
      type: object
      properties:
        code:
          type: string
        error:
          type: string
  responses:
    BadRequest:
      description: Bad Request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: Unauthorized
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Forbidden:
      description: Forbidden
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: Not Found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: Workspace API key with workflow run, and workflow read to check status.

````

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