viakite
Dashboard

API/Roles and groups/The organization's custom roles, and the built-in ones

The organization's custom roles, and the built-in ones

GET/v1/orgs/{org}/roles
Secret keyNeeds members.viewapi.vk.viabio.me

Path parameters

orgstringrequired
The organization's id (org_…).

Query parameters

limitinteger1–200default 50
How many rows to return, 1 to 200.
cursorstring
The next_cursor of the previous page. Opaque.

Responses

A page of custom roles, with every built-in role.

dataRole[]required
A custom role.
Show 6 fields
idstringrequired
A prefixed ULID; the prefix names the kind (prj_… a project, org_… an organization).
namestringrequired
descriptionstringrequired
permissionsstring[]required
created_atstring · date-timerequired
A time in UTC, ISO 8601.
updated_atstring · date-timerequired
A time in UTC, ISO 8601.
next_cursorstring
built_in_rolesBuiltInRole[]required
Built-in roles can't be edited; they can be copied.
Show 4 fields
keystringrequired
owneradminmemberviewerbilling
namestringrequired
descriptionstringrequired
permissionsstring[]required
Example response
1{
2 "data": [
3 {
4 "id": "rol_01JD8Q2M4W9XK3T7B5",
5 "name": "Production",
6 "description": "string",
7 "permissions": [
8 "string"
9 ],
10 "created_at": "2026-11-21T09:30:00Z",
11 "updated_at": "2026-11-21T09:30:00Z"
12 }
13 ],
14 "next_cursor": "string",
15 "built_in_roles": [
16 {
17 "key": "owner",
18 "name": "Production",
19 "description": "string",
20 "permissions": [
21 "string"
22 ]
23 }
24 ]
25}