Skip to Content

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
/api/v1/workspace-roles/{id}

Get a single workspace role, including its permission keys and member count.

Permission required: MANAGE_WORKSPACE_ROLES on the workspace.

Authorization

headerAuthorizationBearer <token>

Personal API key, e.g. Authorization: Bearer sajn_sk_.... Not scope-limited — acts as the issuing user.

Path Parameters

id*string

Header Parameters

authorization*string

Bearer token for API authentication

Response Body

Workspace role

application/json
  1. response

Workspace role

id*string

Immutable role identifier — pass this to addMember

name*string

Human-readable role name. Editable by org admins.

isDefault*boolean

True for the role that newly-invited members get by default

permissions*array<>

Permission keys granted by this role

memberCount*number

Number of workspace members currently assigned this role

createdAt*unknown
updatedAt*unknown
Example Request
curl -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?