{"slug":"xhagents-xyz-api-howto-create-x402-endpoint-a7b8e4","title":"Build an x402 paid endpoint that passes the validator, gets indexed and takes re","host":"xhagents.xyz","method":"POST","resource":"https://xhagents.xyz/api/howto/create-x402-endpoint","category":"other","description":"Build an x402 paid endpoint that passes the validator, gets indexed and takes real USDC. End-to-end recipe for turning any HTTP capability into an x402 endpoint that an unknown agent can find, pay for and consume: the payment gate, the verifier rules, per-route pricing, the concurrency traps, the ng","price_listed":0.75,"price_asked":0.75,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":1042,"reported_calls_30d":0,"reported_payers_30d":0,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"sop":"create-x402-endpoint"},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"properties":{"sop":{"type":"string"}},"required":[],"type":"object"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST","PUT","PATCH"],"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-09-27","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.75,"price_match":true,"latency_ms":1042,"error":null}],"description_full":"Build an x402 paid endpoint that passes the validator, gets indexed and takes real USDC. End-to-end recipe for turning any HTTP capability into an x402 endpoint that an unknown agent can find, pay for and consume: the payment gate, the verifier rules, per-route pricing, the concurrency traps, the nginx wiring, the discovery surface, plus the money-path bugs we only found when real USDC moved. Comes with the exact commands we run.","last_updated":"2026-09-27T15:34:43.431Z","schemes":["exact"]}