Create a session with X402 payment
Changed onPurchase one browser session at 0.10 USDC per hour, paid upfront for timeoutMinutes (5–60, default 30). No Hyperbrowser account or API key is required. A valid unpaid request returns 402 with payment requirements. Retry with a signed PAYMENT-SIGNATURE authorization. Payment is settled before connection credentials and a managementToken are returned. One authorization can create only one session. Invalid options are rejected before payment verification. See /integrations/x402/sessions for connection examples and lifetime behavior.
Request
- Base URLhttps://api.hyperbrowser.ai
- Authnone required
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
Base64-encoded payment authorization generated by an X402 client from the advertised PAYMENT-REQUIRED requirements. Omit on the initial request to obtain a quote.
Request body
Response
Browser created and payment settled. Use the returned connection details to control it without further X402 payments.
Changes
- breaking
the
request property's min was increased to5.00 - warning
removed the request property
- warning
removed the request property
- warning
removed the request property
- warning
removed the request property
- warning
removed the request property
- warning
removed the request property
- info
the
request property's max was increased from30.00to60.00 - info
added the required property
to the response with the status
- breaking
- info
endpoint added
- info