{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/neuroviz-ai/json-schema/neuroviz-ai-get-api-v1-runs-runid-response-schema.json",
  "title": "GetApiV1RunsRunidResponse",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/neuroviz-ai-openapi-generated.yml#/components/schemas/GetApiV1RunsRunidResponse",
  "type": "object",
  "properties": {
    "run_id": {
      "type": "string",
      "description": "The unique run identifier"
    },
    "app_id": {
      "type": "string",
      "description": "The app that was run"
    },
    "app_title": {
      "type": "string",
      "description": "Human-readable app name"
    },
    "status": {
      "type": "string",
      "description": "IN QUEUE, IN PROCESS, SUCCESS, FAILURE, CANCELLED, or FAILURE_VALIDATION"
    },
    "created": {
      "type": "string",
      "description": "ISO 8601 timestamp when the run was submitted"
    },
    "completed": {
      "type": "string",
      "description": "ISO 8601 timestamp when processing finished (only if completed)"
    },
    "credits_charged": {
      "type": "integer",
      "description": "Credits charged for the run"
    },
    "output_url": {
      "type": "string",
      "description": "Signed URL to download the output (only if SUCCESS)"
    },
    "error": {
      "type": "string",
      "description": "Error message (when the run failed or was cancelled)"
    },
    "error_code": {
      "type": "string",
      "description": "Machine‑readable failure reason"
    },
    "is_video": {
      "type": "boolean",
      "description": "Whether the output is a video file"
    },
    "extra_outputs": {
      "type": "array",
      "description": "Secondary stored outputs, present only when a SUCCESS run produced more than one file"
    },
    "primary_label": {
      "type": "string",
      "description": "What output_url contains when extra_outputs is present"
    }
  }
}