Validate x402 endpoint
Validates an x402 endpoint’s bazaar-discovery configuration by probing the seller’s URL live. Returns a uniform array of preflight check results (reachable, returns402, hasBazaarExtension, parse) and a simulated facilitator accept/reject decision so sellers and agents can confirm their endpoint is ready to be discovered before going live. This operation is read-only: it performs no payment and does not index the resource.
Body
Request to validate an x402 endpoint's bazaar-discovery configuration.
Response
Successfully validated the x402 endpoint.
Response from validating an x402 endpoint's bazaar-discovery configuration.
The x402 protocol version advertised by the endpoint, or null if it could not be determined. Intentionally a bare integer rather than the X402Version enum so the validator can surface unsupported or malformed version values returned by non-conforming endpoints.
2
The raw decoded payment requirements returned by the endpoint, or null if the endpoint was not reachable or did not return a parseable 402 payload. Lets sellers inspect exactly what their endpoint is advertising.
- x402V2PaymentRequirements
- x402V1PaymentRequirements