Docs menu

Get workflow run

GET /v1/organisations/{organisation_id}/workspaces/{workspace_id}/workflow-runs/{run_id} Deprecated

A run's page (§10): every step's attempts and outcome, and its content for its readers.

Authentication

Send an API key, or an access token from your organisation’s identity provider, in the Authorization header. How API keys work

Scope the API key needs: workflows:read

Security schemes in the OpenAPI document: session_cookie (cookie __Host-ivy_session)bearer (bearer)api_key (bearer)

Parameters

  • organisation_id path string required
  • workspace_id path string required
  • run_id path string required

Responses

  • 200 application/json FlowRunView

    The run page: content only when you may read it (content_visible)

  • 401 application/json ErrorBody

    unauthenticated

  • 403 application/json ErrorBody

    workspace_content_restricted, insufficient_scope

  • 404 application/json ErrorBody

    No such run you may know of, or flows are off

  • 429 application/json ErrorBody

    rate_limited: the API key's requests per minute are used up; retry after Retry-After seconds

  • 500 application/json ErrorBody

    internal

  • 503 application/json ErrorBody

    unavailable: the database is briefly unavailable; retry after Retry-After seconds

Error codes

Errors come back as an ErrorBody whose code is one of these.

  • 401 unauthenticated
  • 403 workspace_content_restrictedinsufficient_scope
  • 404 not_found generic code for this status
  • 429 rate_limited
  • 500 internal
  • 503 unavailable

Examples

curl
curl "$IVY_API_URL/v1/organisations/$ORGANISATION_ID/workspaces/$WORKSPACE_ID/workflow-runs/$RUN_ID" \
  -H "Authorization: Bearer $IVY_API_KEY"
JavaScript SDK
import { client, getWorkflowRun } from "@spacivapp/ivy-sdk";

client.setConfig({
  baseUrl: process.env.IVY_API_URL,
  headers: { Authorization: `Bearer ${process.env.IVY_API_KEY}` },
});

const { data, error, response } = await getWorkflowRun({
  path: { organisation_id: organisationId, workspace_id: workspaceId, run_id: runId },
});
Example response (200)
{
  "acted_as_person": false,
  "can_run_again": false,
  "content_visible": false,
  "conversation_id": "conversation_123",
  "created_at": "2026-01-15T09:30:00Z",
  "credits_ucr": 1,
  "erased": false,
  "failure_code": "string",
  "finished_at": "2026-01-15T09:30:00Z",
  "flow_id": "flow_123",
  "graph": false,
  "id": "id_123",
  "input": {},
  "reused_from": "string",
  "space_id": "space_123",
  "started_by": "string",
  "status": "queued",
  "steps": [
    {
      "after": [
        "string"
      ],
      "attempt": 1,
      "details": {},
      "finished_at": "2026-01-15T09:30:00Z",
      "item": 0,
      "path": "string",
      "reused": false,
      "reused_from": "string",
      "reused_from_started_at": "2026-01-15T09:30:00Z",
      "skip_reason": "condition",
      "started_at": "2026-01-15T09:30:00Z",
      "status": "queued",
      "step_id": "step_123"
    }
  ],
  "test": false,
  "trigger_id": "trigger_123",
  "trigger_kind": "string",
  "version_id": "version_123",
  "waiting_for": [
    {
      "ask_id": "ask_123",
      "people": [
        "string"
      ],
      "reminded_at": "2026-01-15T09:30:00Z",
      "since": "2026-01-15T09:30:00Z",
      "status": "draft",
      "step_id": "step_123"
    }
  ],
  "waiting_on": [
    "string"
  ],
  "workflow_id": "workflow_123",
  "workspace_id": "workspace_123"
}