Herald
OpenapiPermission

Permission check

Spec: POST /api/permission/check

POST
/api/permission/check

Spec: POST /api/permission/check

Request Body

application/json
  1. body
clientId*string
rules?array<>|null
token*string

Response Body

Permission check result

application/json
  1. response
allowed*boolean
userId?|
Formatuuid
Example Request
curl -X POST 'https://example.com/api/permission/check' \
  -H 'Content-Type: application/json' \
  -d '{
  "clientId": "string",
  "token": "string"
}'
Example Response
{
  "allowed": true,
  "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b"
}