---
title: "Rotate PDF pages"
method: POST
path: "/api/pdf-tools/rotate"
tags: ["PDF Tools"]
---

# Rotate PDF pages

`POST /api/pdf-tools/rotate`

## Request

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

Rotate pages in a PDF by 90, 180, or 270 degrees. Specify pages or rotate all.

## Query parameters

- `degrees` integer, required
- `pages` string

## Response `200`

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