Get a workspace role
You're viewing API version
2026-09, which is deprecated and stops working on October 1, 2027. To move your integration, see Upgrading to 2026-10.GET
Get a single workspace role, including its permission keys and member count.
Permission required: MANAGE_WORKSPACE_ROLES on the workspace.
header
AuthorizationBearer <token>Personal API key, e.g. Authorization: Bearer sajn_sk_.... Not scope-limited — acts as the issuing user.
id*stringWorkspace role
application/json- response
Workspace role
id*stringImmutable role identifier — pass this to addMember
name*stringHuman-readable role name. Editable by org admins.
isDefault*booleanTrue for the role that newly-invited members get by default
permissions*array<>Permission keys granted by this role
memberCount*numberNumber of workspace members currently assigned this role
createdAt*unknownupdatedAt*unknowncurl -X GET 'https://app.sajn.se/api/v1/workspace-roles/string' \ -H 'authorization: string'Example Response
{ "id": "string", "name": "string", "isDefault": true, "permissions": [ "READ_DOCUMENT" ], "memberCount": 0, "createdAt": null, "updatedAt": null}Was this page helpful?