GamebeastDocs
Dashboard
Organization APIRoles

Get a role and its permissions

GET
/organization/{organizationId}/v2/roles/{roleId}

Authorization

personalAccessTokenAuth
AuthorizationBearer <token>

Personal access token (prefixed gb_pat_). Acts on behalf of its owner and can never exceed the owner's own permissions. Send it as Authorization: Bearer <token>.

In: header

Path Parameters

organizationId*number
roleId*number

Response Body

application/json

curl -X GET "https://example.com/organization/0/v2/roles/0"
{  "id": 0,  "organizationId": 0,  "name": "string",  "slug": "string",  "description": "string",  "kind": "built-in",  "permissions": [    "string"  ]}