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

# Get a document download URL

> Returns document metadata plus a short-lived, pre-signed `downloadUrl` for the file.



## OpenAPI

````yaml /api-reference/openapi.json get /v1/partner/companies/{doolaCompanyId}/documents/{documentId}
openapi: 3.1.0
info:
  title: doola Partner API
  description: >-
    REST API for doola partners to create and manage customers and companies,
    retrieve formation documents, and look up reference data.


    Authenticate every request with a partner API key in the `Authorization`
    header. Generate keys and manage webhooks and event subscriptions in the
    doola Partner Portal.
  contact:
    name: doola
    url: https://www.doola.com
  version: v1
servers:
  - url: https://api.test.doola.com
    description: Sandbox — use test keys (dk_test_…)
  - url: https://api.doola.com
    description: Production — use live keys (dk_live_…)
security:
  - PartnerApiKey: []
tags:
  - name: Playground (sandbox only)
    description: >-
      Sandbox-only helpers to drive a test company through the Formation and
      EinCreation milestones end to end.
  - name: Customers
    description: Create and look up customers under your partner tenant.
  - name: Documents
    description: List and download a company's formation documents.
  - name: Signatures
    description: Request embedded signing sessions for pending company documents.
  - name: Companies
    description: Create companies for your customers, then track formation status.
  - name: Reference data
    description: >-
      Static lookups for building company-creation requests: NAICS codes,
      states, countries, and state filing fees.
paths:
  /v1/partner/companies/{doolaCompanyId}/documents/{documentId}:
    get:
      tags:
        - Documents
      summary: Get a document download URL
      description: >-
        Returns document metadata plus a short-lived, pre-signed `downloadUrl`
        for the file.
      operationId: getDocument
      parameters:
        - name: doolaCompanyId
          in: path
          description: doola company ID (KSUID).
          required: true
          schema:
            type: string
        - name: documentId
          in: path
          description: Document ID returned by the list endpoint.
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/DocumentDownloadUrlDto'
components:
  schemas:
    DocumentDownloadUrlDto:
      type: object
      description: Document metadata plus a short-lived, pre-signed download URL.
      properties:
        id:
          type: string
          description: Document ID.
        companyId:
          type: string
          description: doola company ID (KSUID) the document belongs to.
        name:
          type: string
          description: File name.
          example: Articles-of-Organization.pdf
        contentType:
          type: string
          description: MIME content type.
          example: application/pdf
        documentType:
          type: string
          description: Document type. One of ArticlesOfOrganization, EinLetter, Mail.
          example: ArticlesOfOrganization
        lastModified:
          type: string
          format: date-time
          description: Last modified timestamp (RFC 3339).
          example: '2026-07-06T21:11:56Z'
        createdAt:
          type:
            - string
            - 'null'
          format: date-time
          description: >-
            Creation timestamp (RFC 3339). May be null for files whose source
            provides no creation time.
          example: '2026-07-06T21:11:56Z'
        downloadUrl:
          type: string
          description: Short-lived, pre-signed URL to download the file.
  securitySchemes:
    PartnerApiKey:
      type: apiKey
      description: >-
        Partner API key. Send the raw key as the `Authorization` header value —
        e.g. `dk_test_…` in sandbox or `dk_live_…` in production. Generate and
        rotate keys in the doola Partner Portal.
      name: Authorization
      in: header

````