Skip to Content
Omnibase

Check permission

POST
/api/v1/permissions/check

Authorization

headerX-Session-Token<token>

Kratos session JWT token. Alternative to cookie authentication for non-browser clients.

Request Body

application/json
  1. body
namespace*string
Length1 <= length
object*string
Length1 <= length
relation*string
Length1 <= length
subject_set*

Response Body

OK

application/json
  1. response
allowed*boolean
Example Request
curl -X POST 'https://api.omnibase.tech/api/v1/permissions/check' \  -H 'Content-Type: application/json' \  -d '{  "namespace": "Tenant",  "object": "tenant_test_123",  "relation": "can_invite_user",  "subject_set": {    "namespace": "User",    "object": "550e8400-e29b-41d4-a716-446655440000"  }}'
Example Response
{  "allowed": true}