> ## Documentation Index
> Fetch the complete documentation index at: https://docs.naturalead.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Available Roles

> Returns the list of all RBAC roles defined in the system. Useful for
populating role selection dropdowns in the UI.




## OpenAPI

````yaml GET /api/accounts/available-roles
openapi: 3.1.0
info:
  title: Naturalead Accounts & Teams API
  version: 1.0.0
  description: >
    API for managing accounts, team members, and RBAC roles in the Naturalead
    platform.

    All endpoints require API key authentication and are scoped to the caller's
    account.
servers:
  - url: '{baseUrl}'
    description: API server
    variables:
      baseUrl:
        default: http://localhost:3001
security:
  - BearerAuth: []
tags:
  - name: Accounts
    description: Account profile and settings
  - name: Team
    description: Team member management and role assignment
  - name: Roles
    description: RBAC role and permission introspection
paths:
  /api/accounts/available-roles:
    get:
      tags:
        - Roles
      summary: List available roles
      description: |
        Returns the list of all RBAC roles defined in the system. Useful for
        populating role selection dropdowns in the UI.
      operationId: getAvailableRoles
      responses:
        '200':
          description: Available roles
          content:
            application/json:
              schema:
                type: object
                properties:
                  roles:
                    type: array
                    items:
                      type: string
                      enum:
                        - owner
                        - integrator
                        - ai_architect
                        - operator
                        - analyst
                required:
                  - roles
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: Bearer token using an API key (format nl_live_* or nl_test_*)

````