# RelayStation PDF Bookmarks

> RelayStation PDF Bookmarks 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).

Reads and returns a PDF's outline/bookmark tree as structured JSON, enabling navigation of document structure before content extraction.

## Facts

- Endpoint: POST https://api.relaystation.ai/v1/pdf/bookmarks
- 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-bookmarks-3f351522
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_iFddk65xpDiJiLE3LRI5Z

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-bookmarks-3f351522 -d '<json body>'
```

Example prompt: Can you read the bookmark tree of this PDF and give me the full outline as JSON so I can see its chapter and section structure before I start extracting content?

## When to prefer this

Use this endpoint when you need to understand a PDF's document structure — chapters, sections, subsections — before deciding which parts to extract. It is ideal as a first step in multi-stage PDF processing pipelines, for verifying document completeness, or for building navigation interfaces. Prefer this over full-text extraction when you only need the outline, not the content.

## Known failure modes

- PDF has no bookmarks or outline — returns empty or null tree
- PDF is password-protected or encrypted — access denied error
- Malformed or corrupted PDF — parse failure
- PDF URL is inaccessible or times out — network error
- Input body missing required fields — validation error

## How this service works

$0.001/call. Read a PDF's outline/bookmark tree as JSON — navigate structure before extracting. 1¢ x402 min; remainder auto-credits — relaystation.ai/penny

## Output

A JSON representation of the PDF's bookmark/outline tree, including section titles, nesting levels, and page references — essentially the document's navigational skeleton for use in further extraction or display.

## 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-bookmarks-3f351522/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)
