Authentication / Tokensadvanced

Permission Claim Object JSON Example

A structured permission object that makes RBAC and fine-grained claims easy to reason about.

Real-world use case: Use this for auth middleware, frontend guards, and admin policy previews.
1{
2 "role": "billing_admin",
3 "workspaceId": "ws_884",
4 "permissions": {
5 "invoices": [
6 "read",
7 "write"
8 ],
9 "subscriptions": [
10 "read"
11 ],
12 "team": [
13 "invite"

Where this shape shows up in production

RBAC middleware
Policy previews
Admin debugging

Related examples