# Relaystation PDF Attachments Extractor

> Relaystation PDF Attachments Extractor 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-14).

List or extract files embedded as attachments inside a PDF document programmatically

## Facts

- Endpoint: POST https://api.relaystation.ai/v1/pdf/attachments
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/relaystation-pdf-attachments-extractor-b08c3650
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_9dMM17lOl4LLdZbtUX_Fv

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-attachments-extractor-b08c3650 -d '<json body>'
```

Example prompt: Pull out all the embedded attachments from this PDF and give me a list of what's inside — I need to access the files that are bundled into the document.

## When to prefer this

Choose this endpoint when you need to programmatically list or extract files that are embedded as attachments inside a PDF (e.g. ZUGFeRD XML, embedded spreadsheets, bundled images). It is billed per MB at $0.0005/MB with a 1¢ minimum, making it cost-effective for occasional or batch extraction tasks. Prefer this over general PDF parsing endpoints when your goal is specifically the embedded attachment files rather than the PDF's text content or pages.

## Known failure modes

- PDF has no embedded attachments — returns empty list
- Invalid or malformed PDF — returns parse error
- PDF is password-protected — returns access denied error
- File too large — billing is per MB so oversized files may hit limits
- URL to PDF unreachable — returns fetch/network error
- Corrupted PDF binary — returns extraction failure

## How this service works

$0.0005/MB. List or extract files embedded inside a PDF — pull attachments out programmatically. 1¢ x402 min; remainder auto-credits — relaystation.ai/penny

## Output

Returns a list of files embedded as attachments within the PDF, including metadata such as filenames, file sizes, and MIME types, along with the extracted binary or base64-encoded file contents for each attachment.

## 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-attachments-extractor-b08c3650/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)
