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

# Get Policy Download Url

> Get a presigned URL to download the policy file.

The URL is short-lived (~15 minutes) — request it just before use, don't cache it.



## OpenAPI

````yaml /api-reference/openapi.json get /v1/policies/{policy_id}/download-url
openapi: 3.1.0
info:
  title: Penelope Health API
  description: REST API for querying the Penelope Health knowledge graph.
  version: 1.0.0
servers:
  - url: https://api-sandbox.penelope.health
    description: Sandbox
  - url: https://api.penelope.health
    description: Production
security: []
paths:
  /v1/policies/{policy_id}/download-url:
    get:
      summary: Get Policy Download Url
      description: >-
        Get a presigned URL to download the policy file.


        The URL is short-lived (~15 minutes) — request it just before use, don't
        cache it.
      operationId: get_policy_download_url_v1_policies__policy_id__download_url_get
      parameters:
        - name: policy_id
          in: path
          required: true
          schema:
            type: string
            title: Policy Id
            description: Unique policy identifier
            examples:
              - uhc/MP.002/2026-01-01
          description: Unique policy identifier
        - name: variant
          in: query
          required: false
          schema:
            enum:
              - display
              - text
            type: string
            description: |-
              'display' returns the original file;
              'text' returns an LLM-optimized markdown version
            default: display
            title: Variant
          description: |-
            'display' returns the original file;
            'text' returns an LLM-optimized markdown version
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PolicyDownloadUrlResponse'
              example:
                url: >-
                  https://us-health-insurance-kb.s3.us-east-2.amazonaws.com/uhc_MP.002_2026-01-01.pdf?...
                content_type: application/pdf
                filename: uhc_MP.002_2026-01-01.pdf
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
components:
  schemas:
    PolicyDownloadUrlResponse:
      properties:
        url:
          type: string
          title: Url
          description: >-
            Short-lived presigned URL to download the policy file (expires
            within ~15 minutes; request it just before use).
          examples:
            - https://blockstore.example/policy.pdf?X-Amz-Signature=...
        content_type:
          type: string
          enum:
            - application/pdf
            - text/html
            - text/markdown
          title: Content Type
          description: MIME type of the file
          examples:
            - application/pdf
        filename:
          type: string
          title: Filename
          description: Suggested filename for download
          examples:
            - uhc_MP.002_2026-01-01.pdf
      type: object
      required:
        - url
        - content_type
        - filename
      title: PolicyDownloadUrlResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: x-api-key

````