---
title: "Set PDF metadata"
method: POST
path: "/api/pdf-tools/metadata/set"
tags: ["PDF Tools"]
---

# Set PDF metadata

`POST /api/pdf-tools/metadata/set`

## Request

- Base URL: `https://api.dokmatiq.com`
- URL: `https://api.dokmatiq.com/api/pdf-tools/metadata/set`
- Auth: API key in header `X-API-Key`

Upload a PDF and set metadata fields. Returns the updated PDF. Supported fields: title, author, subject, keywords, creator, producer.

## Query parameters

- `title` string
- `author` string
- `subject` string
- `keywords` string
- `creator` string
- `producer` string

## Response `200`

Updated PDF

---

[API](https://skmtc.dev/dokmatiq/apis/docgen-api.md) · [All operations](https://skmtc.dev/dokmatiq/apis/docgen-api/llms.txt) · [OpenAPI document](https://skmtc.dev/dokmatiq/apis/docgen-api/revisions/3fa1a922764d?raw)
