Authentication
Requires a valid Bearer token.Response
List of workspace objects.
Errors
| Status | Description |
|---|---|
401 | Unauthorized — missing or invalid token |
{
"workspaces": [
{
"id": "b2c3d4e5-6789-01ab-cdef-234567890abc",
"project_id": "a1b2c3d4-5678-90ab-cdef-1234567890ab",
"status": "running",
"hardware": {
"cpu_kind": "shared",
"cpus": 2,
"memory_mb": 2048,
"volume_size_gb": 10,
"gpu_kind": null
},
"keep_active": false,
"machine_id": "d8901234abcd",
"private_ip": "10.0.0.2",
"git_ref": "main",
"preview_token": "ptk_abc123",
"error_message": null,
"created_at": "2025-01-15T10:30:00Z",
"updated_at": "2025-01-15T11:00:00Z"
}
]
}
List all workspaces for the authenticated user
Show Workspace object
creating, starting, running, stopping, stopped, error.error.{
"workspaces": [
{
"id": "b2c3d4e5-6789-01ab-cdef-234567890abc",
"project_id": "a1b2c3d4-5678-90ab-cdef-1234567890ab",
"status": "running",
"hardware": {
"cpu_kind": "shared",
"cpus": 2,
"memory_mb": 2048,
"volume_size_gb": 10,
"gpu_kind": null
},
"keep_active": false,
"machine_id": "d8901234abcd",
"private_ip": "10.0.0.2",
"git_ref": "main",
"preview_token": "ptk_abc123",
"error_message": null,
"created_at": "2025-01-15T10:30:00Z",
"updated_at": "2025-01-15T11:00:00Z"
}
]
}
| Status | Description |
|---|---|
401 | Unauthorized — missing or invalid token |