Retrieve a stage workspace
Code Mode: praxis.devops.projects.workspaces.retrieve
HTTP: GET /devops/v1/projects/{project}/workspaces/{stage}
Read one stage’s workspace configuration: the machine class its units are created at, whether it builds a prebuild ahead of time, and the idle timeout and retention that decide when a machine is paused or destroyed. The stage is development, integration or runtime; development holds persistent units and the other two hold one-off ones, which is derived from the stage and is not something this call can set. A project with no rows yet gets the three defaults materialized first, so this answers a real row rather than a not-found.
Signature
praxis.devops.projects.workspaces.retrieve(args:{path:{/** e.g. "dvp_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ project:string;stage:"development"|"integration"|"release"}}):Promise<{/** The workspace identifier, one per (project, stage); a unit records the workspace it was created from. e.g. "wks_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ id:string;/** The resource type of this answer, always workspace. */ object:"workspace";/** RFC 3339 UTC time this stage's row was first written; the three rows are returned in stage order, not by this time. e.g. "2026-11-11T09:00:00Z" */ createTime:string;/** RFC 3339 UTC time this row last changed; an update changes only this and the masked fields. e.g. "2026-11-11T09:30:00Z" */ updateTime:string;/** Canonical Console link for this stage's workspace; use it in a message so a person can open the same row. e.g. "https://console.deepraxis.com/devops/dvp_01m6j8swzteapw2j5sh4/workspaces/development" */ viewerUrl:string;/** The project this workspace belongs to, from the project list. e.g. "dvp_01m6j8swzteapw2j5sh4" */ project:string;stage:"development"|"integration"|"release";/** Whether units of this stage are kept across sessions or are one-off. e.g. "persistent" */ unitClass:"persistent"|"ephemeral";machine:{size:"small"|"medium"|"large"|"xlarge"};prebuild:{/** Whether a unit of this stage starts from a ready prebuild instead of building the machine image itself; off means every unit builds its own, which costs time on e.g. true */ enabled:boolean;/** The prebuild a new unit of this stage would start from, or null when none is ready yet; null means units fall back to the base template. e.g. null */ current:string|null};/** Minutes of inactivity after which a persistent unit of this stage is paused, 5 to 240; the default is 30. e.g. 30 */ idleTimeoutMinutes:number;/** Days a stopped unit of this stage is kept before it is destroyed, 1 to 30; the default is 7. e.g. 7 */ retentionDays:number;/** The vaults this stage's units take their runtime environment from, by vault id (vlt_…). */ vaults:Array<string>}>;Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| project | path | string | yes | Identifies the project whose data you are reading, from the project list or create answer. |
| stage | path | “development” | “integration” | “release” | yes | The stage whose workspace you address: development, integration or release. development is the persistent stage that carries changes; integration and release hold one-off units. |
Responses
| Status | Content types | Description |
|---|---|---|
| 200 | application/json | The addressed stage workspace, with its machine class, prebuild setting and lifetime settings. |
| 400 | application/json | INVALID_PARAMS or INVALID_ARGUMENT means a field, query value or identifier violates the documented format or range — an unknown enum value, a pageSize outside 1..100, an unsupported filter or orderBy field, or an id with the wrong prefix. Correct the named input; nothing was read or written. |
| 401 | application/json | The API key is missing or invalid; send a valid Praxis API key in the Authorization header before retrying. |
| 403 | application/json | The credential carries no organization, or that organization cannot reach this project; use a key belonging to the project’s organization. No cross-organization read is possible. |
| 404 | application/json | PROJECT_NOT_FOUND means no project with that id is visible to this organization; list the projects and use an id from that answer. WORKSPACE_NOT_FOUND means the project exists but the addressed stage has no row, which happens only if its configuration rows were removed; list the project’s workspaces to see the three stages. |
| 500 | application/json | INTERNAL means the service could not complete the request; retry once, and if it repeats report the request id. A read is safe to repeat; a write that failed this way should be re-read before it is sent again. |