Polyrankdocs
x402 Agent API

POST /v1/agent/ws-token

Mint a short-TTL WebSocket token (x402-authorized) to open the live trade/market firehose. x402: $0.005 per call, settled in USDC only on a 2xx — a 4xx is free.

POST
/v1/agent/ws-token

Mint a short-TTL WebSocket token (x402-authorized) to open the live trade/market firehose. x402: $0.005 per call, settled in USDC only on a 2xx — a 4xx is free.

X-PAYMENT<token>

x402 payment: base64(JSON PaymentPayload) with an EIP-3009 USDC transferWithAuthorization on Base. Call once without it to get the 402 PaymentRequirements; see docs.polyrank.app/x402.

In: header

Response Body

application/json

curl -X POST "https://example.com/v1/agent/ws-token"
{}
Empty
Empty