Team Roles

Returns all roles that can be assigned to members within this team. Includes both global assignable system roles (Administrator, Member, Chat-only) and the team's own custom roles. Super Admin and Owner are excluded as they are not assignable.

get/api/v1/teams/roles

Request

Response

List of roles for the team

status'error' | 'success'

The status of the response

Example response

{
  "status": "success",
  "data": [
    {
      "id": 1,
      "name": "Content Editor",
      "description": "Can manage content",
      "type": "local",
      "has_access_to_projects": true,
      "agents": [
        1,
        2
      ],
      "permissions": [
        "Create Conversation",
        "Export Conversation"
      ],
      "created_at": "2023-04-30 16:43:53",
      "updated_at": "2023-04-30 16:43:53"
    }
  ]
}

Changes