Skip to main content
GET
/
v1
/
browsers
/
{id}
Get Session
curl --request GET \
  --url https://api.example.com/v1/browsers/{id}/
{
  "success": true,
  "data.id": "<string>",
  "data.execution_id": "<string>",
  "data.user_id": 123,
  "data.status": "<string>",
  "data.token_cost": 123,
  "data.created_at": "<string>",
  "data.closed_at": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.rustybrowser.com/llms.txt

Use this file to discover all available pages before exploring further.

Description

Returns the current state and metadata of a browser.

Authentication

Authorization: Bearer YOUR_API_KEY
Self-hosted open source deployments do not require authentication.

Path Parameters

id
string
required
The browser ID returned from Create Session.

Response

success
boolean
Whether the request was successful.
data.id
string
UUID of the browser record.
data.execution_id
string
The browser ID.
data.user_id
integer
ID of the user who owns this session.
data.status
string
Current status. One of active or closed.
data.token_cost
integer
Tokens consumed by this session.
data.created_at
string
ISO 8601 timestamp of when the browser was created.
data.closed_at
string
ISO 8601 timestamp of when the browser was closed. Zero value if still active.

Example

curl https://api.rustybrowser.com/v1/browsers/exc-b9534e98-c3ce-4d1b-9671-b563ac66adc3/ \
  -H "Authorization: Bearer YOUR_API_KEY"