{"slug":"json-repair-api-9ybv-onrender-com-trust-x402-authorize-609fea","title":"Authorize an autonomous agent's real x402 merchant challenge against an operator","host":"json-repair-api-9ybv.onrender.com","method":"POST","resource":"https://json-repair-api-9ybv.onrender.com/trust/x402/authorize","category":"commerce","description":"Authorize an autonomous agent's real x402 merchant challenge against an operator-issued policy. Payment for this trust check settles only when the authorization handler succeeds.","price_listed":0.001,"price_asked":0.001,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":246,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"category":"ai-infrastructure","merchant_id":"merchant.example","payer":"0x2222222222222222222222222222222222222222","payment_required":{"accepts":[{"amount":"10000","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","maxTimeoutSeconds":300,"network":"eip155:8453","payTo":"0x1111111111111111111111111111111111111111","scheme":"exact"}],"resource":{"description":"Merchant paid resource","mimeType":"application/json","url":"https://merchant.example/api/resource"},"x402Version":2},"policy_token":"signed-agent-policy-token","request":{"body":{"task":"example"},"method":"POST","url":"https://merchant.example/api/resource"}},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"properties":{"ap2_evidence":{"description":"Optional AP2 v0.2 mandate evidence and challenge token for native verification.","type":"object"},"category":{"description":"Purchase category used by the operator policy.","type":"string"},"merchant_id":{"description":"Stable merchant identifier used by the operator policy.","type":"string"},"nonce":{"type":"string"},"payer":{"description":"EVM address that would sign/pay the merchant transaction.","type":"string"},"payment_required":{"description":"The merchant's real x402 PAYMENT-REQUIRED payload, as decoded JSON or its encoded string.","oneOf":[{"type":"object"},{"type":"string"}]},"policy_token":{"description":"Operator-issued signed policy credential for the buying agent.","type":"string"},"request":{"description":"Exact HTTP request the agent intends to make after authorization.","properties":{"body":{},"method":{"type":"string"},"url":{"type":"string"}},"required":["method","url"],"type":"object"}},"required":["policy_token","payment_required","merchant_id","category","payer","request"]},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-10-18","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.001,"price_match":true,"latency_ms":246,"error":null}],"description_full":"Authorize an autonomous agent's real x402 merchant challenge against an operator-issued policy. Payment for this trust check settles only when the authorization handler succeeds.","last_updated":"2026-10-18T17:57:09.602Z","schemes":["exact"]}