---
title: "List a website's versions"
description: "Every build of the site, newest first: the number once ready, the status, the commit, the version's own URL, who asked, and whether the live URL serves it now."
api_method: GET
api_path: "/v1/workspaces/{workspaceId}/sites/{siteId}/versions"
canonical_url: https://wiblo.app/docs/developers/api/sites/list-site-versions
last_updated: 2026-09-28T10:47:20+02:00
md_url: https://wiblo.app/docs/developers/api/sites/list-site-versions.md
---

# List a website's versions

`GET /v1/workspaces/{workspaceId}/sites/{siteId}/versions`

Every build of the site, newest first: the number once ready, the status, the commit, the version's own URL, who asked, and whether the live URL serves it now. The picker's source and `wiblo sites versions`. `?status=ready` answers the ready rows only, and any other version status filters the same way, `superseded` and `canceled` included. `?history=1` includes the superseded and canceled rows the default hides. The answer holds the newest 200 rows at most. Every active member may call it, and a run's workspace key is an expected bearer. No deployment id ever crosses the wire. Per-user rate-limited at 60/60s.

## Path parameters

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

## Query parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `status` | `"queued" \| "building" \| "ready" \| "error" \| "canceled" \| "superseded"` | No |  |
| `history` | `"1"` | No | `1` includes superseded and canceled rows, which the default hides. |

## Request

**curl**

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

**TypeScript**

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

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

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

## Responses

**`200`** — The site's versions, newest first. Returns `SiteVersionListResponse`.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `versions` | `array<SiteVersionSummary>` | Yes |  |

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

**`404`** — Workspace not visible to the caller (`WORKSPACE_NOT_FOUND`), or no site with that id in it (`SITE_NOT_FOUND`). Returns `ApiErrorEnvelope`.

**`422`** — Path param failed UUID validation, or `status` is not a version status (`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 SiteVersionSummary object

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | `string` | Yes |  |
| `site_id` | `string` | Yes |  |
| `number` | `integer \| null` | Yes | The number on the picker, per site. The version gets it when its build is first ready, and no other version takes it. Null for a version that was never ready. A ready version whose deployment is gone turns `error` and keeps its number, also when it is built again. |
| `status` | `"queued" \| "building" \| "ready" \| "error" \| "canceled" \| "superseded"` | Yes |  |
| `commit_sha` | `string` | Yes |  |
| `commit_message` | `string \| null` | Yes | The first line of the commit message, once the build was created. |
| `url` | `string \| null` | Yes | The version's own URL. Null until the deployment exists. |
| `source` | `"create" \| "turn" \| "manual" \| "push"` | Yes |  |
| `published` | `boolean` | Yes | True when the live URL serves this version now. |
| `error` | `string \| null` | Yes | Why the version is `error`, and null for every other status. When the code failed to build, this is the build's own error message. Otherwise it is the platform's own sentence: the platform could not start the build or read its state, the build ran out of time or was lost, or its deployment is gone. |
| `created_by_run_id` | `string \| null` | Yes |  |
| `created_at` | `string` | Yes |  |
| `started_at` | `string \| null` | Yes |  |
| `ready_at` | `string \| null` | Yes |  |
| `first_published_at` | `string \| null` | Yes |  |
