Skip to main content
GET
http://localhost:3000
/
permissions
/
by-scope
/
{scopeId}
curl -X GET 'https://api.example.com/permissions/by-scope/scope_123' \
  -H 'Authorization: Bearer YOUR_TOKEN'
[
  {
    "id": "perm_1",
    "name": "read:documents",
    "description": "Can read documents",
    "scopeId": "scope_123"
  },
  {
    "id": "perm_2",
    "name": "write:documents",
    "description": "Can write documents",
    "scopeId": "scope_123"
  }
]

Path Parameters

scopeId
string
required
The scope ID to get permissions for

Response

Returns an array of permission objects belonging to the specified scope.
permissions
array
curl -X GET 'https://api.example.com/permissions/by-scope/scope_123' \
  -H 'Authorization: Bearer YOUR_TOKEN'
[
  {
    "id": "perm_1",
    "name": "read:documents",
    "description": "Can read documents",
    "scopeId": "scope_123"
  },
  {
    "id": "perm_2",
    "name": "write:documents",
    "description": "Can write documents",
    "scopeId": "scope_123"
  }
]