---
title: "Get run"
method: GET
path: "/api/v1/runs/{run_id}"
tags: ["Runs"]
---

# Get run

`GET /api/v1/runs/{run_id}`

## Request

- Base URL: `https://api.studio.kaitoi.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.studio.kaitoi.io/api/v1/runs/{run_id}`
- Auth: HTTP bearer

Returns a REST API run record owned by the authenticated API key owner.

## Path parameters

- `run_id` string, required

## Headers

- `authorization` string, nullable

## Response `200`

Run record.

- PublicRunDetail
  - `id` string, required
  - `sourceType` 'project' | 'inline_graph'
  - `projectId` string, nullable
  - `projectVersion` integer, nullable
  - `status` 'accepted' | 'queued' | 'running' | 'succeeded' | 'failed' | 'canceled', required
  - `cancelRequested` boolean
  - `targetNodeIds` string[]
  - `externalId` string, nullable
  - `externalUserId` string, nullable
  - `externalWorkspaceId` string, nullable
  - `inputFiles` PublicRunFileInputReference[]
    - `nodeId` string, required
    - `inputName` string, required
    - `fileId` string, required
    - `filename` string, required
    - `contentType` string, required
    - `sizeBytes` integer, required
    - `externalId` string, nullable
    - `externalUserId` string, nullable
    - `externalWorkspaceId` string, nullable
  - `outputs` object
  - `error` object, nullable
  - `creditsUsed` integer, nullable: Credits charged by this run. Null while the run is active, or when a terminal run could not produce a reliable accounting summary.
  - `creditsUsedMicrocredits` string, nullable: Exact run charge in millionths of one credit.
  - `spend` PublicRunSpendSummary
    - `totalCredits` integer, required
    - `totalMicrocredits` string, nullable
    - `byNode` PublicRunSpendNode[]
      - `nodeId` string, required
      - `nodeType` string, nullable
      - `nodeTitle` string, required
      - `credits` integer, required
      - `microcredits` string, nullable: Exact billed amount in millionths of one credit.
      - `billedRuns` integer, required: Number of cost-bearing node execution snapshots counted for this node.
    - `byProvider` object
    - `byProviderMicrocredits` object
    - `byChargeType` object
    - `byChargeTypeMicrocredits` object
  - `executionTimeMs` integer, nullable
  - `createdAt` string, date-time, required
  - `updatedAt` string, date-time, required

## Other responses

- `401`: Missing, malformed, expired, or revoked bearer token.
- `403`: The API key lacks the required scope or account capability.
- `404`: The run does not exist or is not owned by this user.
- `422`: Validation Error
- `429`: The client or API key exceeded the REST API rate limit.
- `503`: The shared REST API rate limiter is temporarily unavailable.

---

[API](https://skmtc.dev/kaitoi/apis/kaitoi-rest-api.md) · [All operations](https://skmtc.dev/kaitoi/apis/kaitoi-rest-api/llms.txt) · [OpenAPI document](https://skmtc.dev/kaitoi/apis/kaitoi-rest-api/revisions/239a74aa2c64?raw)
