Auth API reference

Auth API · Roles

get/v1/apps/{app_id}/roles/permissionsAuth

List all available permissions

Path parameters

app_id*string

Id of the app.

Response · 200

Array of object

id*string

Unique identifier of the permission.

app_id*string

App scope. `null` for system permissions.

resource*string

Resource half of the permission key (`resource.action`).

Example: "user"

action*string

Action half of the permission key (`resource.action`).

Example: "read"

description*string

Free-text description of the permission, or `null`.

created_at*string · date-time

When the permission was created (ISO 8601).

is_system*boolean

True iff the row is a system (shared) permission.

Example

Request

GET https://api.auth.productcraft.co/v1/apps/{app_id}/roles/permissions
Authorization: Bearer YOUR_TOKEN

Response

[
  {
    "id": "string",
    "app_id": "string",
    "resource": "user",
    "action": "read",
    "description": "string",
    "created_at": "2026-01-01T00:00:00.000Z",
    "is_system": false
  }
]