{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/edgaze-ai/json-schema/edgaze-ai-create-run-request-schema.json",
  "title": "CreateRunRequest",
  "description": "Request body for POST /runs.",
  "x-generated": "2026-11-06",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/edgaze-ai-openapi.json#/components/schemas/CreateRunRequest",
  "type": "object",
  "properties": {
    "workflow": {
      "description": "Workflow UUID to run.",
      "type": "string",
      "minLength": 1,
      "format": "uuid"
    },
    "workflowId": {
      "description": "Deprecated compatibility alias for `workflow`. Prefer `workflow`. When both are set, `workflow` wins.",
      "deprecated": true,
      "type": "string",
      "minLength": 1,
      "format": "uuid"
    },
    "inputs": {
      "description": "Map of exact input `nodeId` (preferred) or `name` to value, using the keys from the workflow's `inputSchema`. Unknown or ambiguous keys are rejected with 400 `invalid_inputs`. Omit entirely for a workflow that takes no inputs.",
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {}
    },
    "idempotencyKey": {
      "description": "Currently optional for backward compatibility, but strongly recommended for every request. Account-scoped and case-sensitive (max 255 chars). Prefer the `Idempotency-Key` header; when both are set they must match. The fingerprint covers workflow, normalized inputs, and requested version.",
      "type": "string",
      "maxLength": 255
    },
    "version": {
      "description": "Optional immutable workflow version to run. When omitted, resolves to the caller's pinned version, or the workflow's active version when there is no pin.",
      "type": "string",
      "minLength": 1,
      "format": "uuid"
    }
  }
}