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

# Fetch a Generated PDF

> This endpoint is available to Group API Keys only.

Retrieves a previously generated PDF by its unique key. The response includes a pre-signed URL to download the PDF file.

PDFs are generated asynchronously and are only available for download for 24 hours after generation. Beyond that window, the PDF must be regenerated.



## OpenAPI

````yaml get /ext/v2/pdfs/generate-pdfs/{key}/
openapi: 3.1.0
info:
  description: ''
  title: NinjaAPI
  version: 2.0.0
servers:
  - url: https://connect.vetcove.com/
security: []
paths:
  /ext/v2/pdfs/generate-pdfs/{key}/:
    get:
      tags:
        - PDFs
      summary: Fetch a Generated PDF
      description: >-
        This endpoint is available to Group API Keys only.


        Retrieves a previously generated PDF by its unique key. The response
        includes a pre-signed URL to download the PDF file.


        PDFs are generated asynchronously and are only available for download
        for 24 hours after generation. Beyond that window, the PDF must be
        regenerated.
      operationId: pdfs_get
      parameters:
        - description: The key of the generated PDF to fetch
          in: path
          name: key
          required: true
          schema:
            description: The key of the generated PDF to fetch
            title: Key
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExternalPDFSchema'
          description: OK
      security:
        - ExternalAPIAuth: []
components:
  schemas:
    ExternalPDFSchema:
      description: Schema for the PDF detail view
      properties:
        error:
          anyOf:
            - type: string
            - type: 'null'
          description: An error message if the PDF generation failed. Null on success.
          title: Error
        file_name:
          description: The filename of the generated PDF document.
          title: File Name
          type: string
        file_url:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            A pre-signed URL to download the generated PDF. Null if the PDF is
            still being generated or generation failed.
          title: File Url
        key:
          description: The unique key used to identify and retrieve this generated PDF.
          title: Key
          type: string
        name:
          description: A human-readable name describing the type of PDF that was generated.
          title: Name
          type: string
        status:
          $ref: '#/components/schemas/APIConnectFileStatus'
          description: The current generation status of the PDF.
      required:
        - key
        - name
        - status
        - file_name
        - file_url
        - error
      title: ExternalPDFSchema
      type: object
    APIConnectFileStatus:
      enum:
        - PENDING
        - SUCCESS
        - ERROR
      title: APIConnectFileStatus
      type: string
  securitySchemes:
    ExternalAPIAuth:
      scheme: bearer
      type: http

````