# Relaystation PDF Page Operations

> Relaystation PDF Page Operations is a paid API for AI agents from api.relaystation.ai, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Delete, reorder, or insert pages within a PDF document without requiring desktop software

## Facts

- Endpoint: POST https://api.relaystation.ai/v1/pdf/pages
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/relaystation-pdf-page-operations-6fbbc0cc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_xQoxNpRoOjaudJ9Fj52bS

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 relaystation-pdf-page-operations-6fbbc0cc -d '<json body>'
```

Example prompt: Take this PDF and delete pages 3, 7, and 11, then reorder the remaining pages so page 5 comes first — give me back the restructured PDF.

## When to prefer this

Choose this endpoint when you need to programmatically restructure a PDF — deleting, reordering, or inserting pages — without spinning up desktop software or a heavyweight PDF library. Ideal for agent workflows that receive dynamic PDFs and need to trim or reorganize them on the fly at low per-call cost ($0.001/page). Best suited for document automation pipelines where page-level manipulation is a recurring step.

## Known failure modes

- Invalid or out-of-range page indices — returns error if specified page numbers exceed document length
- Corrupted or password-protected PDF input — returns error indicating unreadable document
- Malformed request body missing required operation parameters — returns 400 bad request
- Payment failure via x402 protocol — transaction not completed, request rejected
- Empty or zero-byte PDF input — returns error for invalid document

## How this service works

$0.001/page. Delete, reorder, or insert PDF pages — restructure without desktop software. 1¢ x402 min; remainder auto-credits — relaystation.ai/penny

## Output

A restructured PDF file returned as binary data, with the requested page operations applied — pages deleted, reordered, or inserted as specified, ready for download or further processing.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "properties": {}
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/relaystation-pdf-page-operations-6fbbc0cc/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.relaystation.ai](https://www.zero.xyz/host/api.relaystation.ai/llms.txt)
