Solari Browserdocs

API overview

The SDK is the recommended way to use Solari from Node. Every method has a plain HTTP endpoint underneath, useful from Python, Go, Rust, or curl.

Base URL

https://api.solaribrowser.com

Authentication

Bearer token in the Authorization header:

curl https://api.solaribrowser.com/sessions \
  -H "Authorization: Bearer sb_live_…"

Keys are minted in the console and shown once at creation time. Rotating a key invalidates the previous one.

Content type

Request and response bodies are JSON. Set Content-Type: application/json on POST and DELETE with a body.

Endpoints

Stealth, proxies, captcha solving, and recording are flags on POST /sessions rather than separate resources. Recording is read back through GET /sessions/:id/replay-url.

Method + pathPurpose
POST /sessionsAllocate a browser and return its endpoints.
GET /sessions/:idLook up a session's status.
DELETE /sessions/:idRelease the session.
GET /sessions/:id/replay-urlPresigned URL for the rrweb recording.
POST /profilesCreate a profile.
GET /profilesList profiles.
DELETE /profiles/:idDelete a profile.
POST /profiles/:id/saveSave the storageState.
GET /proxy/countriesList supported residential countries.

Errors

Conventional HTTP status codes plus a JSON body with error and optional message. The SDK wraps these as SolariError with status and cause fields. See Errors.