MASAKA / Browser / Sessions
Browser

A browser with
a clear lifetime.

Every session is project-scoped, region-bound, time-bounded, metered after readiness, and terminally settled.

Create a session

POST/api/sessionsCreate and reserve capacity
FieldPurpose
urlInitial public HTTP(S) page.
regionchina or overseas.
preview_modevisual frames or semantic live DOM.
max_secondsBounded runtime, normally 30–900 seconds.
profile_id / proxy_idOptional owned resources.

Lifecycle

queued→starting→running→completed

failed and expired are also terminal. Billing begins only after running; keep polling with backoff and stop when the work is done.

List and inspect

GET/api/sessionsPage, filter, and search project sessions
GET/api/sessions/:idCurrent status, URL, region, and usage

List responses deliberately omit worker transport addresses, secrets, and profile bytes.

Stop and settle

POST/api/sessions/:id/stopIdempotent terminal request