Ensure Workspace
Create or update a workspace and link it to a machine.
This endpoint:
- Finds or creates a workspace (by machine+path)
- Creates/updates the machine-workspace link with the local path
- Ensures a main worktree exists with the machine reference
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 updating a workspace from the daemon.
Identifier of the daemon machine
Absolute path reported by the daemon
Canonical git host if detected (e.g., github.com)
Canonical git path if detected (e.g., org/repo)
Optional workspace metadata (labels, annotations, etc.)
Git-related settings for a workspace.
Response
Successful Response
Serialized workspace row returned to API clients.
Unique workspace identifier
Owner user identifier
Canonical git host (e.g., github.com)
Canonical git repository path (e.g., org/repo)
Arbitrary workspace metadata (labels, annotations)
Workspace configuration including git, sync, and remote environment settings
Machines linked to this workspace with their local paths
Timestamp when the workspace was created
Timestamp when the workspace was last updated
Changes
No recorded changes to this operation across all 1 revision of this API.