v1

latestOpenAPI 3.1.02026-08-063776831.4 MB
Permission

Get All Permissions

Returns all permissions from the database

get/permissions

Query parameters

pageinteger

Page number for offset based pagination (0-based index). Defaults to 0 if not specified.

sizeinteger

Number of items per page. Defaults to 100 if not specified.

Headers

tenant-idstring

Response

Permissions retrieved successfully

totalCountinteger

Total number of permissions

pageinteger

Current page number

sizeinteger

Number of items per page

hasNextboolean

Whether there is a next page

hasPreviousboolean

Whether there is a previous page

Example response

{
  "data": [
    {
      "id": "perm-123-456-789",
      "resource": "user",
      "action": "read",
      "description": "Allows reading user profiles",
      "createdAt": "2022-03-10T12:15:50-04:00",
      "updatedAt": "2022-03-10T12:15:50-04:00"
    }
  ]
}