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

# Download document content

> Download document PDF bytes when available.



## OpenAPI

````yaml /openapi/external-v1.json get /api/v1/documents/{documentId}/content
openapi: 3.1.0
info:
  title: Documate Partner API
  version: v1
  description: >-
    External partner API for uploading documents and reading extraction results.
    Authenticate with a business API key from the Documate app.
servers:
  - url: https://api2.documate.ai
    description: Production
security:
  - ApiKeyAuth: []
paths:
  /api/v1/documents/{documentId}/content:
    get:
      summary: Download document content
      description: Download document PDF bytes when available.
      operationId: getDocumentContent
      parameters:
        - name: documentId
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Binary content
          content:
            application/octet-stream:
              schema:
                type: string
                contentMediaType: application/octet-stream
        '404':
          description: Not found
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-Api-Key
      description: >-
        API key from the Documate app (Settings → API keys). You may also send
        `Authorization: ApiKey YOUR_API_KEY`.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.