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

> Returns every export preset saved by any user of the company. An export preset is a named, ordered list of export column keys that one user saved for one entity type.

Use the optional `entityType` query parameter to return only presets for one entity type. Results are not paginated: every matching preset is returned, ordered by `entityType`, then `name`. Preset names are not unique, so two presets with the same name may both be returned.

**Required permission:** `company.export_preset:read`




## OpenAPI

````yaml /openapi/generated-external-api.yaml get /api/external/companies/{companyId}/export-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}/export-presets:
    get:
      tags:
        - Export Presets
      summary: List Export Presets
      description: >
        Returns every export preset saved by any user of the company. An export
        preset is a named, ordered list of export column keys that one user
        saved for one entity type.


        Use the optional `entityType` query parameter to return only presets for
        one entity type. Results are not paginated: every matching preset is
        returned, ordered by `entityType`, then `name`. Preset names are not
        unique, so two presets with the same name may both be returned.


        **Required permission:** `company.export_preset:read`
      operationId: listExportPresets
      parameters:
        - $ref: '#/components/parameters/companyId'
        - name: entityType
          in: query
          required: false
          schema:
            type: string
            minLength: 1
          description: >-
            Return only presets whose `entityType` matches exactly (e.g.
            `policy`).
      responses:
        '200':
          description: List of export presets
          content:
            application/json:
              schema:
                type: object
                properties:
                  items:
                    type: array
                    items:
                      $ref: '#/components/schemas/ExportPreset'
                  totalCount:
                    type: integer
                    description: Total number of export presets returned
              examples:
                success:
                  summary: Export presets from two owners
                  value:
                    items:
                      - id: 3f2b8c1e-5d4a-4e6f-9a7b-1c2d3e4f5a6b
                        entityType: event
                        name: Claims summary
                        fieldKeys:
                          - eventNumber
                          - status
                          - dateOfLoss
                        owner:
                          id: auth0|64f1a2b3c4d5e6f7a8b9c0d1
                          name: Jane Smith
                          email: jane.smith@example.com
                      - id: 7a6b5c4d-3e2f-4a1b-8c9d-0e1f2a3b4c5d
                        entityType: policy
                        name: Renewals
                        fieldKeys:
                          - policyNumber
                          - policyEndDate
                          - premium
                        owner:
                          id: auth0|64f1a2b3c4d5e6f7a8b9c0d2
                          name: John Doe
                          email: john.doe@example.com
                    totalCount: 2
        '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
  schemas:
    ExportPreset:
      type: object
      description: >-
        A named, ordered list of export column keys that one user saved for one
        entity type
      properties:
        id:
          type: string
          format: uuid
          description: Unique identifier for the export preset
        entityType:
          type: string
          nullable: true
          description: >-
            Entity type the preset exports (e.g. `event`, `insured`, `policy`,
            `quote`), or `null` when the stored preset has none (legacy presets
            were saved without validation)
        name:
          type: string
          nullable: true
          description: >-
            Name the user gave the preset, or `null` when the stored preset has
            none (legacy presets were saved without validation). Names are not
            unique.
        fieldKeys:
          type: array
          items:
            type: string
          description: >-
            Ordered export column keys. Empty when the stored preset has no
            valid field list.
        owner:
          type: object
          allOf:
            - $ref: '#/components/schemas/ExportPresetOwner'
          nullable: true
          description: The user who saved the preset, or `null` if the preset has no owner
      required:
        - id
        - entityType
        - name
        - fieldKeys
        - owner
    ExportPresetOwner:
      type: object
      description: The user who saved the preset
      properties:
        id:
          type: string
          description: Unique identifier of the user who saved the preset
        name:
          type: string
          nullable: true
          description: Name of the user who saved the preset
        email:
          type: string
          nullable: true
          description: Email address of the user who saved the preset
      required:
        - id
        - name
        - email
    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.

````