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

# Download a legal document

> Redirects to a short-lived presigned URL for the document PDF. Available for any currently published document, and for any document the user has already accepted, so a copy of what they agreed to stays reachable after the version is superseded. Session auth only.

Redirects to a short-lived presigned URL for the document's PDF. Follow the redirect to download the file.

Available for any currently published document, and for any document the user has already accepted, so a copy of what they agreed to stays reachable after a newer version supersedes it. Any other document id returns `404`.

Session auth only. This endpoint is not usable with an API key.


## OpenAPI

````yaml api-reference/openapi.json GET /api/v1/me/terms/documents/{id}/file
openapi: 3.1.0
info:
  title: Omnifence API
  description: >-
    Content moderation API. Clients submit images or videos which pass through a
    classification pipeline and receive a pass/reject decision.
  version: 1.0.0
  contact:
    email: support@omnifence.ai
servers:
  - url: http://localhost:3051
    description: Local development
security:
  - bearerAuth: []
tags:
  - name: Moderation
    description: Submit moderation jobs
  - name: Jobs
    description: Query job status and progress
  - name: Webhooks
    description: Webhook registration
  - name: Account
    description: Authenticated client account settings
paths:
  /api/v1/me/terms/documents/{id}/file:
    get:
      tags:
        - Account
      summary: Download a legal document PDF
      description: >-
        Redirects to a short-lived presigned URL for the document PDF. Available
        for any currently published document, and for any document the user has
        already accepted, so a copy of what they agreed to stays reachable after
        the version is superseded. Session auth only.
      operationId: getMyTermsDocumentFile
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      responses:
        '302':
          description: Redirect to the presigned PDF URL.
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API key from the Omnifence dashboard

````