> ## 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.

# Invite (Dangerously)

> Send an invitation without validation checks

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

Sends an invitation to a downstream entity without performing standard validation checks.


## OpenAPI

````yaml openapi/v1.json POST /v1/downstream-entity-associations/dangerously-invite
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-invite:
    post:
      tags:
        - downstream-entity-associations
      operationId: >-
        AssociatedDownstreamEntitiesController_dangerouslyInviteDownstreamEntity_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/InviteDownstreamEntityDto'
      responses:
        '201':
          description: Downstream entity invitation sent (deprecated)
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/InviteDownstreamEntityResponse'
                  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:
    InviteDownstreamEntityDto:
      type: object
      properties:
        useInviteUrl:
          type: boolean
          description: If true, returns an invite URL instead of sending an email
          example: false
        isNpnRequired:
          type: boolean
          description: Whether NPN is required for this downstream entity
          example: true
        downstreamEntityName:
          type: string
          description: Name of the downstream entity
          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
        category:
          type: string
          description: Category of the downstream entity
          enum:
            - agency
            - agency network
            - wholesale brokerage
            - third party administrator
          example: agency
        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
        contractContainerTemplateId:
          type: string
          description: >-
            ContractContainer template ID to associate with this invitation.
            Obtain via GET /v1/contract-container-templates. Preferred over the
            legacy producerAgreementId field.
          example: 507f1f77bcf86cd799439011
        producerAgreementId:
          type: string
          description: >-
            Deprecated: use contractContainerTemplateId instead. Legacy
            producer-agreement file-document ID. Still accepted for backward
            compatibility; the ID is internally resolved to the matching
            ContractContainer template.
          deprecated: true
        onboardingSettings:
          description: Onboarding settings to customize the onboarding flow
          allOf:
            - $ref: '#/components/schemas/OnboardingSettingsDto'
        parentProducerCode:
          type: string
          description: Producer code of the parent entity (for branch relationships)
          example: PARENT-001
        customFields:
          type: object
          description: Custom fields for additional data
          example:
            customField1: value1
            customField2: 123
        customFieldValues:
          type: object
          description: >-
            Values to populate the contract template custom fields. Keyed by
            fieldName. Required when the selected contractContainerTemplateId
            has customFields defined; the values are validated against type /
            required / min / max.
          example:
            commission_rate: 10
            effective_date: '2026-06-01'
      required:
        - useInviteUrl
        - isNpnRequired
        - downstreamEntityName
        - firstName
        - lastName
        - email
        - category
    InviteDownstreamEntityResponse:
      type: object
      properties:
        url:
          type: string
          description: Invitation URL (when useInviteUrl is true)
    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
    OnboardingSettingsDto:
      type: object
      properties:
        isCyberPolicyOptional:
          type: boolean
          description: Whether cyber policy is optional during onboarding
          example: false
        isRequestedAuthorityStepUsed:
          type: boolean
          description: Whether requested authority step is used
          example: true
        isPaymentDetailsStepUsed:
          type: boolean
          description: Whether payment details step is used
          example: false
        isCustomOnboardingStepUsed:
          type: boolean
          description: Whether custom onboarding step is used
          example: false
        isPreContractReviewStepUsed:
          type: boolean
          description: Whether pre-contract review step is used
          example: true
      required:
        - isCyberPolicyOptional
        - isRequestedAuthorityStepUsed
        - isPaymentDetailsStepUsed
        - isCustomOnboardingStepUsed
        - isPreContractReviewStepUsed

````