Skip to main content
The validate endpoint lets sellers and agents check that an x402 endpoint’s Bazaar-discovery configuration is correct before going live. CDP probes the seller’s URL live, runs a set of preflight checks, and reports whether the CDP Facilitator would index the resource for Bazaar discovery.
This endpoint is read-only: it performs no payment and does not index the resource. Use it as a pre-flight check while wiring up your route, and again any time you change your payment requirements or Bazaar extension.
No API key is required — this route is unauthenticated, like the discovery endpoints. For the full OpenAPI schema and status codes, see Validate x402 endpoint in the x402 Facilitator API Reference.

Request

Response

The response gives you the observed facts about your endpoint, the individual preflight check results, the facilitator’s simulated accept/reject decision, and — if your endpoint is already indexed — its current Bazaar index status.

Top-level fields

Preflight checks

Each entry in preflight reports one check. Well-known check names are reachable, returns_402, has_bazaar_extension, and parse — additional checks may be added in future versions, so handle unknown values gracefully.

Simulation

Index status

Present only when the endpoint is already indexed in the Bazaar.

How to use it

  1. Before going live — after wiring up your x402 middleware and Bazaar extension, call validate to confirm your endpoint returns 402, advertises a parseable extensions.bazaar block, and would be accepted.
  2. Inspect what you advertise — read paymentRequirements and bazaarExtension to verify the payment terms and discovery metadata your endpoint is actually serving match what you intended.
  3. Fix advisory findings to rank higher — advisory checks (like a missing output schema) do not block indexing but do affect quality ranking. Address them to improve discoverability.
A passing validate result confirms your endpoint is ready to be discovered, not that it is already in search. Indexing still requires at least one successful settlement through the CDP Facilitator — see When does my endpoint appear?.