GET

Get Post Paywall


Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

Retrieves the paywall content a post shows.

Returns the resolved content rather than the stored post paywall. For example, a post that references a paywall template returns that template's content.

The content is resolved in this order:

  1. The post's own richContent, if its post paywall has any.
  2. The paywall template its post paywall references. If that template was deleted or has no content, resolution continues to the next step.
  3. The global default paywall template for the language specified in language. If no default exists for that language, the English default is used.

The source field in the response indicates which step the content came from.

Retrieving a draft post's paywall requires the same access as reading the draft post. Without it, the call fails with PERMISSION_DENIED.

Permission Scopes
Read Blog
Learn more about app permissions.
Endpoint
GET
https://www.wixapis.com/blog/blog-paywall-service/v1/post-paywalls/{postFqdn}/{postId}

Errors

This method doesn't return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?