---
title: "Download Pdf"
method: GET
path: "/v1/api/download_pdf"
tags: ["document", "document"]
---

# Download Pdf

`GET /v1/api/download_pdf`

Download a PDF file from a URL and save it to the database.

Args:
    user: The user who is uploading the file.
    url: The URL of the PDF file to download.

Returns:
    dict: The document ID of the downloaded file.

## Query parameters

- `url` string, required

## Response `201`

Successful Response

- DocumentUploadResponse — Response for document upload
  - `docId` string, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/askyourpdf/apis/fastapi.md) · [All operations](https://skmtc.dev/askyourpdf/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/askyourpdf/fastapi/revisions/5e6164560609/schema)
