Naturali · Schema

OrchestrationRun

AI AgentsAutomationGuardrailsEvaluationManaged Models

Properties

Name Type Description
id string Public ID (run_...).
orchestration_id string Public ID of the parent orchestration.
orchestration_version integernull The orchestration version this run executes, fixed when the run started. Every later step of the run — the first drive, a wake from `sleeping`, a human or approval resume, a redrive after a crash — re
project_id string Public ID of the owning project.
status string Run lifecycle state. `queued` awaits a worker; `running` is actively executing; `sleeping` is parked on a delay/poll wait (no worker); `awaiting_input` is parked on a human node; `completed`/`failed`/
state object Current accumulated state.
active_nodes array Node IDs currently active.
artifacts object Map of node ID to output artifact.
error object Why it failed, when `status` is `failed`.
trace_id stringnull
input objectnull Initial input provided at run creation.
metadata object The caller-owned key/value metadata supplied at run creation, returned verbatim. Absent when the run was started without any. The server writes nothing here and no key is reserved; the bag is never me
idempotency_key stringnull The deduplication key the run was started under, unique within the project and claimed for as long as the run record exists. Null for a run started without one, which every platform-started run is.
parent_orchestration_run_id stringnull The run whose node started this one — set only on a child a `loop` or `sub_orchestration` node spawned, null for a run a caller started. A child is its own run with its own usage events, so this is wh
parent_node_id stringnull The node within `parent_orchestration_run_id` that started this run. Null when `parent_orchestration_run_id` is null.
orchestration_run_depth integer `loop` / `sub_orchestration` edges between this run and the run a caller started: `0` for a caller-started run, one more than its parent's for a child. Starting a child past the effective bound — the
output objectnull What a completed run returns: the orchestration's `output_mapping` evaluated over the final state, or, when it declares none, the terminal node artifacts keyed by node id. Null unless the run complete
usage object What the run cost: token counts and `cost_usd` summed across every metered generation it produced **and every run it started** through `loop` / `sub_orchestration` nodes, at any depth. Present only on
usage_own object The same roll-up restricted to **this run's own nodes**, excluding every nested run it started. Equal to `usage` for a run with no children; below it for a run that delegates. Present only on the sing
required_action object
pause_requested_at stringnull When an operator pause was requested, or null when none is in force. Independent of `status`: a `running` run keeps running until its next checkpoint, and a run parked on a node keeps that node's `req
pause_reason stringnull The reason supplied with the pause, when one was.
started_at stringnull
completed_at stringnull
created_at string
updated_at string
View JSON Schema on GitHub

JSON Schema

naturali-ai-orchestration-run-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/naturali-ai/json-schema/naturali-ai-orchestration-run-schema.json",
  "title": "OrchestrationRun",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/naturali-ai-openapi.json#/components/schemas/OrchestrationRun",
  "type": "object",
  "required": [
    "id",
    "orchestration_id",
    "project_id",
    "status",
    "state",
    "active_nodes",
    "artifacts",
    "created_at",
    "updated_at"
  ],
  "properties": {
    "id": {
      "type": "string",
      "description": "Public ID (run_...)."
    },
    "orchestration_id": {
      "x-naturali-ref": "orchestrations",
      "type": "string",
      "description": "Public ID of the parent orchestration."
    },
    "orchestration_version": {
      "type": [
        "integer",
        "null"
      ],
      "description": "The orchestration version this run executes, fixed when the run started. Every later step of the run — the first drive, a wake from `sleeping`, a human or approval resume, a redrive after a crash — resolves the graph from this version, so editing the orchestration never re-shapes a run already in flight. Fetch the graph it names at `GET /v1/projects/{project_id}/orchestrations/{orchestration_id}/versions/{version}`.\n\nNull for runs created before pinning existed, which execute the live graph.\n"
    },
    "project_id": {
      "x-naturali-ref": "projects",
      "type": "string",
      "description": "Public ID of the owning project."
    },
    "status": {
      "type": "string",
      "description": "Run lifecycle state. `queued` awaits a worker; `running` is actively executing; `sleeping` is parked on a delay/poll wait (no worker); `awaiting_input` is parked on a human node; `completed`/`failed`/ `cancelled` are terminal; `expired` is a wait that passed its deadline.",
      "enum": [
        "queued",
        "running",
        "sleeping",
        "awaiting_input",
        "completed",
        "failed",
        "cancelled",
        "expired"
      ]
    },
    "state": {
      "type": "object",
      "description": "Current accumulated state."
    },
    "active_nodes": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Node IDs currently active."
    },
    "artifacts": {
      "type": "object",
      "description": "Map of node ID to output artifact."
    },
    "error": {
      "allOf": [
        {
          "$ref": "#/$defs/StoredError"
        }
      ],
      "nullable": true,
      "description": "Why it failed, when `status` is `failed`."
    },
    "trace_id": {
      "x-naturali-ref": "traces",
      "type": [
        "string",
        "null"
      ]
    },
    "input": {
      "type": [
        "object",
        "null"
      ],
      "description": "Initial input provided at run creation."
    },
    "metadata": {
      "description": "The caller-owned key/value metadata supplied at run creation, returned verbatim. Absent when the run was started without any. The server writes nothing here and no key is reserved; the bag is never merged into `state`, so nothing in it reaches the graph.",
      "allOf": [
        {
          "$ref": "#/$defs/MetadataBag"
        }
      ]
    },
    "idempotency_key": {
      "type": [
        "string",
        "null"
      ],
      "description": "The deduplication key the run was started under, unique within the project and claimed for as long as the run record exists. Null for a run started without one, which every platform-started run is."
    },
    "parent_orchestration_run_id": {
      "x-naturali-ref": "orchestration-runs",
      "type": [
        "string",
        "null"
      ],
      "description": "The run whose node started this one — set only on a child a `loop` or `sub_orchestration` node spawned, null for a run a caller started. A child is its own run with its own usage events, so this is what makes a delegated run's spend attributable to the run that ordered it."
    },
    "parent_node_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "The node within `parent_orchestration_run_id` that started this run. Null when `parent_orchestration_run_id` is null."
    },
    "orchestration_run_depth": {
      "type": "integer",
      "minimum": 0,
      "description": "`loop` / `sub_orchestration` edges between this run and the run a caller started: `0` for a caller-started run, one more than its parent's for a child. Starting a child past the effective bound — the smaller of the deployment's `MAX_ORCHESTRATION_RUN_DEPTH` (default 10) and the project's `max_orchestration_run_depth` — is refused with `ORCHESTRATION_RUN_DEPTH_LIMIT`, which fails the run that tried to descend. That bounds a graph whose `sub_orchestration` node names itself, directly or through a cycle of two graphs, which the intra-graph cycle check cannot see."
    },
    "output": {
      "type": [
        "object",
        "null"
      ],
      "description": "What a completed run returns: the orchestration's `output_mapping` evaluated over the final state, or, when it declares none, the terminal node artifacts keyed by node id. Null unless the run completed."
    },
    "usage": {
      "allOf": [
        {
          "$ref": "#/$defs/UsageTotals"
        }
      ],
      "description": "What the run cost: token counts and `cost_usd` summed across every metered generation it produced **and every run it started** through `loop` / `sub_orchestration` nodes, at any depth. Present only on the single-run read (`GET /v1/projects/{project_id}/orchestration-runs/{orchestration_run_id}`); omitted from run lists and from every write's response, including a start with `wait: true`.\n\nA nested child is a run record of its own, so this figure spans several of them. Two consequences: summing `usage` across a list that mixes parents and children double-counts (filter with `nested=false`), and the per-event receipt at `/v1/projects/{project_id}/usage/receipt` stays scoped to one run — its line items carry a `node_id` from one graph only."
    },
    "usage_own": {
      "allOf": [
        {
          "$ref": "#/$defs/UsageTotals"
        }
      ],
      "description": "The same roll-up restricted to **this run's own nodes**, excluding every nested run it started. Equal to `usage` for a run with no children; below it for a run that delegates. Present only on the single-run read, like `usage`.\n\nThis is the field to read to see where cost sits in a run tree — own versus subtree — without walking the children."
    },
    "required_action": {
      "allOf": [
        {
          "$ref": "#/$defs/RequiredAction"
        }
      ],
      "nullable": true
    },
    "pause_requested_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "When an operator pause was requested, or null when none is in force. Independent of `status`: a `running` run keeps running until its next checkpoint, and a run parked on a node keeps that node's `required_action`."
    },
    "pause_reason": {
      "type": [
        "string",
        "null"
      ],
      "description": "The reason supplied with the pause, when one was."
    },
    "started_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "completed_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    }
  },
  "$defs": {
    "MetadataBag": {
      "type": "object",
      "description": "Caller-owned annotations on a resource, stored as the object they were written as: the types a value was written with are the types a read returns, so a filter can ask an ordering question about a number. Unlike other body fields, keys are stored and returned verbatim in the casing supplied — they are not converted between snake_case and camelCase.\n\nNo key is reserved, and that is the point: every piece of state the platform owns lives in its own typed column, so nothing written here reaches platform state. The platform never reads the bag — it is not an IAM context, not a policy input and not part of a prompt — which is what separates it from a tag bag."
    },
    "RequiredAction": {
      "type": "object",
      "description": "Why an awaiting_input run is parked. `node_id`, `prompt` and `context` describe a node's own pause and are present for every kind but `paused`, which is an operator pause with no node of its own and carries `reason` instead.",
      "required": [
        "type"
      ],
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "human_input",
            "webhook_receive",
            "approval",
            "paused",
            "child_run"
          ],
          "description": "Discriminator identifying the kind of pause. Open enum — new pause kinds may be added in minor releases; clients must tolerate unknown values. `child_run` is a `loop` or `sub_orchestration` node whose child runs, listed in `context.orchestration_run_ids`, have not settled; their settle resumes it, and it accepts no human input. A `loop` collecting item errors also lists, in `context.item_errors` (`[{ index, code, message }]`), the items whose `item_tool_context` failed and started no child."
        },
        "node_id": {
          "type": "string",
          "description": "The node the run is parked at. Absent for a `paused` action, which no node produced."
        },
        "prompt": {
          "type": "string"
        },
        "context": {
          "type": "object"
        },
        "reason": {
          "type": [
            "string",
            "null"
          ],
          "description": "Present for `paused` — the reason the operator gave, or null when they gave none."
        },
        "options": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string"
          }
        },
        "approval_spec": {
          "type": "object",
          "description": "Present only for `approval` pauses — the frozen tool proposal the engine emits as an ApprovalItem when the run parks. Copied as a value; inner keys stay exactly as authored."
        },
        "approval_id": {
          "x-naturali-ref": "approvals",
          "type": "string",
          "description": "Present once the approval item is emitted."
        },
        "expires_at": {
          "type": "string",
          "format": "date-time",
          "description": "Present for `approval` pauses — when the item expires."
        }
      }
    },
    "StoredError": {
      "type": "object",
      "description": "Why a resource's work failed, in the shape of an error response's `error`. Every `error` field a resource records carries it, so `code` can be read without first checking the type of `error`.",
      "required": [
        "code",
        "message"
      ],
      "properties": {
        "code": {
          "type": "string",
          "description": "A key from the server's ERROR_CODES registry, documented on the Error Codes page. `INTERNAL_ERROR`, with the message `Internal Server Error`, records an unexpected failure whose detail reaches the server log only."
        },
        "message": {
          "type": "string"
        },
        "meta": {
          "type": "object",
          "additionalProperties": true,
          "description": "The failure's own structured context, when it names any."
        }
      }
    },
    "UsageTotals": {
      "type": "object",
      "description": "Token counts and cost for one slice of the meter. Tokens and cost only: a `compute_second` or `gb_day` meter is reported by the aggregate's `components` array.\n\nThe three input dimensions partition the prompt — `input_tokens` = `uncached_input_tokens` + `cached_tokens` + `cache_write_tokens` — and are separate because they are separately priced. Note that the `input_tokens` **component** on a usage event is the uncached figure alone; here `input_tokens` is the whole prompt.\n",
      "properties": {
        "cost_usd": {
          "type": [
            "number",
            "null"
          ],
          "description": "Sum of priced component costs; null when nothing in the slice was priced. Always null at step altitude — the ledger prices one event per generation at write time, and a price read back per step would disagree with it after any price change."
        },
        "input_tokens": {
          "type": "integer",
          "description": "Full prompt tokens, reconstructed from the components."
        },
        "uncached_input_tokens": {
          "type": "integer",
          "description": "Prompt tokens priced at the plain input rate — the prompt minus cache reads and cache writes."
        },
        "output_tokens": {
          "type": "integer"
        },
        "cached_tokens": {
          "type": "integer",
          "description": "Prompt tokens served from the provider's prompt cache."
        },
        "cache_write_tokens": {
          "type": "integer",
          "description": "Prompt tokens written into the provider's prompt cache."
        },
        "reasoning_tokens": {
          "type": "integer",
          "description": "A non-billable subset of `output_tokens`, reported where the provider breaks it out."
        }
      }
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/naturali-ai-orchestration-run"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.