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

# PDF template document metadata

> Retrieves document metadata for a PDF template by slug, including a presigned URL for direct access.



## OpenAPI

````yaml https://app.stainless.com/api/spec/documented/samplehc/openapi.documented.yml get /api/v2/documents/pdf-template/{slug}/metadata
openapi: 3.0.3
info:
  title: Sample Healthcare API
  description: API for Sample Healthcare
  version: 1.0.0
servers: []
security: []
paths:
  /api/v2/documents/pdf-template/{slug}/metadata:
    get:
      tags:
        - Document
      summary: PDF template document metadata
      description: >-
        Retrieves document metadata for a PDF template by slug, including a
        presigned URL for direct access.
      parameters:
        - schema:
            type: string
          in: path
          name: slug
          required: true
          description: The slug of the PDF template.
      responses:
        '200':
          description: Successfully retrieved PDF template document metadata.
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  fileName:
                    type: string
                  pdfPageCount:
                    type: integer
                    minimum: 0
                    nullable: true
                    description: >-
                      The number of pages in the PDF, or null for non-PDFs and
                      PDFs that have not been counted yet.
                  presignedUrl:
                    type: string
                    format: uri
                  size:
                    type: number
                    nullable: true
                    description: The size of the file in bytes.
                required:
                  - id
                  - fileName
                  - pdfPageCount
                  - presignedUrl
                additionalProperties: false
        '400':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    description: The error message.
                  message:
                    type: string
                    description: The message.
                  statusCode:
                    type: number
                    description: The status code.
                  details:
                    type: object
                    additionalProperties: {}
                    description: The details of the error
                additionalProperties: true
        '404':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    description: >-
                      Not Found, the PDF template with the specified slug does
                      not exist.
                required:
                  - error
                additionalProperties: false
        '500':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    description: >-
                      Internal server error while fetching PDF template document
                      metadata.
                required:
                  - error
                additionalProperties: false

````