Palbase IAP · API
/iap/paywalls/templatesList the paywall templates
The module's designed paywalls, to make a paywall from — Studio's and the CLI's one source. A template sells the packages pro.monthly, pro.yearly, family.monthly, family.yearly and lifetime.once (each as it has them): the client names the catalog's in their place. Its pictures are template assets (asset:<id> with ids of their own), never an address outside the project: the client downloads each (…/templates/{key}/assets/{asset_id}), uploads it to the project's paywall-assets bucket, registers it and names the new asset in place of the template's id. The module creates no bucket and uploads nothing.
Called by your server, with the project's secret key.
curl -X GET "https://<your-ref>.palbase.studio/iap/paywalls/templates" \
-H "apikey: $PALBASE_SECRET_KEY"Responses
200The templates
400The request is malformed, or a field breaks a rule (the error names which)
401No key, not a key of this project, or a token that is not valid (the edge's answer)
403Not the project's secret key (`secret_key_required`)
429Over the project's request limit; Retry-After says when to try again
503Temporarily unavailable; retrying is safe after Retry-After
defaultAn error: the envelope names it (`error`) and explains it (`error_description`).
Operation ListPaywallTemplates of iap's contract.