---
title: "Save Filled Pdf"
method: POST
path: "/api/pdf/templates/save-filled"
tags: ["PDF Form Processing"]
---

# Save Filled Pdf

`POST /api/pdf/templates/save-filled`

## Request

- Base URL: `https://api.qomplement.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.qomplement.com/api/pdf/templates/save-filled`
- Auth: HTTP bearer

Save a filled PDF to the user's library.

This saves the generated/filled PDF so users can access it later.
It's marked as pdf_type='filled' to distinguish from blank templates.

Args:
    request: SaveFilledPDFRequest containing the filled PDF
    current_user: Authenticated user (optional for guest mode)

Returns:
    {
        "success": bool,
        "template_id": "uuid",
        "name": "filename.pdf",
        "pdf_type": "filled"
    }

## Request body

- SaveFilledPDFRequest: Request model for saving a filled PDF
  - `pdf_content` string, required
  - `name` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

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