v1

latestOpenAPI 3.0.32026-07-248519153.1 KB

Get paywall versions with view URLs

Retrieve all stored versions of the paywall (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/paywalls/{paywallId}/versions

Path parameters

paywallIdinteger required

Paywall identifier

Example:123

Headers

api_keystring required

Response

Paywall versions list retrieved successfully

successinteger
paywall_idinteger
current_versioninteger nullable

Latest stored version of the paywall

published_versioninteger nullable

Version currently served to end users

Example response

{
  "success": 1,
  "paywall_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/paywall/premium?version=1-MjAyNS0wOC0xMFQxMjozNDo1NiswMDowMA%3D%3D&edit_mode=1"
    }
  ]
}