For the complete documentation index, see llms.txt. This page is also available as Markdown.

GET /inference/v0/runs/{org_id}/{run_id}

Get Run

get

Get the status of a run, including the human-in-the-loop pause when waiting.

How to use

Use this to observe a legacy run or retrieve its pause context. Read state and pause from this response, not the v2 data.status/pending_input fields. Terminal legacy success is COMPLETED.

Authentication and permissions

Required permissions: projects.read. Resource and owner access checks also apply.

Authorizations
AuthorizationstringRequired

Personal API key or the endpoint-specific legacy organization API key. Legacy inference uses the public organization key; legacy analytics uses the private organization key. This is not a password-grant login flow.

Path parameters
org_idstringRequired
run_idstring · uuidRequired

The run ID to fetch the status for.

Responses
200

Successful Response

application/json

Public run status, surfacing the pause context when the run is awaiting a response.

run_idstringRequired
statestring · enum · nullableOptional

Enum representing the possible states of a workflow.

Possible values:
errorstring · nullableOptional
get/inference/v0/runs/{org_id}/{run_id}
curl
curl --fail-with-body -sS \
  "$STACKAI_BASE_URL/inference/v0/runs/${ORG_ID}/${RUN_ID}" \
  -H "Authorization: Bearer $STACKAI_API_KEY"
{
  "run_id": "text",
  "state": "PENDING",
  "error": "text",
  "pause": {
    "run_id": "text",
    "node_id": "text",
    "question": "",
    "context": "text",
    "response_type": "text",
    "choices": [
      "text"
    ],
    "resume_token": "text",
    "resume_endpoint": "text",
    "expires_at": "2026-01-01T00:00:00.000Z",
    "response_schema": {
      "ANY_ADDITIONAL_PROPERTY": "anything"
    }
  }
}

Last updated

Was this helpful?