Skip to main content
GET
/
organizations
/
permissions
/
check
Check if a user has a specific permission
curl --request GET \
  --url https://api.pcxpay.com/v1/organizations/permissions/check \
  --header 'Authorization: Bearer <token>'
{
  "user_id": "<string>",
  "resource": "<string>",
  "action": "<string>",
  "org_id": "<string>",
  "allowed": true
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

user_id
string
required
resource
string
required
action
enum<string>
required
Available options:
READ,
CREATE,
UPDATE
org_id
string

Response

Permission check result

user_id
string
resource
string
action
string
org_id
string
allowed
boolean