Entitlements API for access control
Gate any article, feature or app with one attribute or one API call. Pelcro's entitlements API, JS SDK and React elements resolve what each subscriber can access.
Trusted by leading publishers worldwide
Already trusted by leading publishers worldwide
How the entitlements API works
Gate anything in one line
Pick a call. See the request you write and what Pelcro resolves. The examples are illustrative.
- 1DefineAttach entitlements to products and plans in the dashboard, once.
- 2CallCheck access with data-pelcro-entitlements or Pelcro.user.isEntitledTo().
- 3ResolvePelcro resolves the subscriber's plan, attributes and licenses.
- 4InheritNew content and features inherit the same rules, with no code changes.
<div data-pelcro-entitlements="premium"> …blurred until unlocked… </div>
→ Gated in the markup, no JS to write.
Illustrative. Example request and response, not live API output.
Who it's for
Who it's for
- Developers gating content and features by subscription
- Teams building apps, sites and newsletters on Pelcro
- Engineers who want access rules set once, not per release
Features
What it does
- One-line HTML gating
- Gate an element with data-pelcro-entitlements="premium" and Pelcro blurs it until unlocked.
- isEntitledTo() in the SDK
- Check access in code with Pelcro.user.isEntitledTo("premium") from the JS SDK.
- Entitlements API
- Resolve a subscriber's entitlements server-side for apps, newsletters and your own backend.
- React elements
- Drop in access-controlled React elements to build custom gated experiences.
- Any-of rules
- Grant access if a subscriber has any of several entitlements, covering multiple plan tiers in one rule.
- Set once, inherit everywhere
- New content and features pick up existing entitlements with no additional code.
Last updated
FAQ
Frequently asked questions
- What is an entitlements API?
- An entitlements API tells your code what a given subscriber is allowed to access. Pelcro's resolves a reader's plan, attributes and licenses into entitlements you check with one attribute or one call. See entitlement management
- How do I gate content with Pelcro's API?
- Add data-pelcro-entitlements="premium" to an element and Pelcro gates it, or check in code with Pelcro.user.isEntitledTo("premium"). You define the entitlements once in the dashboard.
- Can I check entitlements in the browser with the JS SDK?
- Yes. The Pelcro JS SDK exposes Pelcro.user.isEntitledTo(), and there are React elements for building gated experiences on the front end.
- Can I resolve entitlements server-side?
- Yes. The entitlements API lets your backend resolve a subscriber's entitlements, which is how you gate apps, newsletters and non-web surfaces.
- Does adding new content require code changes?
- No. Because entitlements attach to products and plans, new content and features inherit the existing rules, so your catalog can grow without new access code.
- Can one rule cover multiple plan tiers?
- Yes. Grant access if a subscriber has any of several entitlements, so a single rule can unlock content for more than one plan tier at once.
Get started
Build access control on Pelcro
Gate any article, feature or app with the entitlements API, JS SDK and one-line attributes.
By submitting your email, you agree to opt in to marketing emails.








