Apps
Check Access
This endpoint checks the given access expression.
GET
/
check
/
{access_expression}
Usage
This endpoint is used to check if the current user has access to a given access expression. It is used in the hasAccess
function of the SDK. You can find more information about access expressions in the Expressions section.
Authorizations
Authorization
string
headerrequiredThe users access token, this can be fetched from the whop_user_token
cookie.
Path Parameters
access_expression
string
requiredThe access expression to be checked.
Response
200 - application/json
access
boolean
Was this page helpful?