---
title: "The workspace's golden snapshot"
description: "Everything the workspace can know about its golden boot image (the golden slice of sandbox-setup): bake status, the never-expiring snapshot id, the base..."
api_method: GET
api_path: "/v1/workspaces/{workspaceId}/golden"
canonical_url: https://wiblo.app/docs/developers/api/agent-golden/get-workspace-golden
last_updated: 2026-07-28T17:31:44+02:00
md_url: https://wiblo.app/docs/developers/api/agent-golden/get-workspace-golden.md
---

# The workspace's golden snapshot

`GET /v1/workspaces/{workspaceId}/golden`

Everything the workspace can know about its golden boot image (the golden slice of sandbox-setup): bake status, the never-expiring snapshot id, the base repo it was baked from (with its GitHub URL, the WIBLO-155 exposure), the baked SHA, the runtime pin and layout version it carries, and whether it is stale against the deploy's current pin. `status: none` means never baked — the first run (or an explicit bake) creates it. Per-user rate-limited at 60/60s.

## Path parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `workspaceId` | `string` | Yes |  |

## Request

**curl**

```bash
curl https://api.wiblo.app/v1/workspaces/{workspaceId}/golden \
  -H "Authorization: Bearer $WIBLO_TOKEN"
```

**TypeScript**

```ts
import { createSdk, getWorkspaceGolden } from "@workspace/sdk"

const sdk = createSdk({ baseUrl: "https://api.wiblo.app" })

const { data, error } = await getWorkspaceGolden({
  client: sdk,
  path: { workspaceId: "..." },
})
```

## Responses

**`200`** — The workspace golden's current state. Returns `WorkspaceGoldenResponse`.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `workspace_id` | `string` | Yes |  |
| `status` | `"none" \| "baking" \| "ready" \| "failed"` | Yes |  |
| `runtime` | `string` | Yes |  |
| `snapshot_id` | `string \| null` | No | Defaults to `null`. |
| `baked_sha` | `string \| null` | No | Defaults to `null`. |
| `runtime_pin` | `string \| null` | No | Defaults to `null`. |
| `current_runtime_pin` | `string \| null` | No | Defaults to `null`. |
| `layout_version` | `integer \| null` | No | Defaults to `null`. |
| `current_layout_version` | `integer` | Yes |  |
| `size_bytes` | `integer \| null` | No | Defaults to `null`. |
| `stale` | `boolean` | Yes |  |
| `error` | `string \| null` | No | Defaults to `null`. |
| `baked_at` | `string \| null` | No | Defaults to `null`. |
| `updated_at` | `string \| null` | No | Defaults to `null`. |
| `repo` | `WorkspaceGoldenRepo` | No |  |

**`401`** — No valid session or `wbl_*` bearer was present. Returns `ApiErrorEnvelope`.

**`404`** — Workspace not visible to the caller (`WORKSPACE_NOT_FOUND`). Returns `ApiErrorEnvelope`.

**`422`** — Path param failed UUID validation (`INVALID_PARAMS`). Returns `ApiErrorEnvelope`.

**`429`** — Rate limit exceeded. The body's `error.code` is `RATE_LIMITED` and `error.details.retry_after` is the same number of seconds as the `Retry-After` header. Returns `ApiErrorEnvelope`.

### The WorkspaceGoldenRepo object

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | `string` | Yes |  |
| `slug` | `string` | Yes |  |
| `url` | `string` | Yes |  |
| `default_branch` | `string` | Yes |  |
