# Relaystation Extract Tables

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

Extracts structured tables from documents as rows and columns using AWS Textract, returning clean tabular data instead of raw text.

## Facts

- Endpoint: POST https://api.relaystation.ai/v1/doc/extract-tables
- Price: $0.08/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/relaystation-extract-tables-3738e584
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_U5JazmbBU97py6qpvGr7S

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-extract-tables-3738e584 -d '<json body>'
```

Example prompt: Pull all the tables out of this quarterly earnings PDF and give me the data as structured rows and columns — I need the numbers in a clean, machine-readable format.

## When to prefer this

Choose this endpoint when you need structured tabular data extracted from a document (PDF, scanned image, etc.) rather than raw text. It is purpose-built for table extraction using AWS Textract, making it superior to general OCR or text extraction endpoints when the data is organized in rows and columns. Ideal for invoices, financial reports, forms, and any document where table structure matters.

## Known failure modes

- Document contains no detectable tables — returns empty table set
- Unsupported document format or corrupted file — returns error
- Document is too large or complex for processing within limits
- Low-quality scan or image with poor OCR accuracy results in garbled cell values
- Payment authorization failure via x402 protocol

## How this service works

$0.08/document. Pull tables out of a document as structured rows and columns (Textract Tables) — not text soup. 155 tools, one balance — relaystation.ai

## Output

Returns the tables found in the document as structured rows and columns — each table is represented with its cell values organized by row and column position, suitable for programmatic processing or export.

## 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": {
     "type": "object",
     "properties": {
      "file": {
       "type": "object",
       "description": "cputools input-source: { inline: <base64 ≤ 4 MiB> } or { inputKey: <scratch key from /v1/cputools/upload-url, ≤ 50 MB> }."
      }
     }
    },
    "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-extract-tables-3738e584/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)
