---
title: "Validate x402 endpoint"
method: POST
path: "/v2/x402/validate"
tags: ["x402 Facilitator"]
---

# Validate x402 endpoint

`POST /v2/x402/validate`

## Request

- Base URL: `https://api.cdp.coinbase.com/platform`
- URL: `https://api.cdp.coinbase.com/platform/v2/x402/validate`
- Auth: HTTP none

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.

## Request body

- X402ValidateRequest: Request to validate an x402 endpoint's bazaar-discovery configuration.
  - `resource` string, uri, required: HTTPS URL of the x402 endpoint to validate. Must use the `https://` scheme.
  - `method` 'GET' | 'POST': 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.

## Response `200`

Successfully validated the x402 endpoint.

- X402ValidateResponse: Response from validating an x402 endpoint's bazaar-discovery configuration.
  - `valid` boolean, required: Whether the endpoint is valid: all preflight checks passed and the facilitator would index the resource.
  - `statusCode` integer, nullable, required: The HTTP status code returned by the endpoint, or `null` if the endpoint was not reachable.
  - `x402Version` integer, nullable, required: 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.
  - `preflight` X402ValidateCheck[], required: 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.
    - `check` 'reachable' | 'returns_402' | 'has_bazaar_extension' | 'parse', required: The name of the preflight check. New values may be added in future versions; clients should handle unknown values gracefully.
    - `passed` boolean, required: Whether the check passed.
    - `detail` string, required: A human-readable explanation of the check result.
    - `expected` string: The value the check expected, when applicable.
    - `actual` string: The value the check observed, when applicable.
    - `severity` 'required' | 'advisory', required: Whether this check is a hard indexing requirement or a quality recommendation. A `required` check affects validity when it fails. An `advisory` check (for example, a missing output schema) is a suggestion to improve discoverability and does not make the endpoint invalid.
  - `paymentRequirements` union, required: 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.
    - intersection
      - [`X402V2PaymentRequirements`](https://skmtc.dev/coinbase/apis/coinbase-developer-platform-apis/revisions/06cb41a4fb57/schema?at=%2Fcomponents%2Fschemas%2Fx402V2PaymentRequirements)
    - intersection
      - [`X402V1PaymentRequirements`](https://skmtc.dev/coinbase/apis/coinbase-developer-platform-apis/revisions/06cb41a4fb57/schema?at=%2Fcomponents%2Fschemas%2Fx402V1PaymentRequirements)
  - `bazaarExtension` object, nullable, required: 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.
  - `simulation` X402ValidateSimulation, required: The simulated facilitator decision for the x402 endpoint.
    - `outcome` 'accepted' | 'rejected', required: The simulated facilitator outcome: `accepted` if the facilitator would index the resource, or `rejected` if it would reject it.
    - `rejectionReason` string: The reason the resource would be rejected, present only when `outcome` is `rejected`.
  - `index` X402ValidateIndex, nullable, required: Bazaar index status for the endpoint, or `null` if the endpoint is not yet indexed. Present on every response regardless of simulation outcome.
    - `active` boolean, required: Whether the indexed resource is active and served in discovery results.
    - `lastCrawledAt` string, date-time, nullable, required: When the endpoint was last crawled, or `null` if it has been indexed but not yet crawled.
    - `quality` X402ResourceQuality: Quality metrics for the indexed resource, present only when the endpoint has call history.
      - `l30DaysTotalCalls` integer: Total number of paid calls to a resource in the last 30 days.
      - `l30DaysUniquePayers` integer: Number of unique payers to a resource in the last 30 days.
      - `lastCalledAt` string, date-time: Timestamp of the most recent paid call to a resource.

## Other responses

- `400`: Invalid request.
- `500`: Internal server error.
- `502`: Bad gateway.
- `503`: Service unavailable.

## Changes

- **2026-12-01** `06cb41a4fb57`: 4 warning
  - added the new `policy_not_applicable` enum value to the `errorType` response property for the response status `400`
  - added the new `policy_not_applicable` enum value to the `errorType` response property for the response status `500`
  - added the new `policy_not_applicable` enum value to the `errorType` response property for the response status `502`
  - added the new `policy_not_applicable` enum value to the `errorType` response property for the response status `503`
- **2026-10-16** `ff3c1fdef902`: 5 warning
  - added the new `eip155:143` enum value to the `paymentRequirements/allOf[#/components/schemas/x402PaymentRequirements]/oneOf[subschema #1: x402V2PaymentRequirements]/network/allOf[#/components/schemas/X402V2Network]/` response property for the response status `200`
  - added the new `entity_not_configured_for_top_up` enum value to the `errorType` response property for the response status `400`
  - added the new `entity_not_configured_for_top_up` enum value to the `errorType` response property for the response status `500`
  - added the new `entity_not_configured_for_top_up` enum value to the `errorType` response property for the response status `502`
  - …1 more
- …earlier changes not shown

[Operation history](https://skmtc.dev/coinbase/apis/coinbase-developer-platform-apis/changes/v2/x402/validate/post.md)

---

[API](https://skmtc.dev/coinbase/apis/coinbase-developer-platform-apis.md) - [All operations](https://skmtc.dev/coinbase/apis/coinbase-developer-platform-apis/llms.txt) - [OpenAPI document](https://skmtc.dev/coinbase/apis/coinbase-developer-platform-apis/revisions/06cb41a4fb57?raw)
