List the roles a member may hold

The roles, highest first, each with the scopes it holds and the rights no scope carries.

GET/v1/roles

The roles, highest first, each with the scopes it holds and the rights no scope carries.

A key with the members:read scope.

Request

curl "https://api.pod.mapier.ai/v1/roles" \
  -H "Authorization: Bearer $POD_API_KEY"

Answer

200. The roles.

200
{
  "data": [
    {
      "name": "owner",
      "rank": 0,
      "scopes": ["sandboxes:read"],
      "every_project": false,
      "manages_members": false,
      "description": "example"
    }
  ],
  "next_cursor": null
}
FieldTypeAlwaysWhat it is
dataRoleInfo[]Yes
next_cursorstring | nullYes

Errors

The refusals this call is known for: forbidden. Any call can also answer unauthorized, rate_limited, unavailable or internal; the error list says what each means and when to send the call again.

In the SDKs

ClientCall
TypeScriptpod.organisations.roles()
Pythonpod.organisations.roles()