---
title: "Create a document PDF"
method: POST
path: "/fleet/documents/pdfs"
tags: ["Documents"]
---

# Create a document PDF

`POST /fleet/documents/pdfs`

## Request

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

Request creation of a document 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 **Write 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>

## Request body

- DocumentPdfGenerationRequest: Identifies a document for PDF generation.
  - `documentId` string, required: ID of the document.

## Response `200`

Newly created PDF generation job.

- DocumentPdfGenerationResponse: Identifies a PDF generation job.
  - `data` DocumentPdfGenerationResponseData
    - `documentId` string: ID of the document.
    - `id` string: ID of the PDF file generated or being generated for the document.

## 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)
