We’ve migrated our documentation to a new site, which means some URLs have changed.
Subscriptions

How to get a list of user accesses on the frontend?

In order to retrieve a list of user accesses, you can run this API call on the frontend:

tp.api.callApi("/access/list", {}, function(response) {console.log(response)});

The response will contain a list of the accesses the user has. You can then implement your own logic to for example show or hide specific content on your website, based on access data this API call returns.

Last updated: