---
title: "Get quiz versions with view URLs"
method: GET
path: "/quizzes/{quizId}/versions"
---

# Get quiz versions with view URLs

`GET /quizzes/{quizId}/versions`

Retrieve all stored versions of the quiz (including the current one) with usage
statistics from ClickHouse and a public URL to preview every version on the
project domain. Each entry contains a `view_url` ready to open in the browser.

## Path parameters

- `quizId` integer, required — Quiz identifier

## Headers

- `api_key` string, required

## Response `200`

Quiz versions list retrieved successfully

- object
  - `success` integer
  - `quiz_id` integer
  - `current_version` integer, nullable — Latest stored version of the quiz
  - `published_version` integer, nullable — Version currently served to end users
  - `versions` object[] — All quiz versions ordered from oldest to newest
    - `version` integer — Version number
    - `date` string, date-time — Date when this version was created
    - `source` string, nullable — Origin of the change (`web`, `api`, etc.)
    - `client_id` integer, nullable — Cabinet user ID that produced the version (if any)
    - `is_current` boolean — Whether this version is the latest stored version
    - `is_published` boolean — Whether this version is currently published
    - `first_event_date` string, date-time, nullable — Date of first user event for this version
    - `last_event_date` string, date-time, nullable — Date of last user event for this version
    - `count_users` integer — Number of unique users who interacted with this version
    - `view_url` string, uri, nullable — Signed public URL to preview this specific quiz version on the project domain. Includes the version number and a hash of the version date, plus `edit_mode=1` so the preview bypasses cached published content.

## Other responses

- `404` — Quiz not found in current project

---

[API](https://skmtc.net/web2wave/apis/web2wave-api.md) · [All operations](https://skmtc.net/web2wave/apis/web2wave-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/web2wave/web2wave-api/revisions/c88545119271/schema)
