{"openapi":"3.1.0","info":{"title":"GatePay Decision Fabric","version":"0.5.1"},"paths":{"/.well-known/agent.json":{"get":{"summary":"Well Known Agent","operationId":"well_known_agent__well_known_agent_json_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/.well-known/agent-card.json":{"get":{"summary":"Well Known Agent Card","operationId":"well_known_agent_card__well_known_agent_card_json_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/.well-known/openai-apps-challenge":{"get":{"summary":"Openai Apps Challenge","operationId":"openai_apps_challenge__well_known_openai_apps_challenge_get","responses":{"200":{"description":"Successful Response","content":{"text/plain":{"schema":{"type":"string"}}}}}}},"/llms.txt":{"get":{"summary":"Llms Txt","operationId":"llms_txt_llms_txt_get","responses":{"200":{"description":"Successful Response","content":{"text/plain":{"schema":{"type":"string"}}}}}}},"/v1/status":{"get":{"summary":"Status","operationId":"status_v1_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/ledger/status":{"get":{"summary":"Ledger Health","operationId":"ledger_health_v1_ledger_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/decision":{"post":{"summary":"Decision","operationId":"decision_v1_decision_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RouteRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/policy/simulate":{"post":{"summary":"Simulate Policy","operationId":"simulate_policy_v1_policy_simulate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SimulationRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/policy/shadow":{"post":{"summary":"Shadow Policy","operationId":"shadow_policy_v1_policy_shadow_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SimulationRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/route":{"post":{"summary":"Route","operationId":"route_v1_route_post","parameters":[{"name":"x-gatepay-route-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Gatepay-Route-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RouteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/mcp":{"post":{"summary":"Mcp Rpc","operationId":"mcp_rpc_mcp_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/mcp/openai":{"post":{"summary":"Mcp Openai Rpc","operationId":"mcp_openai_rpc_mcp_openai_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/outcome":{"post":{"summary":"Report Outcome","operationId":"report_outcome_v1_outcome_post","parameters":[{"name":"x-gatepay-outcome-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Gatepay-Outcome-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutcomeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/proof/{request_id}":{"get":{"summary":"Proof History","operationId":"proof_history_v1_proof__request_id__get","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}},{"name":"x-gatepay-proof-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Gatepay-Proof-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/provider/paid-data":{"post":{"summary":"Paid Data","description":"Minimal provider-side x402 v2 authorization -> work -> settle example.","operationId":"paid_data_v1_provider_paid_data_post","parameters":[{"name":"PAYMENT-SIGNATURE","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payment-Signature"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"OutcomeRequest":{"properties":{"request_id":{"type":"string","maxLength":128,"minLength":4,"title":"Request Id"},"target":{"type":"string","maxLength":2048,"title":"Target","default":""},"status":{"type":"string","pattern":"^(accepted|rejected|partial)$","title":"Status"},"evidence":{"additionalProperties":true,"type":"object","title":"Evidence"}},"type":"object","required":["request_id","status"],"title":"OutcomeRequest"},"RouteRequest":{"properties":{"payload":{"additionalProperties":true,"type":"object","title":"Payload"},"price_usdc":{"type":"number","minimum":0.0,"title":"Price Usdc"},"budget_usdc":{"type":"number","minimum":0.0,"title":"Budget Usdc"},"rail":{"type":"string","pattern":"^(x402|arc)$","title":"Rail","default":"x402"},"target":{"type":"string","title":"Target","description":"vendor URL/address","default":""}},"type":"object","required":["price_usdc","budget_usdc"],"title":"RouteRequest"},"SimulationRequest":{"properties":{"payload":{"additionalProperties":true,"type":"object","title":"Payload"},"price_usdc":{"type":"number","minimum":0.0,"title":"Price Usdc"},"budget_usdc":{"type":"number","minimum":0.0,"title":"Budget Usdc"},"rail":{"type":"string","pattern":"^(x402|arc)$","title":"Rail","default":"x402"},"target":{"type":"string","title":"Target","description":"vendor URL/address","default":""},"policy_overrides":{"additionalProperties":true,"type":"object","title":"Policy Overrides"}},"type":"object","required":["price_usdc","budget_usdc"],"title":"SimulationRequest"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}}}