{"openapi":"3.1.0","info":{"title":"Evidence Preflight AI2AI","version":"1.4.1","description":"Deterministic agent-native evidence preflight. Validate machine-generated quality, safety and compliance records before an autonomous workflow accepts, pays for, or acts on them. Paid calls use x402 V2 and settle 0.005 USDC on Base."},"servers":[{"url":"https://evidence-preflight-ai2ai.floot.app"}],"tags":[{"name":"evidence-preflight","description":"Machine evidence validation before acceptance or payment"}],"paths":{"/_api/demo":{"post":{"operationId":"previewEvidence","tags":["evidence-preflight"],"summary":"Free evidence preflight preview","description":"Free preview checks record_type and identifier only. Use the paid preflight for the full deterministic validation and attestation.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvidenceRecord"},"example":{"record_type":"inspection","identifier":"INS-1042"}}}},"responses":{"200":{"description":"Preview result"}}}},"/_api/preflight":{"post":{"operationId":"preflightEvidence","tags":["evidence-preflight"],"summary":"Paid deterministic evidence validation before agent acceptance or payment","description":"Preflight machine-generated evidence before an autonomous workflow accepts, pays for, or acts on a record. Returns HTTP 402 with PAYMENT-REQUIRED when unpaid. Retry with a valid x402 V2 PAYMENT-SIGNATURE. A successful paid response returns a 0-100 completeness score, missing fields, deterministic defect codes, accept/repair recommendation, SHA-256 record attestation and x402 settlement receipt.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvidenceRecord"},"example":{"record_type":"inspection","identifier":"INS-1042","owner":"agent-or-org","date":"2026-09-19","evidence":["https://example.com/evidence/1042"]}}}},"responses":{"200":{"description":"Paid evidence validation result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreflightResult"}}}},"402":{"description":"x402 payment required or payment rejected","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded x402 V2 payment requirements","schema":{"type":"string"}}}},"503":{"description":"Payment facilitator unavailable"}}}}},"components":{"schemas":{"EvidenceRecord":{"type":"object","required":["record_type","identifier","owner","date","evidence"],"properties":{"record_type":{"type":"string","enum":["action","audit","incident","inspection","nonconformance","risk"],"examples":["inspection"]},"identifier":{"type":"string","minLength":3,"examples":["INS-1042"]},"owner":{"type":"string","minLength":2,"examples":["agent-or-org"]},"date":{"type":"string","description":"ISO-8601 parseable record date","examples":["2026-09-19"]},"evidence":{"description":"Evidence reference(s) or structured evidence object","oneOf":[{"type":"array","minItems":1,"items":{}},{"type":"object"},{"type":"string","minLength":1}]}}},"PreflightResult":{"type":"object","required":["ok","score","missing","issues","recommendation","attestation","receipt"],"properties":{"ok":{"type":"boolean"},"score":{"type":"integer","minimum":0,"maximum":100},"missing":{"type":"array","items":{"type":"string"}},"issues":{"type":"array","items":{"type":"string"}},"recommendation":{"type":"string","enum":["accept","repair_before_acceptance"]},"attestation":{"type":"object","properties":{"algorithm":{"const":"sha256"},"record_hash":{"type":"string"}}},"receipt":{"type":"object","properties":{"network":{"type":"string"},"transaction":{"type":"string"},"payer":{"type":"string"}}}}}}}}