Skip to main content
POST
Purchase a browser session at $0.10/hour, paid upfront for timeoutMinutes (5–60, default 30), without a Hyperbrowser API key. See the X402 session guide for signing the payment request, connecting to the returned browser, and session lifetime behavior.

Headers

PAYMENT-SIGNATURE
string

Base64-encoded payment authorization generated by an X402 client from the advertised PAYMENT-REQUIRED requirements. Omit on the initial request to obtain a quote.

Body

application/json

Optional preferences for a browser session priced at 0.10 USDC per hour, paid upfront for timeoutMinutes. Unknown fields are rejected before payment verification. Web recording is disabled. Other regular session creation options are not supported.

screen
object

Browser screen dimensions. An omitted dimension uses its default.

viewOnlyLiveView
boolean
default:false

Make the live-view link read-only. CDP, WebDriver, and the computer action endpoint still allow browser control.

timeoutMinutes
integer
default:30

Maximum session lifetime in minutes, from 5 through 60. Defaults to 30. Determines the session duration and upfront price at 0.10 USDC per hour. Connection token lifetimes and expiresAt follow this value.

Required range: 5 <= x <= 60

Response

Browser created and payment settled. Use the returned connection details to control it without further X402 payments.

Connection credentials and a management token for the purchased browser. Save this response; get does not reissue connection credentials. These tokens cannot authenticate regular account APIs.

id
string<uuid>
required

Purchased session ID.

wsEndpoint
string<uri>
required

CDP WebSocket URL for Playwright, Puppeteer, or another CDP client. Includes its authentication token.

webdriverEndpoint
string<uri>
required

Selenium/WebDriver endpoint. Send token in the x-hyperbrowser-token header.

liveUrl
string<uri>
required

Authenticated live-view URL. Interaction is disabled when viewOnlyLiveView is true.

computerActionEndpoint
string<uri>
required

Endpoint for mouse, keyboard, and screenshot actions. Includes its authentication token.

token
string
required

Credential scoped to this browser session. Use it for WebDriver authentication, not the regular get/list/stop/update/extend session APIs.

expiresAt
string<date-time>
required

Returned session expiry timestamp based on timeoutMinutes. The browser can stop earlier if closed or disconnected.

managementToken
string
required

Bearer token for GET /x402/session/{id} and PUT /x402/session/{id}/stop only. Valid for 24 hours from purchase, including after browser expiry. Does not authenticate browser connections or regular account APIs.