> ## 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 Configuration Presets

> Returns a paginated list of coverage limit presets for the company.

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

**Sorting:**
- `createdAt` (default), `updatedAt`

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




## OpenAPI

````yaml /openapi/generated-external-api.yaml get /api/external/companies/{companyId}/configuration/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/presets:
    get:
      tags:
        - Configuration Presets
      summary: List Configuration Presets
      description: |
        Returns a paginated list of coverage limit presets for the company.

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

        **Sorting:**
        - `createdAt` (default), `updatedAt`

        **Required permission:** `company:read`
      operationId: listConfigurationPresets
      parameters:
        - $ref: '#/components/parameters/companyId'
        - $ref: >-
            #/components/parameters/configurationRatingPresetCoverageTypeKeyFilter
        - $ref: '#/components/parameters/configurationRatingPresetIdFilter'
        - $ref: '#/components/parameters/configurationFieldSortBy'
        - $ref: '#/components/parameters/sortDirection'
        - $ref: '#/components/parameters/page'
      responses:
        '200':
          description: Paginated list of coverage limit presets
          content:
            application/json:
              schema:
                type: object
                required:
                  - items
                  - totalCount
                properties:
                  items:
                    type: array
                    items:
                      $ref: '#/components/schemas/ConfigurationRatingPreset'
                  totalCount:
                    type: integer
                    description: Total number of matching presets across all pages
              examples:
                success:
                  summary: List of coverage limit presets
                  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
                        retroactiveDate: '2024-01-15'
                        waitingPeriodSettings: null
                        deductibleSettings:
                          defaultAmount:
                            path: policy.ratingData.data.retention.value
                        limitSettings: null
                        retroactiveDateSettings: null
                        priorPendingLitigationDateSettings: null
                        createdAt: '2025-01-15T10:30:00.000+00:00'
                        updatedAt: '2025-01-15T10:30:00.000+00:00'
                    totalCount: 1
                emptyList:
                  summary: No presets found
                  value:
                    items: []
                    totalCount: 0
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '500':
          $ref: '#/components/responses/InternalServerError'
components:
  parameters:
    companyId:
      name: companyId
      in: path
      required: true
      schema:
        type: string
        format: uuid
      description: Company identifier
    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)
    configurationFieldSortBy:
      name: sortBy
      in: query
      schema:
        type: string
        enum:
          - createdAt
          - updatedAt
        default: createdAt
      description: Field to sort by (default createdAt)
    sortDirection:
      name: sortDirection
      in: query
      schema:
        type: string
        enum:
          - asc
          - desc
        default: desc
      description: Sort direction (default desc)
    page:
      name: page
      in: query
      schema:
        type: integer
        minimum: 1
        default: 1
      description: Page number (1-based, default 1, page size 50)
  schemas:
    ConfigurationRatingPreset:
      type: object
      description: A coverage limit preset
      required:
        - id
        - coverageTypeKey
        - setName
        - isDefault
        - limits
      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
        retroactiveDate:
          type: string
          format: date
          nullable: true
          description: Retroactive date (YYYY-MM-DD)
        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)
        createdAt:
          type: string
          format: date-time
          nullable: true
          description: When the preset was created (ISO 8601)
        updatedAt:
          type: string
          format: date-time
          nullable: true
          description: When the preset was last updated (ISO 8601)
    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.

````