---
title: "Run a live x402 endpoint readiness check before payment"
method: POST
path: "/api/agent/pay/v2"
tags: ["x402-endpoint-readiness", "live-endpoint-probe", "x402-validator", "x402-paid-api", "x402-service", "ai-agent-tool", "agent-payment-preflight", "payment-preflight", "verify-before-payment", "endpoint-verification", "http-402-validation", "can-pay", "base-usdc", "bazaar"]
---

# Run a live x402 endpoint readiness check before payment

`POST /api/agent/pay/v2`

Live x402 endpoint readiness check before payment. This x402 paid API verification service helps verify an x402 endpoint before an AI agent pays: probe one public paid API and inspect the HTTP 402 challenge, payTo address, price, Base USDC network and asset, manifest freshness, buyer budget, and spend policy. Returns ALLOW or DENY with reasons, readiness score, report ID, settlement metadata, and a settlement-backed SHA-256 evidence receipt. Run free can-pay and readiness checks first. Readiness evidence is not a safety guarantee.

## Request body

- object
  - `agent_policy` 'strict' | 'standard' | 'permissive' — Policy posture used to produce the allow or deny decision.
  - `endpoint` string, uri, required — Public x402 paid API URL to probe and verify before an autonomous agent pays.
  - `max_usdc` string — Optional maximum endpoint price allowed by the buyer policy.
  - `query` string — Optional task context for the payment decision. When omitted, Ontario performs a general live x402 endpoint readiness check.

## Response `200`

Paid live endpoint readiness decision and evidence receipt

## Other responses

- `402` — x402 v2 payment challenge

---

[API](https://skmtc.net/ontarioprotocol/apis/ontario-protocol-x402-api.md) · [All operations](https://skmtc.net/ontarioprotocol/apis/ontario-protocol-x402-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ontarioprotocol/ontario-protocol-x402-api/versions/54384a1c4bf3/schema)
