workspaces

Launch Workspace Session

Launch a daemon-backed coding session for the given workspace.

post/api/v1/workspaces/{workspace_id}/sessions

Request

  • Base URL
    https://docs.omnara.com (the document declares no server; this is the origin it was published from)
  • Auth
    HTTP bearer

Path parameters

workspace_id, string required

Request body

WorkspaceSessionLaunchRequest required

Request body used to start a session for a workspace.

machine_id, string nullable

Machine ID to launch the session on. If not provided, uses the workspace's default machine.

user_session_id, string nullable

Existing user session to reuse

metadata, object nullable

Arbitrary metadata describing the launch

initial_prompt, string nullable

Prompt delivered to the coding agent at startup

worktree_name, string nullable

Name for the git worktree/branch to use for this session

session_settings, SessionSettingsInput nullable

Per-session settings for a user session.

resume_session_id, string nullable

SDK session ID to resume from (e.g., from Claude CLI import)

agent_session_id, string nullable

Existing agent session ID to connect to (e.g., from import)

Response

Successful Response

WorkspaceSessionLaunchResponse required

Daemon acknowledgement returned after a launch request.

status, string required

Launch status (e.g., 'ok', 'error')

payload, object nullable

Optional response payload with additional details

Changes

No recorded changes to this operation across all 1 revision of this API.