x402station.io API reference
7-day endpoint forensics report
Probe-history report for one URL: uptime, latency percentiles, status distribution, concentration, and deeper risk signals.
This HTML page is served by GET /api/v1/forensics. The paid API operation remains POST /api/v1/forensics.
x402 challenge example
HTTP/1.1 402 Payment Required
payment-required: <base64 PaymentRequiredResponse>
www-authenticate: x402
content-type: application/json; charset=utf-8
{
"x402Version": 2,
"error": "Payment required",
"resource": {
"url": "https://x402station.io/api/v1/forensics",
"description": "7-day endpoint forensics report"
},
"accepts": [
{
"scheme": "exact",
"network": "eip155:8453",
"asset": "USDC",
"amount": "1000",
"payTo": "0x4053338C7cB38624C0bc23c900F78Cf8470b4E38",
"maxTimeoutSeconds": 300
}
]
}
Request body
{
"url": "https://api.example.com/x402-endpoint"
}
Success response
{
"url": "https://api.example.com/x402-endpoint",
"window_days": 7,
"uptime_pct": 98.4,
"latency_ms": {
"p50": 410,
"p90": 890,
"p99": 2100
},
"signals": [
"slow_p99"
],
"ok": true
}
Error codes
| status | meaning |
|---|---|
400 | Malformed JSON body, invalid URL, or missing required field. |
402 | Payment required. Decode payment-required, sign x402, retry. |
503 | Query/probe pipeline timeout. Treat as failed preflight; do not pay target blindly. |
Notes
- Use at integration time or investigation time; do not run per target payment.