OpenapiExt
Check user permissions
This endpoint allows third-party applications to check if a user has specific permissions using their browser access token. # Authentication Requires valid API Key via X-API-Key header # Example ```json { "accessToken": "user-access-token", "rules": [ {"resource": "article", "action": "read"}, {"resource": "article", "action": "write"} ] } ```
POST
This endpoint allows third-party applications to check if a user has specific permissions using their browser access token.
Authentication
Requires valid API Key via X-API-Key header
Example
{
"accessToken": "user-access-token",
"rules": [
{"resource": "article", "action": "read"},
{"resource": "article", "action": "write"}
]
}api_keyheader
X-API-Key<token>Client-app API key (third-party external API).
application/json- body
clientId*stringrules?array<>|nulltoken*stringPermission check completed
application/json- response
allowed*booleanuserId?|Format
uuidcurl -X POST 'https://example.com/api/ext/permission/check' \
-H 'Content-Type: application/json' \
-d '{
"clientId": "string",
"token": "string"
}'Example Response
{
"allowed": true,
"userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b"
}