Payment (x402)
Poll (or long-poll) a payment session
get/api/payment-status/{sessionId}
Path parameters
sessionIdstring required
Query parameters
waitboolean
When true, the server blocks up to 60 seconds waiting for the session to transition to a terminal state (completed, failed, expired). Useful to avoid tight-loop polling.
Response
Payment session state
Example response
{
"asset": "USDC",
"network": "base-sepolia"
}