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

# Initiate loan tape upload

> Step 1 of the upload flow. Provide the loan type (e.g. "Auto", "Personal"). The gateway resolves the asset type ID, creates a new deal (or reuses an existing DRAFT), and returns an upload URL valid for 1 hour. If a DRAFT deal already exists for the same loan type it will be reused and a fresh URL issued.



## OpenAPI

````yaml api-reference/openapi.json POST /v1/api/originator/loans
openapi: 3.0.3
info:
  title: 9Squid Platform API Gateway
  description: >-
    Unified entry point for all Originator and Investor workflows on the 9Squid
    securitization platform.
  version: '1.0'
  x-readme:
    id: 9squid-docs
  contact: {}
servers:
  - url: https://api.9squid.com
    description: Production
  - url: https://sandbox.api.9squid.com
    description: Sandbox
security: []
tags:
  - name: Originator - Loans
    description: Loan tape upload and management
  - name: Originator - Pools
    description: Securitization pool management
  - name: Originator - Analytics
    description: ALM / TCT Risk analytics
  - name: Originator - Selection Criteria
    description: Stratification check runs and exceptions
  - name: Deal Room - Documents
    description: Document upload and management
  - name: Investor - Deals
    description: Browse and evaluate securitization deals
  - name: Investor - Portfolio
    description: Portfolio positions, summary and reports
  - name: Investor - Subscriptions & Allocations
    description: Order and allocation management
  - name: Alerts
    description: Notifications and alert management
  - name: Webhooks
    description: Webhook subscription and delivery management
paths:
  /v1/api/originator/loans:
    post:
      tags:
        - Originator - Loans
      summary: Initiate loan tape upload
      description: >-
        Step 1 of the upload flow. Provide the loan type (e.g. "Auto",
        "Personal"). The gateway resolves the asset type ID, creates a new deal
        (or reuses an existing DRAFT), and returns an upload URL valid for 1
        hour. If a DRAFT deal already exists for the same loan type it will be
        reused and a fresh URL issued.
      operationId: LoansController_initiateLoan
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - type
              properties:
                type:
                  type: string
                  description: Loan type (e.g. "Auto", "Personal")
                  example: Auto
      responses:
        '201':
          description: Upload URL generated successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  data:
                    type: object
                    properties:
                      deal_id:
                        example: deal_abc123
                        type: string
                      upload_url:
                        type: string
                        example: >-
                          https://api.9squid.com/v1/api/originator/loans/upload?u=<token>
                      file_name:
                        type: string
                        example: a1b2c3d4.upload
                      expires_in:
                        type: number
                        example: 3600
        '400':
          description: Loan type is missing or not found in backend
        '401':
          description: Unauthorized — invalid or missing API key
      security:
        - bearer: []
components:
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http

````