---
title: "Create document PDF upload URL"
method: POST
path: "/file-uploads/document-pdf"
tags: ["File Upload Helpers"]
---

# Create document PDF upload URL

`POST /file-uploads/document-pdf`

<small>Requires an API token with the **Document Manager** role.</small>

Generates a presigned URL for securely uploading a PDF file to cloud storage. The uploaded PDF can then be used
to create a document via the [Create document from PDF](/operations/v1.documents.create-from-pdf) endpoint.

The returned URL expires after a limited time and should be used immediately for upload. Upload the PDF file
with a POST request to the returned URL, sending the provided `fields` as form fields in the request body,
followed by the file contents in a `file` field.

For a complete guide with examples, see [How to create a document from a PDF file](/#how-to-create-a-document-from-a-pdf-file).

## Response `201`

`SignedUploadUrlResource`

- object
  - `data` SignedUploadUrlResource, required
    - `uuid` string, required — UUID to be used when referring to the uploaded file in later requests
    - `url` string, required — The URL to upload the file contents to
    - `method` string, required — The HTTP method to use when uploading. Always POST.
    - `fields` object, required — Form fields to send in the body of the POST request, before the file contents
    - `expires_at` string, date-time, required — File must be uploaded before this time

## Other responses

- `401` — Unauthenticated
- `403` — Authorization error

---

[API](https://skmtc.dev/fynk/apis/fynk-api-reference.md) · [All operations](https://skmtc.dev/fynk/apis/fynk-api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/fynk/fynk-api-reference/revisions/9657a6757f59/schema)
