x402
Paid API Pre-flight Check (x402)
Verify any paid API endpoint before your agent spends money. Checks reachability, SSL, response time, and validates the payment protocol handshake (L402, x402, MPP). Returns a proceed/caution/avoid recommendation with parsed payment details. Use this before calling any paid external API to avoid wasting funds on broken, misconfigured, or fraudulent endpoints.
get/x402/v2/paid-api-preflight
Request
- Base URL: https://api.strale.io
- URL: https://api.strale.io/x402/v2/paid-api-preflight
- Auth: none required
Query parameters
urlstring required
The paid API endpoint URL to check before paying
Response
Success
Example response
{
"url": "https://api.example.com/v1/data",
"issues": [],
"server": "nginx",
"ssl_valid": true,
"status_code": 402,
"is_reachable": true,
"recommendation": "proceed",
"payment_details": {
"amount": "1000000",
"scheme": "exact",
"network": "base-sepolia",
"has_pay_to": true,
"has_accepts": true
},
"payment_protocol": "x402",
"response_time_ms": 340,
"facilitator_reachable": true,
"payment_handshake_valid": true
}Changes
No recorded changes to this operation across all 1 revision of this API.