Sessions
Create, list, inspect, and stop managed browser sessions.
Use sessions for rendering, login flows, screenshots, or Playwright.
Set timeoutSec, close the client, and stop the session after work.
Persist the session id and use live preview, snapshots, logs, and replay for failed runs.
API Boundary
Create capacity, return the CDP connectUrl, and expose debugging evidence.
Persist the session id, set timeoutSec, and stop when work is done.
Reserve keepAlive for human inspection or process handoff. See Sessions.
List Sessions
GET/v1/sessionsShow endpoint detailsHide endpoint details
/v1/sessionsAuthorization
AuthorizationRequiredBearer <token>API key passed as a Bearer token in the Authorization header.
In: header
x-hivebrowser-api-key<token>API key passed directly in the x-hivebrowser-api-key header.
In: header
curl -X GET "https://api.hivebrowser.ai/v1/sessions" \ -H "Authorization: Bearer <token>"fetch("https://api.hivebrowser.ai/v1/sessions", { headers: { "Authorization": "Bearer <token>" }});Session list
Response example
{
"data": {
"items": [
{
"id": "string",
"teamId": "string",
"status": "PENDING",
"closeReason": "USER_REQUEST",
"browserPlatform": "WINDOWS",
"browserVersion": "string",
"region": "string",
"runnerId": "string",
"profileId": "string",
"endpoints": {
"connectUrl": "http://example.com",
"wsEndpoint": "http://example.com",
"liveUrl": "http://example.com",
"webdriverUrl": "http://example.com",
"computerActionUrl": "http://example.com"
},
"proxy": {
"server": "string",
"username": "string",
"password": "string",
"bypass": [
"string"
]
},
"viewport": {
"width": 1,
"height": 1,
"deviceScaleFactor": 0
},
"timeoutSec": 0,
"keepAlive": true,
"metadata": {
"property1": null,
"property2": null
},
"startedAt": "2019-08-24T14:15:22Z",
"closedAt": "2019-08-24T14:15:22Z",
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}
],
"total": 0,
"page": 1,
"pageSize": 0
}
}Missing or invalid API key
Response example
{
"error": "string",
"message": "string"
}Create a Session
POST/v1/sessionsShow endpoint detailsHide endpoint details
/v1/sessionsAuthorization
AuthorizationRequiredBearer <token>API key passed as a Bearer token in the Authorization header.
In: header
x-hivebrowser-api-key<token>API key passed directly in the x-hivebrowser-api-key header.
In: header
Request Body
application/jsonRequiredbrowserPlatformstringTarget platform for browser emulation
"WINDOWS" | "MACOS" | "ANDROID"browserVersionstringSpecific browser version to use
1regionstringPreferred region for session placement
1profileobjectBrowser profile to attach to this session
Show Attributes
profileIdRequiredstringID of the profile to attach
1modestringAccess mode for the attached profile
"READ_ONLY"Value in: "READ_ONLY" | "READ_WRITE"persistChangesbooleanWhether to persist changes back to the profile on session close
falseproxyobjectProxy configuration for this session
Show Attributes
serverRequiredstringProxy server URL (e.g., http://proxy.example.com:8080)
1usernamestringProxy authentication username
1passwordstringProxy authentication password
1bypassarray<string>List of hosts to bypass the proxy
viewportobjectBrowser viewport dimensions
Show Attributes
widthRequiredintegerViewport width in pixels
1heightRequiredintegerViewport height in pixels
1deviceScaleFactornumberDevice scale factor (DPR)
timeoutSecintegerSession timeout in seconds (max 24 hours)
1Maximum: 86400keepAlivebooleanKeep session alive after client disconnects
falsemetadataobjectArbitrary key-value metadata for the session
Show Attributes
[key: string]unknowncurl -X POST "https://api.hivebrowser.ai/v1/sessions" \ -H "Authorization: Bearer <token>" \ -H "Content-Type: application/json" \ -d '{ "browserPlatform": "WINDOWS", "browserVersion": "string", "region": "string", "profile": { "profileId": "string", "mode": "READ_ONLY", "persistChanges": false }, "proxy": { "server": "string", "username": "string", "password": "string", "bypass": [ "string" ] }, "viewport": { "width": 1, "height": 1, "deviceScaleFactor": 0 }, "timeoutSec": 1, "keepAlive": false, "metadata": { "property1": null, "property2": null } }'fetch("https://api.hivebrowser.ai/v1/sessions", { headers: { "Authorization": "Bearer <token>" }, body: JSON.stringify({ "browserPlatform": "WINDOWS", "browserVersion": "string", "region": "string", "profile": { "profileId": "string", "mode": "READ_ONLY", "persistChanges": false }, "proxy": { "server": "string", "username": "string", "password": "string", "bypass": [ "string" ] }, "viewport": { "width": 1, "height": 1, "deviceScaleFactor": 0 }, "timeoutSec": 1, "keepAlive": false, "metadata": { "property1": null, "property2": null } })});Session created
Response example
{
"data": {
"id": "string",
"teamId": "string",
"status": "PENDING",
"closeReason": "USER_REQUEST",
"browserPlatform": "WINDOWS",
"browserVersion": "string",
"region": "string",
"runnerId": "string",
"profileId": "string",
"endpoints": {
"connectUrl": "http://example.com",
"wsEndpoint": "http://example.com",
"liveUrl": "http://example.com",
"webdriverUrl": "http://example.com",
"computerActionUrl": "http://example.com"
},
"proxy": {
"server": "string",
"username": "string",
"password": "string",
"bypass": [
"string"
]
},
"viewport": {
"width": 1,
"height": 1,
"deviceScaleFactor": 0
},
"timeoutSec": 0,
"keepAlive": true,
"metadata": {
"property1": null,
"property2": null
},
"startedAt": "2019-08-24T14:15:22Z",
"closedAt": "2019-08-24T14:15:22Z",
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}
}Invalid request payload
Response example
{
"error": "string",
"message": "string"
}Missing or invalid API key
Response example
{
"error": "string",
"message": "string"
}Quota exceeded (concurrent sessions or runtime)
Response example
{
"error": "string",
"message": "string"
}Session creation failed (no healthy runner available)
Response example
{
"error": "string",
"message": "string"
}Get a Session
GET/v1/sessions/{id}Show endpoint detailsHide endpoint details
/v1/sessions/{id}Authorization
AuthorizationRequiredBearer <token>API key passed as a Bearer token in the Authorization header.
In: header
x-hivebrowser-api-key<token>API key passed directly in the x-hivebrowser-api-key header.
In: header
Path Parameters
idRequiredstringSession ID
curl -X GET "https://api.hivebrowser.ai/v1/sessions/string" \ -H "Authorization: Bearer <token>"fetch("https://api.hivebrowser.ai/v1/sessions/string", { headers: { "Authorization": "Bearer <token>" }});Session details
Response example
{
"data": {
"id": "string",
"teamId": "string",
"status": "PENDING",
"closeReason": "USER_REQUEST",
"browserPlatform": "WINDOWS",
"browserVersion": "string",
"region": "string",
"runnerId": "string",
"profileId": "string",
"endpoints": {
"connectUrl": "http://example.com",
"wsEndpoint": "http://example.com",
"liveUrl": "http://example.com",
"webdriverUrl": "http://example.com",
"computerActionUrl": "http://example.com"
},
"proxy": {
"server": "string",
"username": "string",
"password": "string",
"bypass": [
"string"
]
},
"viewport": {
"width": 1,
"height": 1,
"deviceScaleFactor": 0
},
"timeoutSec": 0,
"keepAlive": true,
"metadata": {
"property1": null,
"property2": null
},
"startedAt": "2019-08-24T14:15:22Z",
"closedAt": "2019-08-24T14:15:22Z",
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}
}Missing or invalid API key
Response example
{
"error": "string",
"message": "string"
}Resource not found
Response example
{
"error": "string",
"message": "string"
}Stop a Session
POST/v1/sessions/{id}/stopShow endpoint detailsHide endpoint details
/v1/sessions/{id}/stopAuthorization
AuthorizationRequiredBearer <token>API key passed as a Bearer token in the Authorization header.
In: header
x-hivebrowser-api-key<token>API key passed directly in the x-hivebrowser-api-key header.
In: header
Path Parameters
idRequiredstringSession ID
curl -X POST "https://api.hivebrowser.ai/v1/sessions/string/stop" \ -H "Authorization: Bearer <token>"fetch("https://api.hivebrowser.ai/v1/sessions/string/stop", { headers: { "Authorization": "Bearer <token>" }});Session stopped
Response example
{
"data": {
"id": "string",
"teamId": "string",
"status": "PENDING",
"closeReason": "USER_REQUEST",
"browserPlatform": "WINDOWS",
"browserVersion": "string",
"region": "string",
"runnerId": "string",
"profileId": "string",
"endpoints": {
"connectUrl": "http://example.com",
"wsEndpoint": "http://example.com",
"liveUrl": "http://example.com",
"webdriverUrl": "http://example.com",
"computerActionUrl": "http://example.com"
},
"proxy": {
"server": "string",
"username": "string",
"password": "string",
"bypass": [
"string"
]
},
"viewport": {
"width": 1,
"height": 1,
"deviceScaleFactor": 0
},
"timeoutSec": 0,
"keepAlive": true,
"metadata": {
"property1": null,
"property2": null
},
"startedAt": "2019-08-24T14:15:22Z",
"closedAt": "2019-08-24T14:15:22Z",
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}
}Missing or invalid API key
Response example
{
"error": "string",
"message": "string"
}Resource not found
Response example
{
"error": "string",
"message": "string"
}Failed to stop session on runner
Response example
{
"error": "string",
"message": "string"
}Live Session Preview
GET/v1/sessions/{id}/liveShow endpoint detailsHide endpoint details
/v1/sessions/{id}/liveAuthorization
AuthorizationRequiredBearer <token>API key passed as a Bearer token in the Authorization header.
In: header
x-hivebrowser-api-key<token>API key passed directly in the x-hivebrowser-api-key header.
In: header
Path Parameters
idRequiredstringSession ID
Query Parameters
tokenstringLive access token for unauthenticated access
curl -X GET "https://api.hivebrowser.ai/v1/sessions/string/live?token=string" \ -H "Authorization: Bearer <token>"fetch("https://api.hivebrowser.ai/v1/sessions/string/live?token=string", { headers: { "Authorization": "Bearer <token>" }});HTML live preview page
Response example
"string"Missing or invalid API key
Response example
{
"error": "string",
"message": "string"
}Resource not found
Response example
{
"error": "string",
"message": "string"
}Live Session Snapshot
GET/v1/sessions/{id}/live/snapshotShow endpoint detailsHide endpoint details
/v1/sessions/{id}/live/snapshotAuthorization
AuthorizationRequiredBearer <token>API key passed as a Bearer token in the Authorization header.
In: header
x-hivebrowser-api-key<token>API key passed directly in the x-hivebrowser-api-key header.
In: header
Path Parameters
idRequiredstringSession ID
Query Parameters
tokenstringLive access token for unauthenticated access
curl -X GET "https://api.hivebrowser.ai/v1/sessions/string/live/snapshot?token=string" \ -H "Authorization: Bearer <token>"fetch("https://api.hivebrowser.ai/v1/sessions/string/live/snapshot?token=string", { headers: { "Authorization": "Bearer <token>" }});Screenshot image
Response example
"string"Missing or invalid API key
Response example
{
"error": "string",
"message": "string"
}Resource not found
Response example
{
"error": "string",
"message": "string"
}