> ## 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 Exposure Types

> Returns all exposure types configured for the company.
Results are sorted alphabetically by key.

**Filtering:**
- `label` - Filter by label (case-insensitive substring match)

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




## OpenAPI

````yaml /openapi/generated-external-api.yaml get /api/external/companies/{companyId}/exposure-types
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}/exposure-types:
    get:
      tags:
        - Exposure Types
      summary: List Exposure Types
      description: |
        Returns all exposure types configured for the company.
        Results are sorted alphabetically by key.

        **Filtering:**
        - `label` - Filter by label (case-insensitive substring match)

        **Required permission:** `company:read`
      operationId: listExposureTypes
      parameters:
        - $ref: '#/components/parameters/companyId'
        - $ref: '#/components/parameters/exposureTypeLabelFilter'
      responses:
        '200':
          description: List of exposure types
          content:
            application/json:
              schema:
                type: object
                properties:
                  items:
                    type: array
                    items:
                      $ref: '#/components/schemas/ExposureType'
              examples:
                success:
                  summary: List of exposure types
                  value:
                    items:
                      - id: b5c0b0cb-6c70-4c82-a558-2840330843c4
                        key: franchise_truck_dealer
                        label: Franchise Truck Dealer
                      - id: d11bc13b-73c2-46e5-97b1-ab10b7c2b481
                        key: nonfranchise_truck_dealer
                        label: Nonfranchise Truck Dealer
                emptyList:
                  summary: No exposure types found
                  value:
                    items: []
        '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
    exposureTypeLabelFilter:
      name: label
      in: query
      schema:
        type: string
      description: Filter by label (case-insensitive substring match)
  schemas:
    ExposureType:
      type: object
      description: An exposure type configured for a company
      required:
        - id
        - key
        - label
      properties:
        id:
          type: string
          format: uuid
          description: Exposure type identifier
        key:
          type: string
          description: Machine-readable identifier (e.g., "franchise_truck_dealer")
        label:
          type: string
          description: Human-readable display name (e.g., "Franchise Truck Dealer")
    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.

````