x402 Doctor
Is this x402/MPP API safe to pay? $0.001 preflight, fixes, a $0.25 test purchase. Free quick check.
사용해야 할까요
품질 및 안전성
도구 정의와 프로토콜 준수에 대한 자동 분석을 기반으로 합니다.
컨텍스트 비용
이는 서버의 도구가 모델의 컨텍스트에 로드될 때마다 소비되는 대략적인 토큰 수입니다. 수치가 높을수록 다른 작업에 사용할 수 있는 주의가 줄어듭니다.
설치
원클릭 설치
`claude_desktop_config.json` 파일에 다음을 추가하세요:
{
"mcpServers": {
"x402-doctor": {
"url": "https://x402-doctor.onrender.com/mcp"
}
}
}원격 엔드포인트
https://x402-doctor.onrender.com/mcpstreamable-httphttps://x402-doctor.fizzl.eu/mcpstreamable-http할 수 있는 일
도구 목록
도구 (16)
🟢x402_quick_check(url, body)
Free: does this x402 endpoint work for a paying agent? Returns pass, warn or fail with the number of problems and the top three. Limited to 10 calls per hour.
입력 스키마
{
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "The x402 endpoint (public http(s) URL), e.g. https://api.example.com/paid"
},
"body": {
"description": "Example JSON request body, for a POST route that checks its input before the 402 (implies POST). Without it, {} is sent and the requestBody example in the endpoint's /openapi.json is tried.",
"type": "string",
"maxLength": 16384
}
},
"required": [
"url"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}출력 스키마
{
"type": "object",
"properties": {
"url": {
"type": "string"
},
"overall": {
"type": "string",
"description": "pass, warn or fail"
},
"failures": {
"type": "number"
},
"warnings": {
"type": "number"
},
"top_problems": {
"type": "array",
"items": {
"type": "string"
},
"description": "Up to three problems, failures first"
},
"next": {
"type": "string"
}
},
"required": [
"overall",
"failures",
"warnings",
"top_problems"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": {}
}🟢x402_payee_check(url, body)
Free: is every payTo of this x402 endpoint really its seller's? Per payment option, one outcome of the draft ERC "x402 Payee Verification for ERC-8004 Agents": verified-wallet (the payTo is the agent wallet registered in the ERC-8004 Identity Registry), verified-delegation (the agent wallet signed an EIP-712 payee delegation for it), mismatch, invalid-delegation, endpoint-unlisted, owner-only (payTo is the identity's owner: never counted as verified), no-agent-wallet or not-read. The identity comes from the 402's extra.erc8004 or the seller's /.well-known/agent-registration.json. When the seller's /.well-known/agent-card.json carries a Concordium badge, the result also has concordium: the agent in Concordium's Agent Registry (CIS-8004; its owner is an identity-verified account) and per payTo verified-wallet, verified-external-key (a CIS-8 bound key), owner-only, mismatch, not-bound, revoked, card-mismatch, endpoint-unlisted or not-read. Never pays. Shares the free limit of 10 calls per hour.
입력 스키마
{
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "The x402 endpoint (public http(s) URL), e.g. https://api.example.com/paid"
},
"body": {
"description": "Example JSON request body, for a POST route that checks its input before the 402 (implies POST). Without it, {} is sent and the requestBody example in the endpoint's /openapi.json is tried.",
"type": "string",
"maxLength": 16384
}
},
"required": [
"url"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}출력 스키마
{
"type": "object",
"properties": {
"url": {
"type": "string"
},
"status": {
"type": "string",
"description": "pass: every payTo is bound to the seller's agent; warn: some are not; info: could not confirm; none: no ERC-8004 identity found"
},
"summary": {
"type": "string"
},
"agent": {
"description": "The identity checked: registry, agentId, block read, agent wallet",
"anyOf": [
{
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
{
"type": "null"
}
]
},
"payees": {
"type": "array",
"items": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"description": "Per payment option: network, payTo, asset, outcome (verified-wallet, verified-delegation, mismatch, invalid-delegation, endpoint-unlisted, owner-only, no-agent-wallet, not-read) and reason"
},
"fix": {
"type": [
"string",
"null"
]
},
"concordium": {
"description": "Verified by Concordium, when the seller's Agent Card carries a Concordium badge: status, summary, agent (badge, network, owner, agent wallet) and payees (outcome per payment option: verified-wallet, verified-external-key, owner-only, no-agent-wallet, mismatch, not-bound, revoked, card-mismatch, endpoint-unlisted, not-read)",
"anyOf": [
{
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
{
"type": "null"
}
]
}
},
"required": [
"status",
"summary",
"payees"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": {}
}🟢check_payment_proof(header)
Free: after paying an x402 endpoint, pass the PAYMENT-RESPONSE header it returned (X-PAYMENT-RESPONSE in v1). Returns the transaction, network and payer it names, whether that transaction exists on-chain and succeeded, and which USDC moved from whom to whom, with an explorer link. Read-only. Limited to 10 calls per hour.
입력 스키마
{
"type": "object",
"properties": {
"header": {
"type": "string",
"minLength": 8,
"maxLength": 20000,
"description": "The PAYMENT-RESPONSE header value (base64 JSON)"
}
},
"required": [
"header"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}출력 스키마
{
"type": "object",
"properties": {
"overall": {
"type": "string",
"description": "pass, warn or fail"
},
"decoded": {
"description": "Transaction, network and payer named in the header",
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"explorer": {
"description": "Explorer link for the transaction",
"type": [
"string",
"null"
]
},
"onchain": {
"description": "Whether the transaction exists and succeeded, and the USDC transfers",
"anyOf": [
{
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
{
"type": "null"
}
]
},
"checks": {
"type": "array",
"items": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
}
}
},
"required": [
"overall"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": {}
}🟢concordium_badge_check(badge)
Free: look up an agent in Concordium's Agent Registry (CIS-8004) by its badge, the CIS-2 token address an Agent Card carries, or by the longer Agent ID that Concordium's registry app shows. Returns whether the badge is valid (Active, the card at agent_uri hashes to the metadata_hash on chain, and that card carries this badge), the owner account (tied to a verified identity), the agent wallet, the origins the card lists, and the CIS-8 key the agent binds with the address it stands for and whether the CIS-8 registry still holds it. Read-only. Shares the free limit of 10 calls per hour.
입력 스키마
{
"type": "object",
"properties": {
"badge": {
"type": "string",
"minLength": 8,
"maxLength": 120,
"description": "The badge (e.g. Mf22oVsbu3vf4Jb1cga49), its ccd:<genesis>/cis-2:<address> form, or the registry app's Agent ID"
}
},
"required": [
"badge"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}출력 스키마
{
"type": "object",
"properties": {
"badge": {
"type": "string",
"description": "The badge as its short CIS-2 token address (an Agent ID is turned into it)"
},
"valid": {
"type": "boolean",
"description": "Active, the card at agent_uri hashes to the metadata_hash on chain, and the card carries this badge"
},
"issues": {
"type": "array",
"items": {
"type": "string"
},
"description": "Why it is not valid; empty when valid"
},
"network": {
"description": "mainnet or testnet, from the badge's own registry contract",
"type": [
"string",
"null"
]
},
"tokenId": {
"type": [
"string",
"number",
"null"
]
},
"owner": {
"description": "The owner account: a Concordium account, tied to a verified identity at the protocol level",
"type": [
"string",
"null"
]
},
"agentWallet": {
"type": [
"string",
"null"
]
},
"status": {
"type": [
"string",
"null"
]
},
"agentUri": {
"type": [
"string",
"null"
]
},
"card": {
"description": "match, mismatch or unread",
"type": [
"string",
"null"
]
},
"card_origins": {
"description": "The origins the anchored card lists as the agent's own",
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "null"
}
]
},
"external_key": {
"description": "The key the agent binds with CIS-8: namespace, key_type, the address it stands for, and still_bound (the CIS-8 registry still holds it for the owner)",
"anyOf": [
{
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
{
"type": "null"
}
]
}
},
"required": [
"badge",
"valid",
"issues"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": {}
}🟢x402_facilitator_status(network)
Free: which public x402 facilitators (PayAI, x402.org, GoPlausible, x402.rs, Dexter, Daydreams, Semantic Pay and more) answer right now, and which networks and schemes each one settles. Give a network (CAIP-2 like eip155:8453, or an x402 v1 name like base, solana, xlayer) to get only the facilitators that settle it now. Read from each facilitator's GET /supported at most every 5 minutes; never verifies or settles anything. Use it to pick a facilitator for a new paid endpoint, or to see why payments on a network fail.
입력 스키마
{
"type": "object",
"properties": {
"network": {
"description": "A network to filter on, e.g. eip155:196 or xlayer",
"type": "string",
"pattern": "^[a-z0-9-]{2,32}(:[-_a-zA-Z0-9/+=]{1,64})?$"
}
},
"$schema": "http://json-schema.org/draft-07/schema#"
}출력 스키마
{
"type": "object",
"properties": {
"checked_at": {
"type": "string"
},
"up": {
"type": "number",
"description": "Facilitators that answered GET /supported with at least one payment kind"
},
"down": {
"type": "number"
},
"network": {
"description": "With a network asked for: its CAIP-2 id, name, and facilitators_up (the ids that settle it right now)",
"anyOf": [
{
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
{
"type": "null"
}
]
},
"facilitators": {
"type": "array",
"items": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"description": "Per facilitator: id, name, url, state (up, slow, down, not_checked), note, networks (CAIP-2, testnet flag, schemes), schemes, x402_versions, recent checks, last_up"
}
},
"required": [
"checked_at",
"up",
"down",
"facilitators"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": {}
}🟢x402_trust_record(url)
Free: the daily track record of a paid x402 or MPP endpoint from the x402 Trust Index: on how many of the last 30 scanned days an agent could pay it, the latest verdict and reasons, price and networks. found: false when it is not in the index. Limited to 10 calls per hour.
입력 스키마
{
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "The x402 endpoint (public http(s) URL), e.g. https://api.example.com/paid"
}
},
"required": [
"url"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}출력 스키마
{
"type": "object",
"properties": {
"url": {
"type": "string"
},
"found": {
"type": "boolean",
"description": "false: not in the Trust Index (see how_to_list)"
},
"days_checked": {
"type": [
"number",
"null"
]
},
"days_payable": {
"description": "Days the daily scan found it payable (go or caution)",
"type": [
"number",
"null"
]
},
"payable_ratio": {
"type": [
"number",
"null"
]
},
"last": {
"description": "Latest day: g go, c caution, n no_go, x unreachable",
"type": [
"string",
"null"
]
},
"last_scan": {
"description": "The latest verdict, reasons, price and networks",
"anyOf": [
{
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
{
"type": "null"
}
]
},
"submitted": {
"description": "Added by its seller, not listed in a registry",
"type": [
"boolean",
"null"
]
},
"how_to_list": {
"type": [
"string",
"null"
]
}
},
"required": [
"url",
"found"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": {}
}🟡x402_trust_add(url)
Free: add your own paid endpoint to the x402 Trust Index when no registry lists it yet (CDP Bazaar, Circle's Agent Marketplace, GoPlausible, XRPL AI Hub, nohumans.directory, PayAPI Market, HIVE402, MPP directory). x402 Doctor first checks that it answers 402 with a payment challenge (x402, MPP or L402); the next daily scan starts its record, which buyers' agents see before they pay. At most 25 endpoints per host. Limited to 10 calls per hour.
입력 스키마
{
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "The x402 endpoint (public http(s) URL), e.g. https://api.example.com/paid"
}
},
"required": [
"url"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}출력 스키마
{
"type": "object",
"properties": {
"ok": {
"type": "boolean",
"description": "true: added, already added, or already listed"
},
"status": {
"description": "added, submitted (already added) or listed (a registry lists it)",
"type": [
"string",
"null"
]
},
"url": {
"type": [
"string",
"null"
]
},
"verdict": {
"description": "The pre-payment verdict when it was added",
"type": [
"string",
"null"
]
},
"message": {
"type": [
"string",
"null"
]
},
"error": {
"description": "Why it was not added",
"type": [
"string",
"null"
]
},
"check": {
"description": "The free web check for this URL",
"type": [
"string",
"null"
]
}
},
"required": [
"ok"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": {}
}🟢verify_receipt(response, route, input)
Free: check the signed receipt that every paid x402 Doctor answer carries (diagnose, preflight, batch, deep, fix, delivery check; HTTP or MCP), for example to prove later which verdict you got before paying an endpoint. Pass the whole answer as response. Returns valid, the signer and whether it is an x402 Doctor signer; with route and input also whether the receipt is for exactly that request. A changed verdict or receipt fails. Read-only, nothing is stored. Same as POST /api/v1/verify.
입력 스키마
{
"type": "object",
"properties": {
"response": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {},
"description": "The whole paid answer as you received it, including its receipt"
},
"route": {
"description": "The request it answered: \"mcp <tool name>\" for an MCP answer (e.g. \"mcp x402_preflight\"), \"GET /api/v1/preflight\" for an HTTP one",
"type": "string"
},
"input": {
"description": "The tool arguments you sent (MCP), or the query parameters as strings (HTTP)",
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
}
},
"required": [
"response"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}출력 스키마
{
"type": "object",
"properties": {
"valid": {
"type": "boolean",
"description": "true: signed by an x402 Doctor signer, unchanged, and (when route and input are given) for that request"
},
"reason": {
"description": "Why it is not valid",
"type": "string"
},
"signer": {
"description": "The address that signed it",
"type": "string"
},
"known_signer": {
"description": "Whether that address is a current, retired or certified x402 Doctor signer",
"type": [
"boolean",
"null"
]
},
"signer_status": {
"description": "current, retired or certified",
"type": [
"string",
"null"
]
},
"input_matches": {
"description": "Only with route and input: whether the receipt is for exactly that request",
"type": "boolean"
}
},
"required": [
"valid"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": {}
}🟢x402_diagnose(url, body)
Paid ($0.01 via x402 in USDC on Base, Solana, Monad, Polygon, Arbitrum, Avalanche, Algorand, Stellar or NEAR, or in RLUSD on the XRP Ledger): diagnose an x402 endpoint the way a paying agent would, without paying it: the 402 challenge format, every accepts[] option, the resource URL, Solana settlement readiness, which wallets can pay, Bazaar/OpenAPI discovery and the browser paywall. Returns every check with pass/warn/fail and a fix hint. For the endpoint's owner or a developer debugging it. Same as GET /api/v1/diagnose. The answer carries a signed receipt (EIP-191, bound to your arguments) that proves later which verdict you got.
입력 스키마
{
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "The x402 endpoint (public http(s) URL), e.g. https://api.example.com/paid"
},
"body": {
"description": "Example JSON request body, for a POST route that checks its input before the 402 (implies POST). Without it, {} is sent and the requestBody example in the endpoint's /openapi.json is tried.",
"type": "string",
"maxLength": 16384
}
},
"required": [
"url"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}출력 스키마
{
"type": "object",
"properties": {
"url": {
"type": [
"string",
"null"
]
},
"overall": {
"description": "pass, warn or fail (absent on the payment requirement)",
"anyOf": [
{
"type": "string",
"description": "pass, warn or fail"
},
{
"type": "null"
}
]
},
"checks": {
"description": "Every check with its status, message and hint",
"anyOf": [
{
"type": "array",
"items": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
}
},
{
"type": "null"
}
]
},
"receipt": {
"description": "Signed receipt (EIP-191) binding the answer to your arguments",
"anyOf": [
{
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
{
"type": "null"
}
]
},
"accepts": {
"description": "Only on an unpaid call: the x402 payment options",
"anyOf": [
{
"type": "array",
"items": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
}
},
{
"type": "null"
}
]
}
},
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": {}
}🟢x402_preflight(url, body, max_usd, network, client, ...)
Paid ($0.001 via x402 in USDC on Base, Solana, Monad, Polygon, Arbitrum, Avalanche, Algorand, Stellar or NEAR, or in RLUSD on the XRP Ledger): call this before your agent pays an x402 endpoint. Returns go, caution or no_go, the recommended payment option, and why: payment would fail, the seller's payout address is on the OFAC SDN sanctions list, over your budget (max_usd), price above what is advertised, not HTTPS, unknown token, its 30-day track record. Never pays the endpoint. The buyer's check for one call. Same as GET /api/v1/preflight. The answer carries a signed receipt (EIP-191, bound to your arguments) that proves later which verdict you got.
입력 스키마
{
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "The x402 endpoint (public http(s) URL), e.g. https://api.example.com/paid"
},
"body": {
"description": "Example JSON request body, for a POST route that checks its input before the 402 (implies POST). Without it, {} is sent and the requestBody example in the endpoint's /openapi.json is tried.",
"type": "string",
"maxLength": 16384
},
"max_usd": {
"description": "Your budget per call in USD, e.g. 0.05",
"type": "number",
"exclusiveMinimum": 0
},
"network": {
"description": "CAIP-2 network you want to pay on, e.g. eip155:8453",
"type": "string"
},
"client": {
"description": "Set to gateway when your agent pays with Circle's Gateway client (@circle-fin/x402-batching) from a Gateway balance: Gateway-only endpoints are then not a caution, and Gateway options are recommended first.",
"type": "string",
"enum": [
"gateway"
]
},
"pay_to": {
"description": "The payout address (payTo) your agent was asked to pay, from the 402 it got. x402 Doctor screens that address too (OFAC SDN) and says caution (payto_not_shown) when the seller showed x402 Doctor another one: a seller can show a checker one 402 and buyers another.",
"type": "string",
"pattern": "^[A-Za-z0-9:._-]{20,128}$"
}
},
"required": [
"url"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}출력 스키마
{
"type": "object",
"properties": {
"url": {
"type": [
"string",
"null"
]
},
"verdict": {
"anyOf": [
{
"type": "string",
"description": "go: pay; caution: stop and ask your user first, saying why; no_go: do not pay"
},
{
"type": "null"
}
]
},
"safe_to_pay": {
"type": [
"boolean",
"null"
]
},
"next_step": {
"anyOf": [
{
"type": "string",
"description": "pay, ask_user (a caution: tell your user why and pay only if they accept) or do_not_pay"
},
{
"type": "null"
}
]
},
"summary": {
"description": "One line, e.g. OK to pay: $0.02 on Base.",
"type": [
"string",
"null"
]
},
"options": {
"description": "Each payment option with its network, price and problems",
"anyOf": [
{
"type": "array",
"items": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
}
},
{
"type": "null"
}
]
},
"reasons": {
"anyOf": [
{
"type": "array",
"items": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
}
},
{
"type": "null"
}
]
},
"receipt": {
"description": "Signed receipt (EIP-191) binding the answer to your arguments",
"anyOf": [
{
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
{
"type": "null"
}
]
},
"accepts": {
"description": "Only on an unpaid call: the x402 payment options",
"anyOf": [
{
"type": "array",
"items": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
}
},
{
"type": "null"
}
]
}
},
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": {}
}🟢x402_fix(url, body, stack)
Paid ($0.05 via x402 in USDC on Base, Solana, Monad, Polygon, Arbitrum, Avalanche, Algorand, Stellar or NEAR, or in RLUSD on the XRP Ledger): diagnoses your x402 endpoint, then returns per problem the concrete change as code for your stack (express, next, hono, node, python, generic), filled in with your own payTo, amount, network and route. A working endpoint gets improvements too (ERC-8004 identity, Base Builder Code, x402scan ownership proof, skill.md, browser paywall, Bazaar output schema), each with code. For the endpoint's owner; the diagnosis is included. Same as GET /api/v1/fix. The answer carries a signed receipt (EIP-191, bound to your arguments) that proves later which verdict you got.
입력 스키마
{
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "The x402 endpoint (public http(s) URL), e.g. https://api.example.com/paid"
},
"body": {
"description": "Example JSON request body, for a POST route that checks its input before the 402 (implies POST). Without it, {} is sent and the requestBody example in the endpoint's /openapi.json is tried.",
"type": "string",
"maxLength": 16384
},
"stack": {
"description": "Your server stack (default: detected)",
"type": "string",
"enum": [
"express",
"next",
"hono",
"node",
"python",
"generic"
]
}
},
"required": [
"url"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}출력 스키마
{
"type": "object",
"properties": {
"url": {
"type": [
"string",
"null"
]
},
"overall": {
"anyOf": [
{
"type": "string",
"description": "pass, warn or fail"
},
{
"type": "null"
}
]
},
"summary": {
"type": [
"string",
"null"
]
},
"fixes": {
"description": "Each problem with steps and code for your stack",
"anyOf": [
{
"type": "array",
"items": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
}
},
{
"type": "null"
}
]
},
"improvements": {
"description": "Not wrong, but makes the service easier to find, trust or pay: steps and code",
"anyOf": [
{
"type": "array",
"items": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
}
},
{
"type": "null"
}
]
},
"unfixed": {
"anyOf": [
{
"type": "array",
"items": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
}
},
{
"type": "null"
}
]
},
"receipt": {
"description": "Signed receipt (EIP-191) binding the answer to your arguments",
"anyOf": [
{
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
{
"type": "null"
}
]
},
"accepts": {
"description": "Only on an unpaid call: the x402 payment options",
"anyOf": [
{
"type": "array",
"items": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
}
},
{
"type": "null"
}
]
}
},
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": {}
}🟢x402_preflight_batch(urls, max_usd, network, client)
Paid ($0.005 via x402 in USDC on Base, Solana, Monad, Polygon, Arbitrum, Avalanche, Algorand, Stellar or NEAR, or in RLUSD on the XRP Ledger): the pre-payment check for up to 10 x402 endpoints at once. Per endpoint go, caution or no_go, the recommended payment option and why, plus totals. For marketplaces and agents that weigh several services. Never pays the endpoints. Same as GET /api/v1/preflight/batch. The answer carries a signed receipt (EIP-191, bound to your arguments) that proves later which verdict you got.
입력 스키마
{
"type": "object",
"properties": {
"urls": {
"minItems": 1,
"maxItems": 10,
"type": "array",
"items": {
"type": "string"
},
"description": "The x402 endpoints to check (public http(s) URLs), at most 10"
},
"max_usd": {
"description": "Your budget per call in USD, e.g. 0.05",
"type": "number",
"exclusiveMinimum": 0
},
"network": {
"description": "CAIP-2 network you want to pay on, e.g. eip155:8453",
"type": "string"
},
"client": {
"description": "Set to gateway when your agent pays with Circle's Gateway client (@circle-fin/x402-batching) from a Gateway balance: Gateway-only endpoints are then not a caution, and Gateway options are recommended first.",
"type": "string",
"enum": [
"gateway"
]
}
},
"required": [
"urls"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}출력 스키마
{
"type": "object",
"properties": {
"count": {
"type": [
"number",
"null"
]
},
"counts": {
"description": "How many go, caution, no_go and unknown",
"anyOf": [
{
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "number"
}
},
{
"type": "null"
}
]
},
"results": {
"description": "One preflight per endpoint",
"anyOf": [
{
"type": "array",
"items": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
}
},
{
"type": "null"
}
]
},
"receipt": {
"description": "Signed receipt (EIP-191) binding the answer to your arguments",
"anyOf": [
{
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
{
"type": "null"
}
]
},
"accepts": {
"description": "Only on an unpaid call: the x402 payment options",
"anyOf": [
{
"type": "array",
"items": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
}
},
{
"type": "null"
}
]
}
},
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": {}
}🟢x402_preflight_deep(url, body, max_usd, network, client)
Paid ($0.01 via x402 in USDC on Base, Solana, Monad, Polygon, Arbitrum, Avalanche, Algorand, Stellar or NEAR, or in RLUSD on the XRP Ledger): for expensive calls. The pre-payment verdict (go, caution or no_go) plus the full diagnosis, the 30-day history per day, how reliable the seller's other endpoints are and whether the endpoint moved domains. Never pays the endpoint. Worth it before a payment above about $1. Same as GET /api/v1/preflight/deep. The answer carries a signed receipt (EIP-191, bound to your arguments) that proves later which verdict you got.
입력 스키마
{
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "The x402 endpoint (public http(s) URL), e.g. https://api.example.com/paid"
},
"body": {
"description": "Example JSON request body, for a POST route that checks its input before the 402 (implies POST). Without it, {} is sent and the requestBody example in the endpoint's /openapi.json is tried.",
"type": "string",
"maxLength": 16384
},
"max_usd": {
"description": "Your budget per call in USD, e.g. 0.5",
"type": "number",
"exclusiveMinimum": 0
},
"network": {
"description": "CAIP-2 network you want to pay on, e.g. eip155:8453",
"type": "string"
},
"client": {
"description": "Set to gateway when your agent pays with Circle's Gateway client (@circle-fin/x402-batching) from a Gateway balance: Gateway-only endpoints are then not a caution, and Gateway options are recommended first.",
"type": "string",
"enum": [
"gateway"
]
}
},
"required": [
"url"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}출력 스키마
{
"type": "object",
"properties": {
"url": {
"type": [
"string",
"null"
]
},
"verdict": {
"anyOf": [
{
"type": "string",
"description": "go: pay; caution: stop and ask your user first, saying why; no_go: do not pay"
},
{
"type": "null"
}
]
},
"safe_to_pay": {
"type": [
"boolean",
"null"
]
},
"next_step": {
"anyOf": [
{
"type": "string",
"description": "pay, ask_user (a caution: tell your user why and pay only if they accept) or do_not_pay"
},
{
"type": "null"
}
]
},
"summary": {
"type": [
"string",
"null"
]
},
"options": {
"anyOf": [
{
"type": "array",
"items": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
}
},
{
"type": "null"
}
]
},
"reasons": {
"anyOf": [
{
"type": "array",
"items": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
}
},
{
"type": "null"
}
]
},
"receipt": {
"description": "Signed receipt (EIP-191) binding the answer to your arguments",
"anyOf": [
{
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
{
"type": "null"
}
]
},
"accepts": {
"description": "Only on an unpaid call: the x402 payment options",
"anyOf": [
{
"type": "array",
"items": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
}
},
{
"type": "null"
}
]
}
},
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": {}
}🟢x402_delivery_check(url, method)
Paid ($0.25 via x402 in USDC on Base, Solana, Monad, Polygon, Arbitrum, Avalanche, Algorand, Stellar or NEAR, or in RLUSD on the XRP Ledger): not a reading but a purchase. x402 Doctor buys the endpoint once (at most $0.1, USDC on Base, from its own wallet) with the example input its listing declares, checks the answer against the declared output schema, has TypeSafe's Jev judge whether it is what was paid for, and measures the charge on chain. Answers with a job id at once; the result usually comes within minutes. The endpoint must get a "go" from the pre-payment check and be payable in USDC on Base; otherwise it is refused before payment. Same as GET /api/v1/delivery-check. The answer carries a signed receipt (EIP-191, bound to your arguments) that proves later which verdict you got.
입력 스키마
{
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "The x402 endpoint to buy once (https, someone else's, payable in USDC on Base)"
},
"method": {
"description": "HTTP method of the paid route (default: GET, then POST)",
"type": "string",
"enum": [
"GET",
"POST"
]
}
},
"required": [
"url"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}출력 스키마
{
"type": "object",
"properties": {
"id": {
"description": "The job id of this delivery check",
"type": [
"string",
"null"
]
},
"url": {
"type": [
"string",
"null"
]
},
"status": {
"description": "queued, then done",
"type": [
"string",
"null"
]
},
"endpoint_price_usd": {
"type": [
"number",
"null"
]
},
"status_url": {
"type": [
"string",
"null"
]
},
"receipt": {
"description": "Signed receipt (EIP-191) binding the answer to your arguments",
"anyOf": [
{
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
{
"type": "null"
}
]
},
"accepts": {
"description": "Only on an unpaid call: the x402 payment options",
"anyOf": [
{
"type": "array",
"items": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
}
},
{
"type": "null"
}
]
}
},
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": {}
}🟢x402_delivery_status(id)
Free: the status of a paid delivery check (GET /api/v1/delivery-check or the paid delivery-check tool), by its job id: awaiting_payment, queued or done, and once done the result: paid_and_delivered, the outcome, the charge measured on chain and the transaction.
입력 스키마
{
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^[a-z0-9]{10}$",
"description": "The job id the delivery check answered with"
}
},
"required": [
"id"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}출력 스키마
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"url": {
"type": [
"string",
"null"
]
},
"status": {
"type": "string",
"description": "awaiting_payment, queued or done"
},
"result": {
"description": "Once done: paid_and_delivered, result, charged_usd, transaction, cache (could a CDN serve the paid answer to callers who did not pay)",
"anyOf": [
{
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
{
"type": "null"
}
]
},
"status_url": {
"type": [
"string",
"null"
]
}
},
"required": [
"id",
"status"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": {}
}⚪feedback(type, message, endpoint, contact, payment)
Report a bug, a missing feature or anything else about this service, in a structured way. Free. A person reads every report; nothing is run or changed automatically.
입력 스키마
{
"type": "object",
"properties": {
"type": {
"description": "bug, feature (something missing) or other",
"type": "string",
"enum": [
"bug",
"feature",
"other"
]
},
"message": {
"type": "string",
"description": "What happened or what you need"
},
"endpoint": {
"description": "Optional: the route or tool it is about, e.g. /v1/token",
"type": "string"
},
"contact": {
"description": "Optional: how to reach you about it",
"type": "string"
},
"payment": {
"description": "Optional: the payment it is about, when a paid call went wrong: its transaction (with the network) or a receipt id",
"type": "object",
"properties": {
"tx": {
"description": "The transaction hash or signature, e.g. the settlement transaction from the pay answer",
"type": "string"
},
"network": {
"description": "Its network, e.g. eip155:8453 (Base), solana, xrpl:0",
"type": "string"
},
"receipt": {
"description": "A receipt id you were given for it",
"type": "string"
}
}
}
},
"required": [
"message"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}출력 스키마
{
"type": "object",
"properties": {
"received": {
"type": "boolean",
"description": "true: a person will read it"
},
"id": {
"type": "string",
"description": "Report id, to refer to it later"
},
"service": {
"type": "string"
},
"type": {
"type": "string"
},
"note": {
"type": "string"
}
},
"required": [
"received",
"id"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": {}
}커뮤니티
증거