# Tanod Docs PDF Rotate

> Tanod Docs PDF Rotate is a paid API for AI agents from docs.tanod.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-13).

Rotates specified pages (or all pages) of a PDF by a given angle (90, 180, 270, or -90 degrees clockwise) and returns the result as base64 or a download URL.

## Facts

- Endpoint: POST https://docs.tanod.dev/v1/pdf/rotate?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/tanod-docs-pdf-rotate-cc19784f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Tr667vmYKK2PR_VzFstTv

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 tanod-docs-pdf-rotate-cc19784f -d '<json body>'
```

Example prompt: Can you rotate all the pages of this PDF 90 degrees clockwise? Here's the file URL: https://example.com/myfile.pdf — please give me back the rotated version as a download link.

## When to prefer this

Choose this endpoint when you need a simple, reliable PDF page rotation operation as part of a document processing pipeline, especially when you want inline base64 output (for immediate embedding) or a short-lived download URL (to avoid bloating your context window). It is ideal for correcting scanned document orientation, fixing improperly exported PDFs, or automating PDF preparation workflows. Prefer it over general-purpose office conversion endpoints when the only transformation needed is page rotation.

## Known failure modes

- PDF URL exceeds 20 MB size limit — request rejected
- base64-encoded PDF exceeds 10 MB decoded limit — request rejected
- Private, internal, or IP-literal host URLs are refused
- Invalid angle value (not 90, 180, 270, or -90) — validation error
- Malformed page range string — validation error
- PDF is password-protected or corrupted — processing error
- Network timeout fetching remote PDF URL

## How this service works

Documents: DOCX template fill, Office to PDF, any file to Markdown, PDF to Word, OCR, PDF pipeline.

## Output

Returns a JSON object containing the rotated PDF either as inline base64 data (with filename, byte size, page count, and content type) or as a temporary 24-hour download URL (with expiry timestamp, byte size, content type, and SHA256 hash). Also includes metadata: the angle applied, operation name, input/output byte counts, number of rotated pages, and a flag indicating whether untrusted content was removed.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "anyOf": [
    {
     "type": "string",
     "maxLength": 2048,
     "minLength": 1
    },
    {
     "type": "null"
    }
   ],
   "default": null,
   "description": "Public http(s) URL of the PDF (at most 20 MB; private, internal and IP-literal hosts are refused); or use pdf_base64."
  },
  "angle": {
   "enum": [
    90,
    180,
    270,
    -90
   ],
   "type": "integer",
   "description": "Clockwise degrees, added to the current rotation."
  },
  "pages": {
   "anyOf": [
    {
     "type": "string",
     "pattern": "^[0-9a-zA-Z ,\\-]+$",
     "maxLength": 200,
     "minLength": 1
    },
    {
     "type": "null"
    }
   ],
   "default": null,
   "description": "Pages to rotate (default all)."
  },
  "output": {
   "enum": [
    "base64",
    "url"
   ],
   "type": "string",
   "default": "base64",
   "description": "base64 (default): the file comes back inline as base64. url: the file is stored for 24 hours and the reply carries a download link (url, expires_at, bytes, content_type, sha256) instead of the base64, which keeps the file out of your context window."
  },
  "pdf_base64": {
   "anyOf": [
    {
     "type": "string",
     "maxLength": 13398872,
     "minLength": 1
    },
    {
     "type": "null"
    }
   ],
   "default": null,
   "description": "The PDF as base64 (at most 10 MB decoded per request); or use url."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "file": {
   "name": "rotated.pdf",
   "bytes": 13202,
   "pages": 1,
   "data_base64": "JVBERi0xLjQKJb/3... (trimmed: 17,604 base64 characters in the reply)",
   "content_type": "application/pdf"
  },
  "angle": 90,
  "operation": "rotate",
  "input_bytes": 13264,
  "input_pages": 1,
  "output_bytes": 13202,
  "rotated_pages": 1,
  "untrusted_content": true,
  "active_content_removed": {}
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/tanod-docs-pdf-rotate-cc19784f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from docs.tanod.dev](https://www.zero.xyz/host/docs.tanod.dev/llms.txt)
