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.
HTTPS URL of the x402 endpoint to validate. Must use the https:// scheme.
12 - 2048^https://.*$"https://api.example.com/weather/forecast"
The HTTP method used to probe the endpoint. Only GET and POST are supported; other verbs are intentionally rejected because x402 resources are expected to respond to these methods.
GET, POST "GET"
Response
Successfully validated the x402 endpoint.
Response from validating an x402 endpoint's bazaar-discovery configuration.
Whether the endpoint is valid: all preflight checks passed and the facilitator would index the resource.
true
The HTTP status code returned by the endpoint, or null if the endpoint was not reachable.
402
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
All check results in run order. Well-known check names are reachable, returns_402, has_bazaar_extension, and parse. Additional checks may be added in future versions.
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
The extensions.bazaar block from the endpoint's discovery metadata, or null if the bazaar extension was absent or the endpoint was not reachable. Lets sellers verify the discovery configuration their endpoint is advertising.
{
"info": {
"input": { "type": "http", "method": "GET" }
},
"schema": {}
}The simulated facilitator decision for the x402 endpoint.
{ "outcome": "accepted" }Bazaar index status for the endpoint, or null if the endpoint is not yet indexed. Present on every response regardless of simulation outcome.
{
"active": true,
"lastCrawledAt": "2026-06-01T12:00:00Z",
"quality": {
"l30DaysTotalCalls": 42,
"l30DaysUniquePayers": 15,
"lastCalledAt": "2026-06-01T12:00:00Z"
}
}