Create or reuse a session
Create a browser or sandbox session. Explicit `workspace` requests reuse the live VM for that workspace when one already exists, otherwise they spawn a new one. When `workspace` is omitted, free-tier accounts launch ephemerally and paid accounts resolve or auto-create the account default workspace for the requested session type. Set `ephemeral=true` to force a fresh non-persistent session without a workspace. Sandbox `image` is accepted only for ephemeral sessions; workspace-backed sessions inherit image from the workspace configuration.
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Request
This endpoint expects an object.
CreateSessionPersistentRequestDoc
OpenAPI documentation schema for persistent session creation.
OR
CreateSessionEphemeralRequestDoc
OpenAPI documentation schema for ephemeral session creation.
Response
Session created
created_at
endpoints
id
session_type
status
active_connection_leases
Active connection leases reported by the owning daemon (if available).
persistence
Whether this session's workspace is configured to persist after termination.
workspace_id
Durable workspace identity.
Errors
400
Bad Request Error