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

# List a carrier’s line results

> Requires the organization’s NAIC dataset grant after acceptance of the NAIC terms. The grant is checked before carrier lookup on every request. Each successful request costs $0.02 plus $0.01 per returned observation. Failed requests are not charged; repeated successful reads are charged again. Read reported Part 1B premium and IEE Part 3 underwriting observations, preserving each exhibit, source company, year and line as a separate resource. Whole US dollars; IEE money is scaled from thousands. Null is not zero; negative values are preserved. Supply both from and to (inclusive, at most eight years), or omit both for the latest loaded year in the selected exhibits. Optional exhibit, exact line or lineFamily filters. Families resolve separately by exhibit/year; exact codes never expand. Coverage describes loaded exhibit-years before filtering, not completeness. Line 35 is a total and line 34 aggregate write-ins; never sum them with their components. Individual write-ins, footnotes, calculated ratios and cross-exhibit joins are not included. Ordered by source company, ascending year, exhibit and line code (text ordering). Repeat original filters and limit with nextCursor. Omitted year bounds remain pinned; cursors bind caller, carrier identifiers and query and expire after 24 hours. Live paging is not a snapshot. Read returned lineResults[].id at GET /insurance/carriers/{carrierId}/line-results/{id}. Read-only; private, no-store.



## OpenAPI

````yaml /openapi.json get /insurance/carriers/{carrierId}/line-results
openapi: 3.0.3
info:
  title: Effective API
  version: 2.0.0
  description: The public Effective REST API. Authenticate using an Effective API key.
servers:
  - url: https://api.effectiveai.app/api/v2
    description: Production
security:
  - bearerAuth: []
paths:
  /insurance/carriers/{carrierId}/line-results:
    get:
      tags:
        - NAIC statutory data
      summary: List a carrier’s line results
      description: >-
        Requires the organization’s NAIC dataset grant after acceptance of the
        NAIC terms. The grant is checked before carrier lookup on every request.
        Each successful request costs $0.02 plus $0.01 per returned observation.
        Failed requests are not charged; repeated successful reads are charged
        again. Read reported Part 1B premium and IEE Part 3 underwriting
        observations, preserving each exhibit, source company, year and line as
        a separate resource. Whole US dollars; IEE money is scaled from
        thousands. Null is not zero; negative values are preserved. Supply both
        from and to (inclusive, at most eight years), or omit both for the
        latest loaded year in the selected exhibits. Optional exhibit, exact
        line or lineFamily filters. Families resolve separately by exhibit/year;
        exact codes never expand. Coverage describes loaded exhibit-years before
        filtering, not completeness. Line 35 is a total and line 34 aggregate
        write-ins; never sum them with their components. Individual write-ins,
        footnotes, calculated ratios and cross-exhibit joins are not included.
        Ordered by source company, ascending year, exhibit and line code (text
        ordering). Repeat original filters and limit with nextCursor. Omitted
        year bounds remain pinned; cursors bind caller, carrier identifiers and
        query and expire after 24 hours. Live paging is not a snapshot. Read
        returned lineResults[].id at GET
        /insurance/carriers/{carrierId}/line-results/{id}. Read-only; private,
        no-store.
      operationId: listCarrierLineResults
      parameters:
        - schema:
            type: string
            minLength: 1
            maxLength: 100
            description: >-
              Managed carrier_ ID or bare checked code. Legacy five-digit NAIC
              codes and naic: codes are also accepted.
          required: true
          description: >-
            Managed carrier_ ID or bare checked code. Legacy five-digit NAIC
            codes and naic: codes are also accepted.
          name: carrierId
          in: path
        - schema:
            type: string
            pattern: ^\d{4}$
            description: >-
              Inclusive first statement year; supply with to. At most eight
              years. Omit both for the latest loaded year across the selected
              exhibits, before line filtering.
          required: false
          description: >-
            Inclusive first statement year; supply with to. At most eight years.
            Omit both for the latest loaded year across the selected exhibits,
            before line filtering.
          name: from
          in: query
        - schema:
            type: string
            pattern: ^\d{4}$
            description: >-
              Inclusive last statement year; supply with from. Use equal bounds
              for one year. Omitted bounds stay pinned in a continuation.
          required: false
          description: >-
            Inclusive last statement year; supply with from. Use equal bounds
            for one year. Omitted bounds stay pinned in a continuation.
          name: to
          in: query
        - schema:
            type: string
            enum:
              - part-1b
              - iee-part-3
            description: >-
              Read Part 1B premium observations or IEE Part 3 underwriting
              observations. Omit for both, as separate resources.
          required: false
          description: >-
            Read Part 1B premium observations or IEE Part 3 underwriting
            observations. Omit for both, as separate resources.
          name: exhibit
          in: query
        - schema:
            type: string
            pattern: ^\d{2}(?:\.\d{1,2})?$
            description: >-
              Exact statement code. Must be catalog-known and valid in at least
              one selected exhibit in every requested year. Invalid exhibit/year
              combinations select no rows; never expands a parent. Cannot
              combine with lineFamily.
          required: false
          description: >-
            Exact statement code. Must be catalog-known and valid in at least
            one selected exhibit in every requested year. Invalid exhibit/year
            combinations select no rows; never expands a parent. Cannot combine
            with lineFamily.
          name: line
          in: query
        - schema:
            type: string
            enum:
              - allied-lines
              - cmp
              - group-ah
              - other-ah
              - inland-marine
              - ppa-liability
              - commercial-auto-liability
              - auto-physical-damage
            description: >-
              Resolve separately for each exhibit and year. See lineSelections
              for the selected codes; no summation.
          required: false
          description: >-
            Resolve separately for each exhibit and year. See lineSelections for
            the selected codes; no summation.
          name: lineFamily
          in: query
        - schema:
            type: integer
            minimum: 1
            maximum: 200
            default: 50
            description: Maximum number of items to return (1-200).
          required: false
          description: Maximum number of items to return (1-200).
          name: limit
          in: query
        - schema:
            type: string
            description: '`nextCursor` from the previous page.'
          required: false
          description: '`nextCursor` from the previous page.'
          name: cursor
          in: query
      responses:
        '200':
          description: One page of line observations.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V2CarrierLineResults'
        '400':
          description: >-
            invalid_request for invalid, conflicting, unknown or repeated scalar
            inputs; invalid_id for a malformed carrier; invalid_cursor requires
            restarting traversal.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V2CodedError'
        '401':
          description: Authentication required.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V2CodedError'
        '403':
          description: >-
            dataset_not_enabled: NAIC terms and organization entitlement are
            required. No charge. Other credential restrictions use forbidden.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V2CodedError'
        '404':
          description: >-
            not_found for an unknown carrier or missing/wrong-parent item;
            statutory_data_not_found when the carrier has no loaded observations
            in the selected exhibits and year range. This does not prove it did
            not file.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V2CodedError'
        '500':
          description: Unexpected server failure.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V2CodedError'
        '503':
          description: A dependency is unavailable; respect Retry-After.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V2CodedError'
      security:
        - bearerAuth: []
components:
  schemas:
    V2CarrierLineResults:
      type: object
      properties:
        from:
          type: integer
          minimum: 1900
          maximum: 9999
        to:
          type: integer
          minimum: 1900
          maximum: 9999
        coverage:
          type: array
          items:
            type: object
            properties:
              year:
                type: integer
                minimum: 1900
                maximum: 9999
              exhibit:
                type: string
                enum:
                  - part-1b
                  - iee-part-3
              available:
                type: boolean
            required:
              - year
              - exhibit
              - available
          maxItems: 16
          description: >-
            For every selected year/exhibit: whether any rows exist for any of
            this carrier’s source codes, before line filtering. True does not
            imply complete company/line/field coverage.
        lineSelections:
          type: array
          items:
            type: object
            properties:
              year:
                type: integer
                minimum: 1900
                maximum: 9999
              exhibit:
                type: string
                enum:
                  - part-1b
                  - iee-part-3
              codes:
                type: array
                items:
                  type: string
            required:
              - year
              - exhibit
              - codes
          maxItems: 16
          description: >-
            Empty without a line filter. Otherwise each year/exhibit lists its
            selected codes; an empty codes array means an exact code is outside
            that exhibit’s known era.
        lineResults:
          type: array
          items:
            $ref: '#/components/schemas/V2CarrierLineResult'
        nextCursor:
          type: string
          nullable: true
          description: Cursor for the next page, or null on the last page.
      required:
        - from
        - to
        - coverage
        - lineSelections
        - lineResults
        - nextCursor
    V2CodedError:
      allOf:
        - $ref: '#/components/schemas/V2Error'
        - type: object
          properties:
            code:
              type: string
              minLength: 1
              description: Stable error code. Clients must tolerate unknown future codes.
            details:
              type: array
              items:
                type: object
                properties:
                  location:
                    type: string
                    enum:
                      - path
                      - query
                      - header
                      - body
                  path:
                    type: array
                    items:
                      type: string
                      maxLength: 64
                    maxItems: 12
                  code:
                    type: string
                    enum:
                      - required
                      - invalid_type
                      - invalid_value
                      - unknown_field
                  message:
                    type: string
                    minLength: 1
                    maxLength: 200
                required:
                  - location
                  - path
                  - code
                  - message
              minItems: 1
              maxItems: 20
              description: Bounded safe validation issues; may omit some invalid fields.
            requestId:
              type: string
              minLength: 1
              maxLength: 128
              description: >-
                Existing server correlation for this HTTP attempt, when
                available.
            dataset:
              type: string
              enum:
                - naic
              description: Dataset needed for dataset_not_enabled.
          required:
            - code
    V2CarrierLineResult:
      oneOf:
        - type: object
          properties:
            id:
              type: string
              description: >-
                Opaque observation ID; copy to the item GET. Identifies source
                company, year, exhibit and line, not an immutable value.
            carrier:
              type: object
              properties:
                id:
                  type: string
                name:
                  type: string
              required:
                - id
                - name
            naicCompanyCode:
              type: string
              description: Source company code, distinct from the managed carrier identity.
            year:
              type: integer
              minimum: 1900
              maximum: 9999
            line:
              type: object
              properties:
                code:
                  type: string
                name:
                  type: string
                  nullable: true
                  description: >-
                    Loaded line label. Interpret with year, exhibit and note;
                    labels alone do not establish continuity.
                family:
                  type: string
                  nullable: true
                  enum:
                    - allied-lines
                    - cmp
                    - group-ah
                    - other-ah
                    - inland-marine
                    - ppa-liability
                    - commercial-auto-liability
                    - auto-physical-damage
                    - null
                scheme:
                  type: string
                  enum:
                    - statement
                note:
                  type: string
                  nullable: true
                  description: >-
                    Known meaning changes, especially auto-liability codes
                    before and after 2022.
              required:
                - code
                - name
                - family
                - scheme
                - note
            sources:
              type: array
              items:
                allOf:
                  - $ref: '#/components/schemas/V2NaicSource'
                  - type: object
                    properties:
                      line:
                        type: string
                    required:
                      - line
            exhibit:
              type: string
              enum:
                - part-1b
            premium:
              type: object
              properties:
                direct:
                  type: integer
                  nullable: true
                  description: >-
                    Reported amount in whole US dollars. Null is unavailable,
                    not zero. Negative amounts are preserved.
                assumedAffiliated:
                  type: integer
                  nullable: true
                  description: >-
                    Reported amount in whole US dollars. Null is unavailable,
                    not zero. Negative amounts are preserved.
                assumedUnaffiliated:
                  type: integer
                  nullable: true
                  description: >-
                    Reported amount in whole US dollars. Null is unavailable,
                    not zero. Negative amounts are preserved.
                cededAffiliated:
                  type: integer
                  nullable: true
                  description: >-
                    Reported amount in whole US dollars. Null is unavailable,
                    not zero. Negative amounts are preserved.
                cededUnaffiliated:
                  type: integer
                  nullable: true
                  description: >-
                    Reported amount in whole US dollars. Null is unavailable,
                    not zero. Negative amounts are preserved.
                net:
                  type: integer
                  nullable: true
                  description: >-
                    Reported net written premium, not recomputed from other
                    fields. Whole US dollars or null.
              required:
                - direct
                - assumedAffiliated
                - assumedUnaffiliated
                - cededAffiliated
                - cededUnaffiliated
                - net
              description: >-
                Reported written-premium components from Part 1B, in whole US
                dollars. Net is the reported value; no derived gross or ratios.
          required:
            - id
            - carrier
            - naicCompanyCode
            - year
            - line
            - sources
            - exhibit
            - premium
        - type: object
          properties:
            id:
              type: string
              description: >-
                Opaque observation ID; copy to the item GET. Identifies source
                company, year, exhibit and line, not an immutable value.
            carrier:
              type: object
              properties:
                id:
                  type: string
                name:
                  type: string
              required:
                - id
                - name
            naicCompanyCode:
              type: string
              description: Source company code, distinct from the managed carrier identity.
            year:
              type: integer
              minimum: 1900
              maximum: 9999
            line:
              type: object
              properties:
                code:
                  type: string
                name:
                  type: string
                  nullable: true
                  description: >-
                    Loaded line label. Interpret with year, exhibit and note;
                    labels alone do not establish continuity.
                family:
                  type: string
                  nullable: true
                  enum:
                    - allied-lines
                    - cmp
                    - group-ah
                    - other-ah
                    - inland-marine
                    - ppa-liability
                    - commercial-auto-liability
                    - auto-physical-damage
                    - null
                scheme:
                  type: string
                  enum:
                    - statement
                note:
                  type: string
                  nullable: true
                  description: >-
                    Known meaning changes, especially auto-liability codes
                    before and after 2022.
              required:
                - code
                - name
                - family
                - scheme
                - note
            sources:
              type: array
              items:
                allOf:
                  - $ref: '#/components/schemas/V2NaicSource'
                  - type: object
                    properties:
                      line:
                        type: string
                    required:
                      - line
            exhibit:
              type: string
              enum:
                - iee-part-3
            underwriting:
              type: object
              properties:
                premiumWritten:
                  type: integer
                  nullable: true
                  description: >-
                    Reported amount in whole US dollars. Null is unavailable,
                    not zero. Negative amounts are preserved.
                premiumEarned:
                  type: integer
                  nullable: true
                  description: >-
                    Reported amount in whole US dollars. Null is unavailable,
                    not zero. Negative amounts are preserved.
                dividendsToPolicyholders:
                  type: integer
                  nullable: true
                  description: >-
                    Reported amount in whole US dollars. Null is unavailable,
                    not zero. Negative amounts are preserved.
                lossesIncurred:
                  type: integer
                  nullable: true
                  description: >-
                    Reported amount in whole US dollars. Null is unavailable,
                    not zero. Negative amounts are preserved.
                defenseAndCostContainmentIncurred:
                  type: integer
                  nullable: true
                  description: >-
                    Reported amount in whole US dollars. Null is unavailable,
                    not zero. Negative amounts are preserved.
                adjustingAndOtherExpensesIncurred:
                  type: integer
                  nullable: true
                  description: >-
                    Reported amount in whole US dollars. Null is unavailable,
                    not zero. Negative amounts are preserved.
                unpaidLosses:
                  type: integer
                  nullable: true
                  description: >-
                    Reported amount in whole US dollars. Null is unavailable,
                    not zero. Negative amounts are preserved.
                unearnedPremiumReserve:
                  type: integer
                  nullable: true
                  description: >-
                    Reported amount in whole US dollars. Null is unavailable,
                    not zero. Negative amounts are preserved.
                commissionsAndBrokerageExpense:
                  type: integer
                  nullable: true
                  description: >-
                    Reported amount in whole US dollars. Null is unavailable,
                    not zero. Negative amounts are preserved.
                taxesLicensesAndFees:
                  type: integer
                  nullable: true
                  description: >-
                    Reported amount in whole US dollars. Null is unavailable,
                    not zero. Negative amounts are preserved.
                otherAcquisitionExpenses:
                  type: integer
                  nullable: true
                  description: >-
                    Reported amount in whole US dollars. Null is unavailable,
                    not zero. Negative amounts are preserved.
                generalExpensesIncurred:
                  type: integer
                  nullable: true
                  description: >-
                    Reported amount in whole US dollars. Null is unavailable,
                    not zero. Negative amounts are preserved.
                otherIncome:
                  type: integer
                  nullable: true
                  description: >-
                    Reported amount in whole US dollars. Null is unavailable,
                    not zero. Negative amounts are preserved.
                pretaxProfit:
                  type: integer
                  nullable: true
                  description: >-
                    Reported amount in whole US dollars. Null is unavailable,
                    not zero. Negative amounts are preserved.
              required:
                - premiumWritten
                - premiumEarned
                - dividendsToPolicyholders
                - lossesIncurred
                - defenseAndCostContainmentIncurred
                - adjustingAndOtherExpensesIncurred
                - unpaidLosses
                - unearnedPremiumReserve
                - commissionsAndBrokerageExpense
                - taxesLicensesAndFees
                - otherAcquisitionExpenses
                - generalExpensesIncurred
                - otherIncome
                - pretaxProfit
              description: >-
                Reported underwriting components from IEE Part 3, scaled from
                thousands to whole US dollars. No derived ratios.
          required:
            - id
            - carrier
            - naicCompanyCode
            - year
            - line
            - sources
            - exhibit
            - underwriting
    V2Error:
      type: object
      properties:
        error:
          type: string
          minLength: 1
          description: Human-readable explanation of the failure.
      required:
        - error
    V2NaicSource:
      type: object
      properties:
        exhibit:
          type: string
        statementYear:
          type: integer
          minimum: 1900
          maximum: 9999
      required:
        - exhibit
        - statementYear
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Effective API key. Send Authorization: Bearer sk-eai-...'

````

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