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

# Get document metadata and download URL

> Returns full document metadata and a masked download URL. The download URL routes through the platform gateway — the S3 domain is never exposed.



## OpenAPI

````yaml api-reference/openapi.json GET /v1/api/deals/{dealId}/documents/{documentId}
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/deals/{dealId}/documents/{documentId}:
    get:
      tags:
        - Deal Room - Documents
      summary: Get document metadata and download URL
      description: >-
        Returns full document metadata and a masked download URL. The download
        URL routes through the platform gateway — the S3 domain is never
        exposed.
      operationId: DocumentsController_getDocument
      parameters:
        - name: dealId
          required: true
          in: path
          description: Securitization Deal ID
          schema:
            example: deal_abc123
            type: string
        - name: documentId
          required: true
          in: path
          description: Document ID
          schema:
            type: string
            example: doc_abc123
      responses:
        '200':
          description: Document metadata and download URL
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  data:
                    type: object
                    properties:
                      document_id:
                        type: string
                        example: doc_abc123
                      documentType:
                        type: string
                        example: loan_tape
                      downloadUrl:
                        type: string
                        example: https://api.9squid.com/v1/api/download?u=<token>
                      downloadUrlExpiresAt:
                        type: string
                        format: date-time
                        example: '2026-04-21T11:00:00Z'
        '401':
          description: Unauthorized — invalid or missing API key
        '404':
          description: Document not found
      security:
        - bearer: []
components:
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http

````