Create User Session Endpoint
Create a new user session container for the authenticated user.
Accepts either worktree_id (preferred) or workspace_id (deprecated). If workspace_id is provided, the main worktree for that workspace is used.
If start_sandbox is True and the worktree is REMOTE, the sandbox session will be started immediately after creating the user session.
Request
- Base URLhttps://docs.omnara.com (the document declares no server; this is the origin it was published from)
- AuthHTTP bearer
Request body
Payload for creating or reusing a user session container.
Worktree identifier linked to this session (preferred)
Deprecated: Use worktree_id instead. If worktree_id is not provided, the main worktree for this workspace will be used.
Optional explicit user session id to reuse or create
Optional human-readable session name
Arbitrary key-value metadata for the session
If True and worktree is REMOTE, start the sandbox session immediately
Per-session settings for a user session.
Initial message to queue for the agent. This message will be delivered as soon as the agent connects, eliminating the frontend waterfall delay.
Response
Successful Response
Aggregated user session data returned to clients.
Core user session descriptor
Agent sessions associated with this user session
Serialized workspace row returned to API clients.
Serialized worktree entity returned to API clients.
Changes
No recorded changes to this operation across all 1 revision of this API.