Get flow run
GET /v1/organisations/{organisation_id}/spaces/{space_id}/flow-runs/{run_id}
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_idpathstringrequired -
space_idpathstringrequired -
run_idpathstringrequired
Responses
-
The run page: content only when you may read it (
content_visible) -
unauthenticated -
workspace_content_restricted,insufficient_scope -
No such run you may know of, or flows are off
-
rate_limited: the API key's requests per minute are used up; retry afterRetry-Afterseconds -
internal -
unavailable: the database is briefly unavailable; retry afterRetry-Afterseconds
Error codes
Errors come back as an ErrorBody whose code is one of these.
- 401
unauthenticated - 403
workspace_content_restrictedinsufficient_scope - 404
not_foundgeneric code for this status - 429
rate_limited - 500
internal - 503
unavailable
Examples
curl "$IVY_API_URL/v1/organisations/$ORGANISATION_ID/spaces/$SPACE_ID/flow-runs/$RUN_ID" \
-H "Authorization: Bearer $IVY_API_KEY" import { client, getFlowRun } 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 getFlowRun({
path: { organisation_id: organisationId, space_id: spaceId, run_id: runId },
}); {
"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"
}