{
  "openapi": "3.1.0",
  "info": {
    "title": "Doku synthetic Underwriting Evidence Pack sandbox",
    "version": "2026-09-08-web-sandbox-v1",
    "description": "Public same-origin demonstration for one registered synthetic fixture. No customer data, evidence verification, underwriting opinion, credit decision, or persistence."
  },
  "servers": [
    {
      "url": "https://dokuassurance.com"
    }
  ],
  "paths": {
    "/api/products/sandbox/underwriting-evidence-pack": {
      "get": {
        "operationId": "getSyntheticEvidencePackCapabilities",
        "responses": {
          "200": {
            "description": "Supported synthetic capability boundary"
          }
        }
      },
      "post": {
        "operationId": "evaluateSyntheticEvidencePack",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EvaluationRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Deterministic synthetic result"
          },
          "400": {
            "description": "Malformed JSON or request protocol"
          },
          "403": {
            "description": "Cross-origin browser request rejected"
          },
          "413": {
            "description": "Request exceeds the public sandbox limit"
          },
          "415": {
            "description": "Unsupported media type"
          },
          "422": {
            "description": "Input falls outside the registered fixture boundary"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "EvaluationRequest": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "schema_version",
          "fixture_id",
          "overrides"
        ],
        "properties": {
          "schema_version": {
            "type": "string",
            "const": "2026-09-08-web-sandbox-v1"
          },
          "fixture_id": {
            "type": "string",
            "const": "synthetic-256-v1"
          },
          "overrides": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "protected_it_budget_kw",
              "price_per_accepted_gpu_hour",
              "node_27_health_status",
              "node_28_health_status",
              "pool_d_contract_acceptance_status",
              "pool_d_billing_start"
            ],
            "properties": {
              "protected_it_budget_kw": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]{0,5})(?:\\.[0-9]{1,4})?$"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "price_per_accepted_gpu_hour": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^(?:0|[1-9][0-9]{0,5})(?:\\.[0-9]{1,4})?$"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "node_27_health_status": {
                "type": "string",
                "enum": [
                  "pass",
                  "fail",
                  "missing"
                ]
              },
              "node_28_health_status": {
                "type": "string",
                "enum": [
                  "pass",
                  "fail",
                  "missing"
                ]
              },
              "pool_d_contract_acceptance_status": {
                "type": "string",
                "enum": [
                  "pass",
                  "missing"
                ]
              },
              "pool_d_billing_start": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "2026-11-01T00:00:00Z",
                      "2026-11-16T00:00:00Z",
                      "2026-12-02T00:00:00Z"
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            }
          }
        }
      }
    }
  }
}
