Get quiz versions with view URLs

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.

get/quizzes/{quizId}/versions

Request

  • Base URL
    https://api.web2wave.com/api
  • URL
    https://api.web2wave.com/api/quizzes/{quizId}/versions
  • Auth
    API key in header api_key

Path parameters

quizIdinteger required

Quiz identifier

Example:123

Headers

api_keystring required

Response

Quiz versions list retrieved successfully

successinteger
quiz_idinteger
current_versioninteger nullable

Latest stored version of the quiz

published_versioninteger nullable

Version currently served to end users

Example response

{
  "success": 1,
  "quiz_id": 123,
  "current_version": 4,
  "published_version": 3,
  "versions": [
    {
      "version": 1,
      "date": "2024-01-15T10:30:00Z",
      "source": "web",
      "client_id": 42,
      "first_event_date": "2024-01-15T11:00:00Z",
      "last_event_date": "2024-01-20T16:45:00Z",
      "count_users": 150,
      "view_url": "https://funnel.example.com/onboarding?version=1-MjAyNS0wOC0xMFQxMjozNDo1NiswMDowMA%3D%3D&edit_mode=1"
    }
  ]
}

Changes

No recorded changes to this operation across all 2 revisions of this API.