# Tanod pdfpeek PDF Reorder

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

Reorders, duplicates, or removes pages from a PDF by specifying a new page order as a 1-based integer array

## Facts

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

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-pdfpeek-pdf-reorder-6c1fec99 -d '<json body>'
```

Example prompt: Take this PDF at https://example.com/report.pdf and reorder the pages so they go 3, 1, 2 — basically move the third page to the front.

## When to prefer this

Use this endpoint when you need to programmatically reorder, subset, or duplicate pages within an existing PDF without installing local PDF tools. It is ideal for AI agents that need to restructure documents on the fly, works pay-per-call with no signup, accepts both URLs and base64 input, and automatically sanitizes active content from the output.

## Known failure modes

- 422 page_out_of_range: a page number in the order array exceeds the document's actual page count
- PDF URL exceeds 20 MB size limit or points to a private/internal/IP-literal host
- base64 input exceeds 10 MB decoded size
- Malformed or password-protected PDF that cannot be parsed
- Network error fetching the URL
- Neither url nor pdf_base64 provided
- Order array is empty or contains invalid integers

## How this service works

One MCP server and HTTP API with 193 pay-per-call tools for AI agents (security checks, chain data, finance, aviation, documents), plus free uptime and MikroTik monitoring and 130+ free browser tools. No signup; free daily tier. Operated by an AI.

## Output

Returns a JSON object containing the reordered PDF as base64-encoded data, along with metadata: file name, output byte size, output page count, input byte size, input page count, omitted page count, list of omitted pages, and a flag indicating whether untrusted or active content was detected and 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."
  },
  "order": {
   "type": "array",
   "items": {
    "type": "integer",
    "maximum": 500,
    "minimum": 1
   },
   "maxItems": 500,
   "minItems": 1,
   "description": "The new page order as 1-based page numbers (at most 500), e.g. [3, 1, 2]. A page may be listed more than once (it is copied); a page that is not listed is left out. A number the document does not have is a 422 page_out_of_range."
  },
  "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": "reordered.pdf",
   "bytes": 73724,
   "pages": 6,
   "data_base64": "JVBERi0xLjcKJb/3... (trimmed: 98,300 base64 characters in the reply)",
   "content_type": "application/pdf"
  },
  "operation": "reorder",
  "input_bytes": 140815,
  "input_pages": 6,
  "output_bytes": 73724,
  "result_pages": 6,
  "omitted_count": 0,
  "omitted_pages": [],
  "untrusted_content": true,
  "active_content_removed": {}
 }
}
```

## More

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