Skip to main content
GET
/
organizations
/
{id}
/
roles
Get organization roles
curl --request GET \
  --url https://api.wacht.dev/organizations/{id}/roles \
  --cookie session_id=
[
  {
    "id": "444444444444444444",
    "organization_id": "123456789012345678",
    "name": "Admin",
    "permissions": [
      "organization:admin",
      "organization:manage_members"
    ],
    "is_system_role": false,
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z"
  }
]

Authorizations

session_id
string
cookie
required

Session-based authentication using cookies

Path Parameters

id
string<uint64>
required

Organization ID

Response

Roles retrieved successfully

id
string<uint64>

Role ID

Example:

"444444444444444444"

organization_id
string<uint64>

Organization ID

Example:

"123456789012345678"

name
string

Role name

Example:

"Admin"

permissions
string[]

Role permissions

Example:
[
"organization:admin",
"organization:manage_members"
]
is_system_role
boolean

Whether this is a system role

Example:

false

created_at
string<date-time>
updated_at
string<date-time>