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

# Get PDF

> Download a file.

Downloads a PDF. The response body is the raw file, not a JSON object.

This is useful for viewing the original scanned mail that a check arrived with — for example, to see the EOB or correspondence that accompanied a payment.

## Path parameters

<ParamField path="id" type="string" required>
  The ID of the file, prefixed with `file_`. You can find file IDs in responses
  from the [List entity mail](/api-reference/list-entity-mail) endpoint.
</ParamField>

## Response

Returns the file as `application/pdf`, streamed inline with a `Content-Disposition: inline` header. The response is cacheable for 5 minutes (`Cache-Control: private, max-age=300`).

<ResponseExample>
  ```bash 200 theme={null}
  GET /v0/files/file_Xt7nRv3hBw9pKm4s

  Content-Type: application/pdf
  Content-Disposition: inline; filename="statement.pdf"

  <binary PDF data>
  ```
</ResponseExample>
