Skip to Content
Roles and permissions

List permissions

GET
/api/v1/permissions

Lists every permission key you can grant to a role, with a label. Use the keys when you create or update a role.

Permission required: MANAGE_WORKSPACE_ROLES on the workspace.

Authorization

headerAuthorizationBearer <token>

API key, e.g. Authorization: Bearer sajn_svc_.... Not scope-limited: acts with its owner's workspace role.

Header Parameters

Sajn-Version?string

API version for this request. Without it, the request uses the organization's default version; an organization without a default is pinned to the latest version by its first request.

Value in"2026-09""2026-10"
Sajn-Workspace?string

ID of the workspace this request acts in, from GET /api/v1/workspaces. Without it, an API key acts in its default workspace. The token's user must be a member of the workspace; an OAuth token only accepts the workspace it was granted for. A workspace that doesn't exist or can't be reached returns 403 WORKSPACE_ACCESS_DENIED.

Response Body

Assignable workspace permissions

application/json
  1. response

Assignable workspace permissions

data*array<>
hasMore*false

Always false: the list returns every item in one response.

Defaultfalse
Value infalse
nextCursor*null

Always null: the list returns every item in one response.

Defaultnull
Example Request
curl -X GET 'https://app.sajn.se/api/v1/permissions'
Example Response
{  "data": [    {      "key": "READ_DOCUMENT",      "label": "Startdatum"    }  ],  "hasMore": false,  "nextCursor": null}

Was this page helpful?