Atlas
Admin — Roles

List roles

Returns all roles (built-in + custom) for the admin's active organization.

GET
/api/v1/admin/roles

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "http://localhost:3001/api/v1/admin/roles"
{
  "roles": [
    {
      "id": "string",
      "orgId": "string",
      "name": "string",
      "description": "string",
      "permissions": [
        "string"
      ],
      "isBuiltin": true,
      "createdAt": "string",
      "updatedAt": "string"
    }
  ],
  "permissions": [
    "string"
  ],
  "total": 0
}
{
  "error": "string",
  "message": "string",
  "requestId": "string"
}
{
  "property1": null,
  "property2": null
}
{
  "property1": null,
  "property2": null
}
{
  "error": "string",
  "message": "string",
  "requestId": "string"
}
{
  "property1": null,
  "property2": null
}
{
  "error": "string",
  "message": "string",
  "requestId": "string"
}