---
title: "Query a document PDF"
method: GET
path: "/fleet/documents/pdfs/{id}"
tags: ["Documents"]
---

# Query a document PDF

`GET /fleet/documents/pdfs/{id}`

## Request

- Base URL: `https://api.samsara.com`
- URL: `https://api.samsara.com/fleet/documents/pdfs/{id}`
- Auth: HTTP bearer

Returns generation job status and download URL for a PDF. 

 **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href="https://forms.gle/zkD4NCH7HjKb7mm69" target="_blank">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href="https://www.samsara.com/help" target="_blank">submit a case</a> to our support team.

To use this endpoint, select **Read Documents** under the Driver Workflow category when creating or editing an API token. <a href="https://developers.samsara.com/docs/authentication#scopes-for-api-tokens" target="_blank">Learn More.</a>

## Path parameters

- `id` string, required

## Response `200`

Document PDF job status and download URL.

- DocumentPdfQueryResponse: A PDF of a document
  - `data` DocumentPdfQueryResponseData
    - `completedAtTime` string: Time that PDF generation was completed, in RFC 3339 format.
    - `documentId` string: ID of the document.
    - `downloadDocumentPdfUrl` string: S3 pre-signed URL to download PDF file.
    - `id` string: ID of the PDF file generated or being generated for the document
    - `jobStatus` 'requested' | 'processing' | 'completed': Describes status of the PDF generation job. Valid values: `requested`, `processing`, `completed`.
    - `requestedAtTime` string: Time that PDF generation was requested, in RFC 3339 format.

## Other responses

- `default`: Error response

---

[API](https://skmtc.dev/samsara/apis/samsara-api.md) - [All operations](https://skmtc.dev/samsara/apis/samsara-api/llms.txt) - [OpenAPI document](https://skmtc.dev/samsara/apis/samsara-api/revisions/a9e35d4999be?raw)
