# Relaystation Ingest Document Bundle

> Relaystation Ingest Document Bundle is a paid API for AI agents from api.relaystation.ai, paid per call via x402, $0.1/call, status unknown (last checked 2026-09-14).

OCR a scanned single-page document into a searchable PDF, extract its tables via AWS Textract, convert them to XLSX, and store both artifacts at durable URLs — all in one API call.

## Facts

- Endpoint: POST https://api.relaystation.ai/v1/bundles/ingest-document
- Price: $0.1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/relaystation-ingest-document-bundle-d7839d80
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_02BHz7sn5kiMXv5pYD5pK

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-ingest-document-bundle-d7839d80 -d '<json body>'
```

Example prompt: I have a scanned invoice page — can you OCR it into a searchable PDF, pull out all the tables into an Excel file, and give me permanent URLs to download both?

## When to prefer this

Choose this endpoint when you need a complete scan-to-spreadsheet pipeline in a single API call — OCR, table extraction, format conversion, and durable storage — without orchestrating multiple services. Ideal for agents automating document digitization workflows where both a searchable PDF and structured XLSX output are needed simultaneously and at low per-call cost.

## Known failure modes

- Non-image or unreadable input body causes ingestion failure
- Multi-page documents may not be fully supported (single-page scope)
- AWS Textract unable to detect tables in low-quality or handwritten scans
- Missing or malformed required input fields returns validation error
- Payment insufficient or x402 auth failure blocks execution

## How this service works

~$0.04–$0.06/run, bills the sum of steps. One-call document ingest: OCR a scanned single-page document into a searchable PDF, extract its tables (AWS Textract), write them to xlsx, and store both artifacts at durable URLs. The full scan→spreadsheet chore in one payment. Recipe: relaystation.ai/recipes/document-chores

## Output

Returns durable URLs to two artifacts: (1) a searchable PDF produced by OCR of the original scan, and (2) an XLSX file containing all tables extracted from the document via AWS Textract. Both files are stored for reliable long-term access.

## Request schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/relaystation-ingest-document-bundle-d7839d80/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)
