Skip to content

Sessions API

List Sessions

bash
GET /sessions

Returns all active sessions.

bash
curl http://127.0.0.1:9090/sessions
json
[
  {
    "id": "sess_a1b2c3d4",
    "profile": "windows",
    "created_at": "2026-08-12T10:00:00Z",
    "current_url": "https://example.com"
  }
]

Create Session

bash
POST /sessions
FieldTypeDefaultDescription
profilestring"windows"Fingerprint profile
proxystring(none)Proxy URL for this session
bash
curl -X POST http://127.0.0.1:9090/sessions \
  -H 'content-type: application/json' \
  -d '{"profile": "macos", "proxy": "socks5://127.0.0.1:1080"}'
json
{
  "id": "sess_b2c3d4e5",
  "profile": "macos",
  "created_at": "2026-08-12T10:01:00Z"
}

Close Session

bash
DELETE /sessions/{id}
bash
curl -X DELETE http://127.0.0.1:9090/sessions/sess_a1b2c3d4

Returns 204 No Content on success.

bash
POST /sessions/{id}/navigate
FieldTypeDescription
urlstringTarget URL
waitnumberWait time in ms after load (optional)
bash
curl -X POST http://127.0.0.1:9090/sessions/sess_a1b2c3d4/navigate \
  -H 'content-type: application/json' \
  -d '{"url": "https://example.com", "wait": 3000}'

Execute JavaScript

bash
POST /sessions/{id}/execute
FieldTypeDescription
scriptstringJavaScript to execute
bash
curl -X POST http://127.0.0.1:9090/sessions/sess_a1b2c3d4/execute \
  -H 'content-type: application/json' \
  -d '{"script": "document.title"}'
json
{
  "result": "Example Domain"
}

Released under the MIT License.