# Relaystation Parse ID Document

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

Parses a government-issued ID (passport or driver's license) into typed structured fields using AWS Textract AnalyzeID

## Facts

- Endpoint: POST https://api.relaystation.ai/v1/doc/parse-id
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/relaystation-parse-id-document-ca59e0a3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_yjhuNNvB0i-gXwbbndyjo

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-parse-id-document-ca59e0a3 -d '<json body>'
```

Example prompt: Parse this passport image and give me all the structured fields — name, date of birth, document number, expiry date, and issuing country.

## When to prefer this

Use this endpoint when you need to extract typed structured fields from a government-issued ID image (passport or driver's license) without performing identity verification or liveness checks. It is the right choice for data entry automation, form pre-filling, or pre-verification parsing. For full identity verification with liveness detection, use /v1/idverify instead.

## Known failure modes

- Unreadable or blurry image returns low-confidence or empty fields
- Unsupported document type may result in incomplete extraction
- Image too small or low-resolution causes Textract to fail
- Non-government documents (e.g. student ID) may not parse correctly
- Network or Textract service errors return 5xx responses
- Insufficient x402 USDC balance causes payment failure before processing

## How this service works

$0.05/document. Parse a government ID (passport, license) into typed fields (Textract AnalyzeID). Parsing only — for verification + liveness use /v1/idverify. 155 tools, one balance — relaystation.ai

## Output

A structured JSON object containing typed fields extracted from the government ID — such as first name, last name, date of birth, document number, expiration date, issuing country, address, and document type — as parsed by AWS Textract AnalyzeID.

## 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": {
     "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> }."
      }
     }
    }
   },
   "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-parse-id-document-ca59e0a3/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)
