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

# List Rating Revision Presets

> Returns all coverage limit presets from a rating engine
revision's config JSON (`config.coverageLimitPresets`). This endpoint is
for **rating-engine companies**.

For non-rating-engine companies, use `GET /configuration/presets` instead.

**Filtering:**
- `coverageTypeKey` - Filter by coverage type (exact match)
- `id` - Filter by preset ID (single UUID or array)

**Sorting:**
- `setName` (default), `coverageTypeKey`
- Default direction: ascending

**Required permission:** `company:read`




## OpenAPI

````yaml /openapi/generated-external-api.yaml get /api/external/companies/{companyId}/configuration/rating/presets
openapi: 3.0.3
info:
  title: AI Insurance External API
  description: External API for AI Insurance platform
  version: 1.0.0
  contact:
    email: support@aiinsurance.io
servers:
  - url: https://app.aiinsurance.io
    description: Production
security:
  - ApiKeyAuth: []
paths:
  /api/external/companies/{companyId}/configuration/rating/presets:
    get:
      tags:
        - Configuration Rating Presets
      summary: List Rating Revision Presets
      description: >
        Returns all coverage limit presets from a rating engine

        revision's config JSON (`config.coverageLimitPresets`). This endpoint is

        for **rating-engine companies**.


        For non-rating-engine companies, use `GET /configuration/presets`
        instead.


        **Filtering:**

        - `coverageTypeKey` - Filter by coverage type (exact match)

        - `id` - Filter by preset ID (single UUID or array)


        **Sorting:**

        - `setName` (default), `coverageTypeKey`

        - Default direction: ascending


        **Required permission:** `company:read`
      operationId: listRatingRevisionPresets
      parameters:
        - $ref: '#/components/parameters/companyId'
        - $ref: '#/components/parameters/ratingEngineRevisionId'
        - $ref: >-
            #/components/parameters/configurationRatingPresetCoverageTypeKeyFilter
        - $ref: '#/components/parameters/configurationRatingPresetIdFilter'
        - $ref: '#/components/parameters/ratingRevisionPresetSortBy'
        - $ref: '#/components/parameters/ratingRevisionPresetSortDirection'
      responses:
        '200':
          description: List of coverage limit presets from the revision config
          content:
            application/json:
              schema:
                type: object
                required:
                  - items
                properties:
                  items:
                    type: array
                    items:
                      $ref: '#/components/schemas/RatingRevisionPreset'
              examples:
                success:
                  summary: List of presets from revision config
                  value:
                    items:
                      - id: 550e8400-e29b-41d4-a716-446655440100
                        coverageTypeKey: general_liability
                        setName: $1M/$2M GL
                        isDefault: true
                        limits:
                          limits:
                            - id: a1b2c3d4-e5f6-7890-abcd-ef1234567890
                              name: Per Occurrence
                              amount: 1000000
                            - id: b2c3d4e5-f6a7-8901-bcde-f12345678901
                              name: Aggregate
                              amount: 2000000
                          allowLimitEdits: true
                        defenseInsideLimit: outside
                        deductible: 5000
                        waitingPeriodSettings: null
                        deductibleSettings:
                          defaultAmount:
                            path: policy.ratingData.data.retention.value
                        limitSettings: null
                        retroactiveDateSettings: null
                        priorPendingLitigationDateSettings: null
                emptyList:
                  summary: No presets found
                  value:
                    items: []
        '400':
          description: Bad Request - Validation error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                missingRevisionId:
                  summary: Missing or invalid ratingEngineRevisionId
                  value:
                    error:
                      code: InvalidProperties
                      message: 'ratingEngineRevisionId: The value is not a uuidv4'
                      details:
                        - field: ratingEngineRevisionId
                          message: The value is not a uuidv4
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          description: Rating engine revision not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                revisionNotFound:
                  summary: Revision does not exist or does not belong to this company
                  value:
                    error:
                      code: NotFoundError
                      message: >-
                        Rating engine revision not found:
                        e06153b8-53c8-4305-bc23-0b67450ec450
        '500':
          $ref: '#/components/responses/InternalServerError'
components:
  parameters:
    companyId:
      name: companyId
      in: path
      required: true
      schema:
        type: string
        format: uuid
      description: Company identifier
    ratingEngineRevisionId:
      name: ratingEngineRevisionId
      in: query
      required: true
      schema:
        type: string
        format: uuid
      description: The rating engine revision ID (must exist and belong to the company)
    configurationRatingPresetCoverageTypeKeyFilter:
      name: coverageTypeKey
      in: query
      schema:
        type: string
      description: Filter by coverage type key (exact match)
    configurationRatingPresetIdFilter:
      name: id
      in: query
      schema:
        oneOf:
          - type: string
            format: uuid
          - type: array
            items:
              type: string
              format: uuid
      description: Filter by preset ID (single UUID or array of UUIDs)
    ratingRevisionPresetSortBy:
      name: sortBy
      in: query
      schema:
        type: string
        enum:
          - setName
          - coverageTypeKey
        default: setName
      description: Field to sort by (default setName)
    ratingRevisionPresetSortDirection:
      name: sortDirection
      in: query
      schema:
        type: string
        enum:
          - asc
          - desc
        default: asc
      description: Sort direction (default asc)
  schemas:
    RatingRevisionPreset:
      type: object
      description: A coverage limit preset stored in a rating engine revision's config JSON
      required:
        - id
        - coverageTypeKey
        - setName
        - isDefault
        - limits
        - defenseInsideLimit
        - deductible
        - waitingPeriodSettings
        - deductibleSettings
        - limitSettings
        - retroactiveDateSettings
        - priorPendingLitigationDateSettings
      properties:
        id:
          type: string
          format: uuid
          description: Preset identifier
        coverageTypeKey:
          type: string
          description: Coverage type key this preset belongs to
        setName:
          type: string
          description: Display name for this preset
        isDefault:
          type: boolean
          description: Whether this is the default preset for its coverage type
        limits:
          type: object
          description: Limit definitions
          properties:
            limits:
              type: array
              items:
                type: object
                properties:
                  id:
                    type: string
                  name:
                    type: string
                  amount:
                    oneOf:
                      - type: number
                      - type: string
            allowLimitEdits:
              type: boolean
        defenseInsideLimit:
          type: string
          nullable: true
          enum:
            - inside
            - outside
          description: Whether defense costs are inside or outside the limit
        deductible:
          type: number
          nullable: true
          description: Deductible amount in dollars
        waitingPeriodSettings:
          type: object
          nullable: true
          description: Waiting period configuration (opaque JSON)
        deductibleSettings:
          type: object
          nullable: true
          description: Deductible default amount configuration (opaque JSON)
        limitSettings:
          type: object
          nullable: true
          description: Limit default amounts configuration (opaque JSON)
        retroactiveDateSettings:
          type: object
          nullable: true
          description: Retroactive date default amount configuration (opaque JSON)
        priorPendingLitigationDateSettings:
          type: object
          nullable: true
          description: Prior/pending litigation date configuration (opaque JSON)
    ErrorResponse:
      type: object
      description: Standard error response for all external API endpoints
      required:
        - error
      properties:
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
              description: Machine-readable error code
              example: VALIDATION_ERROR
            message:
              type: string
              description: Human-readable error message
              example: 'submissionId: Required field is missing'
            details:
              type: array
              description: Additional details for validation errors (field-level errors)
              items:
                type: object
                properties:
                  field:
                    type: string
                    description: The field that caused the error
                    example: submissionId
                  message:
                    type: string
                    description: Description of the field error
                    example: Required field is missing
  responses:
    Unauthorized:
      description: Unauthorized - Invalid or missing API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          examples:
            missingApiKey:
              summary: Missing API key
              value:
                error:
                  code: UNAUTHORIZED
                  message: Authorization header is required
            bearerTokenNotAllowed:
              summary: Bearer token used instead of API key
              value:
                error:
                  code: UNAUTHORIZED
                  message: External API endpoints require API key authentication
    Forbidden:
      description: Forbidden - Insufficient permissions
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          examples:
            insufficientPermissions:
              summary: Insufficient permissions
              value:
                error:
                  code: FORBIDDEN
                  message: Insufficient permissions to perform this action
    InternalServerError:
      description: Internal Server Error - Unexpected error occurred
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          examples:
            internalError:
              summary: Unexpected server error
              value:
                error:
                  code: INTERNAL_ERROR
                  message: An unexpected error occurred. Please try again later.
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: >-
        API key authentication. Include your API key in the Authorization
        header.

````