Create or reuse a session
Create a browser or sandbox session. Workspace-backed requests reuse the live VM for that workspace when one already exists, otherwise they spawn a new one. Provide `workspace` (label or UUID) for persistent sessions. 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
OR
CreateSessionEphemeralRequestDoc
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.
