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

# List Organization Roles

> List system and custom roles for the organization.



## OpenAPI

````yaml GET /orgs/{org_id}/iam/roles
openapi: 3.1.0
info:
  title: Timbal Platform API
  description: Public API documentation for the Timbal platform
  license:
    name: ''
  version: 2.0.0
servers:
  - url: https://api.timbal.ai
    description: Production
  - url: https://api.dev.timbal.ai
    description: Development
security: []
tags:
  - name: ace
    description: Action Control Engine (ACE) operations
  - name: analytics
    description: Project analytics
  - name: billing
    description: Subscriptions, usage, and payment-related operations
  - name: content
    description: Re-sign stored content URLs
  - name: files
    description: File operations
  - name: iam
    description: IAM — actions, roles, users, and authorization introspection
  - name: k2
    description: Knowledge Bases v2 operations
  - name: orgs
    description: Organization operations
  - name: projects
    description: Project operations
  - name: runs
    description: Execution operations
  - name: templates
    description: Public project template catalog
  - name: users
    description: Authenticated user profile
paths:
  /orgs/{org_id}/iam/roles:
    get:
      tags:
        - iam
      description: List system and custom roles for the organization.
      operationId: handler
      parameters:
        - name: org_id
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Roles for the organization
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListOrgRolesResBody'
        '403':
          description: Forbidden
      security:
        - bearer_auth: []
components:
  schemas:
    ListOrgRolesResBody:
      type: object
      required:
        - roles
      properties:
        roles:
          type: array
          items:
            $ref: '#/components/schemas/RolePreview'
          description: |-
            Roles available to this organization — system rows first, then
            custom rows alphabetically by name.
    RolePreview:
      type: object
      description: |-
        Compact role record returned by listing endpoints. Fetch a single
        role to retrieve the full grant set.
      required:
        - id
        - name
        - source
        - created_at
        - updated_at
      properties:
        created_at:
          type: string
          format: date-time
        description:
          type:
            - string
            - 'null'
        id:
          type: string
        name:
          type: string
          description: |-
            Role name. Unique per `(org_id)` for custom roles, globally unique
            for system roles.
        source:
          $ref: '#/components/schemas/RoleSource'
        updated_at:
          type: string
          format: date-time
    RoleSource:
      type: string
      description: |-
        Whether a role is a built-in preset or defined by the organization.
        `system` roles are read-only; `custom` roles can be edited or deleted
        by an organization admin.
      enum:
        - system
        - custom
  securitySchemes:
    bearer_auth:
      type: http
      scheme: bearer
      description: >-
        Timbal API key. Obtain your API key from the Timbal platform settings.
        See [Authentication](/api-reference/authentication) for more
        information.

````