# agent402.tools PDF Page Rotation

> agent402.tools PDF Page Rotation is a paid API for AI agents from agent402.tools, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-16).

Rotates pages in a PDF by 90, 180, or 270 degrees clockwise, returning the modified document as base64-encoded data

## Facts

- Endpoint: POST https://agent402.tools/api/pdf-rotate
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent402-tools-pdf-page-rotation-2aad3da0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_nP_tY30u98kuepVmkwkyN

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agent402-tools-pdf-page-rotation-2aad3da0 -d '<json body>'
```

Example prompt: Can you rotate pages 1 through 3 of the PDF at https://example.com/report.pdf by 90 degrees clockwise and give me the result?

## When to prefer this

Use this endpoint when you need to rotate pages in an existing PDF document programmatically, especially when you need selective page rotation (specific page ranges) and receive the result as base64 for further processing or storage

## Known failure modes

- Invalid or inaccessible PDF URL returns an error
- Degrees value not one of 90, 180, or 270 returns a validation error
- Page selector references pages out of bounds for the document
- URL points to a non-PDF file causing a parse error
- Payment of 0.003 USDC not completed returns HTTP 402

## How this service works

Rotate pages by 90/180/270°. Body: {"url":"https://…/file.pdf","degrees":90,"pages":"1-3"?}. Omit "pages" to rotate all. Returns the new PDF as base64.

## Output

Returns the processed PDF as a base64-encoded string representing the file with the specified pages rotated by the given angle

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "description": "Public URL of the PDF"
  },
  "pages": {
   "type": "string",
   "description": "Optional page selector; default all"
  },
  "degrees": {
   "type": "number",
   "description": "90, 180, or 270 (clockwise)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "bytes": 2215300,
  "pages": 15,
  "pdfBase64": "JVBERi0xLjcK…"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent402-tools-pdf-page-rotation-2aad3da0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent402.tools](https://www.zero.xyz/host/agent402.tools/llms.txt)
