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

# List the role library

> Every role with the organization's published policy, how it compares with the reference policy, and its version history.



## OpenAPI

````yaml /openapi.generated.json get /access/roles
openapi: 3.1.0
info:
  description: >-
    Public API reference. Generated from apps/engine/openapi.yaml by make
    docs-openapi-write. Do not edit.
  title: Nexio platform API
  version: '1'
servers:
  - url: https://api.usenexio.com
security: []
tags:
  - name: Access
  - name: Catalog
  - name: Conversations
  - name: Documents
  - name: Engines
  - name: Events
  - name: Feedback
  - name: Graph
  - name: Records
  - name: Roadmap
  - name: Runs
  - name: Webhooks
  - name: accounts
  - name: actions
  - name: activities
  - name: activity-feed
  - name: attachments
  - name: audit
  - name: benefit-plans
  - name: billing-transactions
  - name: carrier_documents
  - name: certificate-holders
  - name: certificate_drafts
  - name: certificates
  - name: change_feed
  - name: claims
  - name: classes
  - name: codes
  - name: commission_facts
  - name: connections
  - name: contacts
  - name: contingencies
  - name: conversations
  - name: customer
  - name: customer_contacts
  - name: deals
  - name: dependents
  - name: document_extractions
  - name: documents
  - name: drivers
  - name: eforms
  - name: employees
  - name: events
  - name: feature_requests
  - name: form-templates
  - name: invoices
  - name: leads
  - name: line_schedules_other
  - name: loss_history
  - name: machines
  - name: markets
  - name: motor-carriers
  - name: notes
  - name: opportunities
  - name: opportunity-signals
  - name: pages
  - name: personal_lines_detail
  - name: placement_choices
  - name: placement_feedback
  - name: placements
  - name: policies
  - name: policy_parties
  - name: policy_personnel
  - name: policy_transactions
  - name: premium_rows
  - name: procedures
  - name: proposals
  - name: quote_comparisons
  - name: quotes
  - name: records
  - name: register-views
  - name: renewal-entries
  - name: risk_review_choices
  - name: rollups
  - name: seats
  - name: sec-filings
  - name: service_agreements
  - name: submissions
  - name: suspenses
  - name: tasks
  - name: umbrella_underlying
  - name: underwriting_questions
  - name: uploaded_documents
  - name: vehicles
  - name: workflows
paths:
  /access/roles:
    get:
      tags:
        - Access
      summary: List the role library
      description: >-
        Every role with the organization's published policy, how it compares
        with the reference policy, and its version history.
      operationId: listAccessRoles
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessRoleLibrary'
          description: OK
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Bad Request
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Forbidden
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Not Found
        '409':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Conflict
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Internal Server Error
        '503':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Service Unavailable
      security:
        - bearer: []
components:
  schemas:
    AccessRoleLibrary:
      additionalProperties: false
      properties:
        roles:
          items:
            $ref: '#/components/schemas/AccessRole'
          type:
            - array
            - 'null'
      required:
        - roles
      type: object
    ErrorEnvelope:
      additionalProperties: false
      properties:
        code:
          description: The stable machine-readable error code. One meaning forever.
          type: string
        details:
          description: Structured detail for the code.
        message:
          description: A human-readable sentence about this occurrence.
          type: string
      required:
        - code
        - message
      type: object
    AccessRole:
      additionalProperties: false
      properties:
        current_policy:
          anyOf:
            - $ref: '#/components/schemas/AccessPolicy'
            - type: 'null'
        current_version:
          format: int64
          type: integer
        display_name:
          type: string
        matches_reference:
          type: boolean
        primary:
          type: boolean
        reference_diff:
          $ref: '#/components/schemas/PolicyDiff'
        role:
          type: string
        system_grant:
          type: boolean
        versions:
          items:
            $ref: '#/components/schemas/PolicyVersionSummary'
          type:
            - array
            - 'null'
      required:
        - role
        - display_name
        - primary
        - system_grant
        - current_version
        - current_policy
        - matches_reference
        - versions
      type: object
    AccessPolicy:
      additionalProperties: false
      properties:
        datasets:
          additionalProperties:
            $ref: '#/components/schemas/DatasetRule'
          type: object
        denied_fields:
          items:
            type: string
          type:
            - array
            - 'null'
        display_name:
          type: string
        documents:
          additionalProperties:
            type: string
          type: object
        schema_version:
          format: int64
          type: integer
        surfaces:
          additionalProperties:
            type: string
          type: object
        workflows:
          additionalProperties:
            $ref: '#/components/schemas/WorkflowRule'
          type: object
      required:
        - schema_version
        - surfaces
        - datasets
        - workflows
        - denied_fields
      type: object
    PolicyDiff:
      additionalProperties: false
      properties:
        datasets:
          items:
            $ref: '#/components/schemas/PolicyDiffEntry'
          type:
            - array
            - 'null'
        denied_fields:
          items:
            $ref: '#/components/schemas/PolicyDiffEntry'
          type:
            - array
            - 'null'
        documents:
          items:
            $ref: '#/components/schemas/PolicyDiffEntry'
          type:
            - array
            - 'null'
        surfaces:
          items:
            $ref: '#/components/schemas/PolicyDiffEntry'
          type:
            - array
            - 'null'
        workflows:
          items:
            $ref: '#/components/schemas/PolicyDiffEntry'
          type:
            - array
            - 'null'
      type: object
    PolicyVersionSummary:
      additionalProperties: false
      properties:
        published_at:
          format: date-time
          type: string
        published_by:
          type: string
        reason:
          type: string
        version:
          format: int64
          type: integer
      required:
        - version
        - published_by
        - reason
        - published_at
      type: object
    DatasetRule:
      additionalProperties: false
      properties:
        access:
          type: string
        scope:
          type: string
      required:
        - scope
        - access
      type: object
    WorkflowRule:
      additionalProperties: false
      properties:
        actions:
          items:
            type: string
          type:
            - array
            - 'null'
        execution:
          additionalProperties:
            type: string
          type: object
        scope:
          type: string
      required:
        - scope
        - actions
        - execution
      type: object
    PolicyDiffEntry:
      additionalProperties: false
      properties:
        name:
          type: string
        published:
          type: string
        reference:
          type: string
      required:
        - name
        - published
        - reference
      type: object
  securitySchemes:
    bearer:
      description: The org's platform API key.
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.