> ## 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.

# Get My Roles

> Returns the authenticated user's roles and resolved permissions for
the current account. Useful for client-side RBAC gating.




## OpenAPI

````yaml GET /api/accounts/current/my-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/current/my-roles:
    get:
      tags:
        - Roles
      summary: Get current user's roles and permissions
      description: |
        Returns the authenticated user's roles and resolved permissions for
        the current account. Useful for client-side RBAC gating.
      operationId: getMyRoles
      responses:
        '200':
          description: User roles and permissions
          content:
            application/json:
              schema:
                type: object
                properties:
                  roles:
                    type: array
                    items:
                      type: string
                      enum:
                        - owner
                        - integrator
                        - ai_architect
                        - operator
                        - analyst
                    description: Roles assigned to the user in this account
                  permissions:
                    type: array
                    items:
                      type: string
                    description: Resolved permissions derived from the roles
                required:
                  - roles
                  - permissions
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: Bearer token using an API key (format nl_live_* or nl_test_*)

````