Skip to main content
GET
Get run status

Overview

Use the GET /runs/{runId} endpoint to check the status of a workflow run and retrieve its results when complete.

Path Parameters

runId
string
required
The unique identifier of the workflow run (returned when you trigger a workflow)

Example Request

Response

id
string
Unique identifier for this workflow run
versionName
string
Version of the workflow that was executed
status
string
Current status of the run. Possible values:
  • PENDING - Workflow is queued
  • RUNNING - Workflow is currently executing
  • FINISHED - Workflow completed successfully
  • FAILED - Workflow encountered an error
createdAt
string
ISO 8601 timestamp when the run was created
steps
number
Total number of steps in the workflow
stepsCompleted
number
Number of steps completed so far
output
object
The workflow’s output data. Only available when status is FINISHED.The structure matches your workflow’s Result Node configuration.

Response Examples

Running workflow

Completed workflow

Failed workflow

Polling for results

Since workflows execute asynchronously, you’ll typically need to poll this endpoint to wait for completion.

Example polling implementation

Best practices

Polling intervals

  • Start with 2-3 second intervals
  • Consider exponential backoff for long-running workflows
  • Set a reasonable timeout based on your workflow’s expected duration

Error handling

Always check the status field and handle all possible states:

Next steps

Trigger a workflow

Learn how to trigger new workflow runs