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

# Add (Dangerously)

> Add a downstream entity without validation checks

<Warning>
  **Deprecated**: This endpoint bypasses validation checks and should only be used for special migration scenarios. Use the standard [Add](/api-reference/v1/downstream-entity-associations/add) endpoint instead.
</Warning>

Adds a downstream entity directly without performing standard validation checks.


## OpenAPI

````yaml openapi/v1.json POST /v1/downstream-entity-associations/dangerously-add
openapi: 3.0.0
info:
  title: Turris Public API
  description: API for managing insurance compliance data
  version: 1.0.0
  contact: {}
servers:
  - url: https://public.api.live.turrisfi.com
    description: Production
  - url: https://public.api.sandbox.turrisfi.com
    description: Sandbox
security: []
tags: []
paths:
  /v1/downstream-entity-associations/dangerously-add:
    post:
      tags:
        - downstream-entity-associations
      operationId: AssociatedDownstreamEntitiesController_dangerouslyAddDownstreamEntity_v1
      parameters:
        - name: idempotency-key
          in: header
          description: UUID to ensure idempotent request processing
          required: false
          schema:
            type: string
            example: 550e8400-e29b-41d4-a716-446655440000
        - name: x-idempotency-key
          in: header
          description: Alternative UUID header for idempotent request processing
          required: false
          schema:
            type: string
            example: 550e8400-e29b-41d4-a716-446655440000
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AddDownstreamEntityDto'
      responses:
        '201':
          description: Downstream entity added (deprecated)
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: >-
                      #/components/schemas/DownstreamEntityAssociationResponseDto
                  requestId:
                    type: string
                    description: Unique request identifier
                    example: dev-2c5e7cf2-9acf-4c8c-ab2f-b81f39d775a8
                  timestamp:
                    type: string
                    description: Response timestamp
                    example: '2025-11-12T20:49:03.293Z'
                required:
                  - data
                  - requestId
                  - timestamp
        '400':
          description: Invalid request body
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseDto'
        '401':
          description: Invalid or missing auth token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseDto'
        '409':
          description: Downstream entity already exists
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseDto'
      deprecated: true
components:
  schemas:
    AddDownstreamEntityDto:
      type: object
      properties:
        downstreamEntityNpn:
          type: string
          description: >-
            National Producer Number (NPN) of the downstream entity. Required
            when isNpnRequired is true.
          example: '12345678'
        branchName:
          type: string
          description: Branch name. Required when parentProducerCode is provided.
          example: West Coast Branch
        downstreamEntityName:
          type: string
          description: Name of the downstream entity. Required when NPN is not provided.
          example: ABC Insurance Agency
        firstName:
          type: string
          description: First name of the primary contact
          example: John
        lastName:
          type: string
          description: Last name of the primary contact
          example: Doe
        email:
          type: string
          description: Email address of the primary contact
          example: john.doe@example.com
        producerCode:
          type: string
          description: Producer code for this downstream entity
          example: PROD-001
        externalId:
          type: string
          description: External identifier for integration purposes
          example: EXT-12345
        parentProducerCode:
          type: string
          description: Producer code of the parent entity (for branch relationships)
          example: PARENT-001
        parentDownstreamEntityAssociationId:
          type: string
          description: Parent downstream entity association ID (for branch relationships)
          example: 507f1f77bcf86cd799439011
        ein:
          type: string
          description: Federal Employer Identification Number (EIN/FEIN)
          example: 12-3456789
        isNpnRequired:
          type: boolean
          description: Whether NPN is required for this downstream entity
          example: true
        category:
          type: string
          description: Category of the downstream entity
          enum:
            - agency
            - agency network
            - wholesale brokerage
            - third party administrator
          example: agency
      required:
        - firstName
        - lastName
        - email
        - isNpnRequired
        - category
    DownstreamEntityAssociationResponseDto:
      type: object
      properties:
        _id:
          type: string
          description: Association ID
        producerCode:
          type: string
          description: Producer code
        externalId:
          type: string
          description: External ID
        downstreamEntity:
          description: Downstream entity details
          allOf:
            - $ref: '#/components/schemas/PopulatedDownstreamEntityResponse'
        niprDataSubscription:
          description: NIPR data subscription for this association
          allOf:
            - $ref: '#/components/schemas/ComplianceDataSubscriptionResponse'
      required:
        - _id
        - downstreamEntity
        - niprDataSubscription
    ErrorResponseDto:
      type: object
      properties:
        statusCode:
          type: number
          description: HTTP status code
        requestId:
          type: string
          description: Unique request identifier for debugging
        errorType:
          type: string
          description: Error type classification
        errorMessage:
          description: Array of error messages
          type: array
          items:
            type: string
        timestamp:
          type: string
          description: ISO timestamp when the error occurred
        details:
          type: object
          description: Additional error context
      required:
        - statusCode
        - requestId
        - errorType
        - errorMessage
        - timestamp
    PopulatedDownstreamEntityResponse:
      type: object
      properties:
        _id:
          type: string
          description: Downstream entity ID
        isNpnRequired:
          type: boolean
          description: Whether NPN is required for this downstream entity
        legalName:
          type: string
          description: Legal name of the downstream entity
        category:
          type: string
          description: Category of the downstream entity
        npn:
          type: string
          description: National Producer Number
        ein:
          type: string
          description: Employer Identification Number
      required:
        - _id
        - isNpnRequired
        - legalName
        - category
        - npn
        - ein
    ComplianceDataSubscriptionResponse:
      type: object
      properties:
        dataOwnerId:
          type: string
          description: Data owner ID
        dataOwnerModel:
          type: string
          description: Data owner model type
        entityModel:
          type: string
          description: Entity model type
        npn:
          type: string
          description: National Producer Number
          nullable: true
        entityInfo:
          description: NIPR entity info details
          allOf:
            - $ref: '#/components/schemas/NiprEntityInfoResponse'
        lastSynchronizationDate:
          format: date-time
          type: string
          description: Last synchronization date
        pdbAlertsSubscriptionStatus:
          type: string
          description: PDB Alerts subscription status
        pdbAlertsPausedAt:
          format: date-time
          type: string
          description: Date when PDB Alerts was paused
      required:
        - dataOwnerId
        - dataOwnerModel
        - entityModel
        - entityInfo
    NiprEntityInfoResponse:
      type: object
      properties:
        status:
          type: string
          description: Status of the NIPR data subscription
        jobId:
          type: string
          description: Job ID for the NIPR entity info request
        message:
          type: string
          description: Message associated with the status
        rawEntityInfoId:
          type: string
          description: Raw entity info document ID
      required:
        - status

````