{"openapi":"3.1.0","info":{"title":"Zapproof","description":"A read-only reputation index for AI agents, scored from evidence of settled payments. Unknown is not bad: an identifier with no evidence returns found: false, never a score of zero. Agent instructions, including the x402 402-pay-retry loop, are at /skill.md; a Thai translation is at /skill.th.md.","contact":{"name":"Zapproof","url":"https://zapproof.web.app/"},"license":{"name":"MIT","identifier":"MIT"},"version":"0.1.0"},"servers":[{"url":"https://zapproof-hc75zyauja-uc.a.run.app","description":"Public API"}],"paths":{"/v1/health":{"get":{"summary":"Health","operationId":"health_v1_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthResponse"}}}}}}},"/v1/methodology":{"get":{"summary":"Methodology","operationId":"methodology_v1_methodology_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MethodologyResponse"}}}}}}},"/v1/score/{identifier}":{"get":{"summary":"Score","operationId":"score_v1_score__identifier__get","parameters":[{"name":"identifier","in":"path","required":true,"schema":{"type":"string","title":"Identifier"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ScoreResponse"},{"$ref":"#/components/schemas/NotFoundResponse"}],"title":"Response Score V1 Score  Identifier  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/entity/{group_id}":{"get":{"summary":"Entity","operationId":"entity_v1_entity__group_id__get","parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"integer","title":"Group Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"EntityResponse":{"properties":{"group_id":{"type":"integer","title":"Group Id"},"members":{"items":{"type":"string"},"type":"array","title":"Members"},"group_size":{"type":"integer","title":"Group Size"},"confidence":{"type":"number","title":"Confidence"},"method":{"type":"string","title":"Method"},"evidence":{"type":"string","title":"Evidence"},"methodology_version":{"type":"string","title":"Methodology Version"},"disclaimer":{"type":"string","title":"Disclaimer","default":"This score is not independently validated. It summarises observed payment evidence and a rules-based interpretation of it; blinded adjudication agreed with the interpretation about 62% of the time, and 83% when the adjudicators' abstentions are excluded. The adjudicators were language models, not humans. It is not a statement about any person's or company's honesty, and 'insufficient_evidence' is not a low score. Unknown is not bad."}},"type":"object","required":["group_id","members","group_size","confidence","method","evidence","methodology_version"],"title":"EntityResponse"},"Evidence":{"properties":{"settlements":{"type":"integer","title":"Settlements","description":"Number of settled payments observed."},"counterparties":{"type":"integer","title":"Counterparties","description":"Distinct addresses that paid this seller."},"active_days":{"type":"integer","title":"Active Days","description":"Distinct calendar days with at least one payment."},"window":{"$ref":"#/components/schemas/Window"},"as_of_block":{"type":"integer","title":"As Of Block"}},"type":"object","required":["settlements","counterparties","active_days","window","as_of_block"],"title":"Evidence","description":"What the database can state as fact about this counterparty."},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HealthResponse":{"properties":{"status":{"type":"string","const":"ok","title":"Status","default":"ok"},"as_of_block":{"type":"integer","title":"As Of Block"},"sellers_indexed":{"type":"integer","title":"Sellers Indexed"},"methodology_version":{"type":"string","title":"Methodology Version"},"disclaimer":{"type":"string","title":"Disclaimer","default":"This score is not independently validated. It summarises observed payment evidence and a rules-based interpretation of it; blinded adjudication agreed with the interpretation about 62% of the time, and 83% when the adjudicators' abstentions are excluded. The adjudicators were language models, not humans. It is not a statement about any person's or company's honesty, and 'insufficient_evidence' is not a low score. Unknown is not bad."}},"type":"object","required":["as_of_block","sellers_indexed","methodology_version"],"title":"HealthResponse"},"Interpretation":{"properties":{"signaling_likelihood":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.0},{"type":"null"}],"title":"Signaling Likelihood","description":"0 to 1. Higher means more signaling-like. Null when there is not enough evidence to judge — null is not zero and is not a clean bill of health."},"judged":{"type":"boolean","title":"Judged","description":"False when the evidence was below the floor for a judgement."},"rules":{"items":{"$ref":"#/components/schemas/RuleContribution"},"type":"array","title":"Rules","description":"Every rule, whether it fired and why. Nothing hidden in a model."},"methodology_version":{"type":"string","title":"Methodology Version"}},"type":"object","required":["judged","rules","methodology_version"],"title":"Interpretation","description":"The classifier's reading. Opinion, not fact."},"LabelProvenance":{"properties":{"label_type":{"type":"string","title":"Label Type","description":"e.g. operator_group"},"label_value":{"type":"string","title":"Label Value","description":"e.g. cluster:61"},"entity_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Entity Id","description":"The operator group id, when the label names one; use /v1/entity/{id}."},"method":{"type":"string","title":"Method"},"confidence":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Confidence"},"evidence":{"type":"string","title":"Evidence"}},"type":"object","required":["label_type","label_value","method","confidence","evidence"],"title":"LabelProvenance"},"MethodologyResponse":{"properties":{"version":{"type":"string","title":"Version"},"summary":{"type":"string","title":"Summary"},"signals":{"items":{"type":"string"},"type":"array","title":"Signals"},"not_signals":{"items":{"type":"string"},"type":"array","title":"Not Signals"},"agreement_with_blinded_readers":{"type":"number","title":"Agreement With Blinded Readers"},"adjudication_caveats":{"items":{"type":"string"},"type":"array","title":"Adjudication Caveats"},"limitation":{"type":"string","title":"Limitation"},"disclaimer":{"type":"string","title":"Disclaimer","default":"This score is not independently validated. It summarises observed payment evidence and a rules-based interpretation of it; blinded adjudication agreed with the interpretation about 62% of the time, and 83% when the adjudicators' abstentions are excluded. The adjudicators were language models, not humans. It is not a statement about any person's or company's honesty, and 'insufficient_evidence' is not a low score. Unknown is not bad."}},"type":"object","required":["version","summary","signals","not_signals","agreement_with_blinded_readers","adjudication_caveats","limitation"],"title":"MethodologyResponse"},"NotFoundResponse":{"properties":{"found":{"type":"boolean","const":false,"title":"Found","default":false},"identifier":{"type":"string","title":"Identifier"},"reason":{"type":"string","title":"Reason","default":"no evidence for this identifier in the index"},"note":{"type":"string","title":"Note","default":"This is not a low score. An address with no activity is unknown, not bad."},"role_observed":{"anyOf":[{"type":"string","enum":["payer","relayer","payer_and_relayer"]},{"type":"null"}],"title":"Role Observed"},"payer_settlements":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Payer Settlements","description":"Settlements in which this address paid. Present when the address is known."},"seller_settlements":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Seller Settlements","description":"Settlements in which this address sold. Zero when only the payer role is known."},"disclaimer":{"type":"string","title":"Disclaimer","default":"This score is not independently validated. It summarises observed payment evidence and a rules-based interpretation of it; blinded adjudication agreed with the interpretation about 62% of the time, and 83% when the adjudicators' abstentions are excluded. The adjudicators were language models, not humans. It is not a statement about any person's or company's honesty, and 'insufficient_evidence' is not a low score. Unknown is not bad."}},"type":"object","required":["identifier"],"title":"NotFoundResponse","description":"No *seller-side* score. Explicitly not a score of zero.\n\n`role_observed` distinguishes an address the index has never seen from one it\nknows well as a payer but has never seen sell (F13). Both are `found: false`\nbecause the product scores sellers, but only the first is \"unknown\"."},"RuleContribution":{"properties":{"rule":{"type":"string","title":"Rule"},"fired":{"type":"boolean","title":"Fired"},"contribution":{"type":"number","title":"Contribution"},"detail":{"type":"string","title":"Detail"}},"type":"object","required":["rule","fired","contribution","detail"],"title":"RuleContribution"},"ScoreResponse":{"properties":{"found":{"type":"boolean","const":true,"title":"Found","default":true},"identifier":{"type":"string","title":"Identifier"},"status":{"type":"string","enum":["scored","insufficient_evidence"],"title":"Status"},"score":{"anyOf":[{"type":"number","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Score","description":"Null when evidence is below the minimum. Never zero for unknown."},"confidence_band":{"type":"string","enum":["low","medium","high"],"title":"Confidence Band"},"evidence":{"$ref":"#/components/schemas/Evidence"},"interpretation":{"$ref":"#/components/schemas/Interpretation"},"label_provenance":{"items":{"$ref":"#/components/schemas/LabelProvenance"},"type":"array","title":"Label Provenance"},"methodology_version":{"type":"string","title":"Methodology Version"},"disclaimer":{"type":"string","title":"Disclaimer","default":"This score is not independently validated. It summarises observed payment evidence and a rules-based interpretation of it; blinded adjudication agreed with the interpretation about 62% of the time, and 83% when the adjudicators' abstentions are excluded. The adjudicators were language models, not humans. It is not a statement about any person's or company's honesty, and 'insufficient_evidence' is not a low score. Unknown is not bad."}},"type":"object","required":["identifier","status","confidence_band","evidence","interpretation","methodology_version"],"title":"ScoreResponse","description":"A found counterparty. `score` is null exactly when status is insufficient_evidence."},"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"},"Window":{"properties":{"start_block":{"type":"integer","title":"Start Block"},"end_block":{"type":"integer","title":"End Block"},"start_time":{"type":"integer","title":"Start Time"},"end_time":{"type":"integer","title":"End Time"}},"type":"object","required":["start_block","end_block","start_time","end_time"],"title":"Window"}}}}