Paywalls V2

Sync Headless Assets

Changed on

Resolves a content-addressed asset manifest for a code-first paywall: returns the hosted URL for every asset and a short-lived presigned upload for the ones not yet stored. Runs as the assets step of superwall push/publish before the version push. Identical content is never uploaded twice. Requires paywalls:write scope.

post/v2/paywalls/{id}/assets

Request

  • Base URL
    https://api.superwall.com
  • URL
    https://api.superwall.com/v2/paywalls/{id}/assets
  • Auth
    • HTTP bearer
    • or API key in cookie accounts_superwall_token
    • or HTTP bearer

Path parameters

idstring required

Request body

Response

Success

object'paywall.asset_manifest' required

Object type, always paywall.asset_manifest

idstring required

Changes

    • warning

      added the new credentials_missing enum value to the / response property for the response status

    • warning

      added the new credentials_missing enum value to the / response property for the response status

    • warning

      added the new credentials_missing enum value to the / response property for the response status

    • warning

      added the new credentials_missing enum value to the / response property for the response status

    • warning

      added the new credentials_missing enum value to the / response property for the response status

    • warning

      added the new credentials_missing enum value to the / response property for the response status

    • info

      added subschema #1 subschema #2 subschema #3 subschema #4 subschema #5 to the response body anyOf list for the response status

    • info

      removed subschema #1 subschema #2 subschema #3 subschema #4 subschema #5 from the response body anyOf list for the response status

    • info

      removed the pattern ^[a-f0-9]{64}$ from the request property //

    • info

      removed the pattern ^[a-f0-9]{64}\.[a-z0-9]{2,6}$ from the request property //