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

# List subtypes for a NAIC insurance type

> Return every supported sub-TOI belonging to the given TOI. Use code as subToiCode and the path toiCode as its parent when preparing a filing. Global reference data; no workspace scope or pagination. Safe to repeat.



## OpenAPI

````yaml /openapi.json get /insurance-types/{toiCode}/subtypes
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://canary.effectiveai.app/api/v2
    description: Canary
security:
  - bearerAuth: []
paths:
  /insurance-types/{toiCode}/subtypes:
    get:
      tags:
        - Insurance Types
      summary: List subtypes for a NAIC insurance type
      description: >-
        Return every supported sub-TOI belonging to the given TOI. Use code as
        subToiCode and the path toiCode as its parent when preparing a filing.
        Global reference data; no workspace scope or pagination. Safe to repeat.
      operationId: listInsuranceSubtypes
      parameters:
        - schema:
            type: string
            pattern: ^\d{2}\.\d$
            description: Parent TOI code, for example 01.0.
          required: true
          description: Parent TOI code, for example 01.0.
          name: toiCode
          in: path
      responses:
        '200':
          description: All subtypes of this insurance type.
          content:
            application/json:
              schema:
                type: object
                properties:
                  subtypes:
                    type: array
                    items:
                      $ref: '#/components/schemas/V2InsuranceType'
                required:
                  - subtypes
        '400':
          description: Invalid input. This operation accepts no query parameters.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V2CodedError'
        '401':
          description: Authentication required.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V2CodedError'
        '403':
          description: Unsupported credential.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V2CodedError'
        '404':
          description: Insurance type not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V2CodedError'
      security:
        - bearerAuth: []
components:
  schemas:
    V2InsuranceType:
      type: object
      properties:
        code:
          type: string
        name:
          type: string
        description:
          type: string
      required:
        - code
        - name
        - description
    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.
          required:
            - code
    V2Error:
      type: object
      properties:
        error:
          type: string
          minLength: 1
          description: Human-readable explanation of the failure.
      required:
        - error
  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.