# rotatepdfpages: Rotate PDF Pages

> rotatepdfpages (Rotate PDF Pages) is a 1001fx API function in the group Files & PDF: POST https://api.1001fx.com/files/rotatepdfpages, 3 credits per call. It works as a ready-made module in Make or as a plain HTTP call.

Rotates all or selected pages of a PDF clockwise by 90, 180 or 270 degrees. Returns the PDF.

- Group: Files & PDF
- Endpoint: `POST https://api.1001fx.com/files/rotatepdfpages`
- Authentication: header `X-API-KEY: YOURSECRETAPIKEY`
- Content type: multipart/form-data
- Credits: 3 credits per call
- Ready-made in: Make
- Docs: https://1001fx.com/functions/rotatepdfpages

## Parameters

- `file` (file, optional) – File: The PDF. Either file or fileUrl.
- `fileUrl` (string, optional) – File URL: Public URL of the PDF. Either file or fileUrl.
- `pages` (string, optional) – Pages: Pages to rotate, e.g. 1-3,7 (first page = 1). Empty: all pages.
- `angle` (enum, required, one of `90`, `180`, `270`) – Angle: Clockwise, added to the current rotation.

## Example: Rotate PDF Pages

```bash
curl -X POST 'https://api.1001fx.com/files/rotatepdfpages' \
  -H 'X-API-KEY: YOURSECRETAPIKEY'
```
