Create Paywall
Creates a new paywall in the specified application. Optionally create from a template by providing the template field, or create a self-hosted paywall by providing url. Self-hosted url cannot be combined with template. Requires paywalls:write scope.
Request body
ID of the application to create the paywall in
Display name of the paywall
URL-safe identifier (slug). Auto-generated from name if not provided
Canonical self-hosted paywall URL for non-template creates. Cannot be combined with template.
ID of the template to create the paywall from
Arbitrary key-value metadata to attach to the paywall
Creates a code-first (headless) paywall, authored with the superwall framework and updated with superwall push / superwall promote rather than the visual editor. Fixed at creation: existing paywalls cannot be converted, and headless paywalls cannot be opened in the editor. Cannot be combined with template.
Response
Success
Unique identifier for the paywall
Object type, always paywall
ID of the application this paywall belongs to
a string to be decoded into a number
Display name of the paywall
URL-safe identifier (slug) for the paywall
URL to the interactive paywall
Current published version number
Whether this is a code-first (headless) paywall, authored with the superwall framework and shipped with superwall push / superwall promote rather than the visual editor. A headless paywall with version: 0 has been pushed but never promoted, so it has no live snapshot and cannot back a campaign variant.
a string to be decoded into a number
ISO 8601 timestamp of when the paywall was created
ISO 8601 timestamp of when the paywall was last updated
ISO 8601 timestamp of when the paywall was last published, or null
Whether the paywall is archived
URL to a preview screenshot of the paywall, or null