# SignalHarness RAG Document Prepare

> SignalHarness RAG Document Prepare is a paid API for AI agents from signalharness.ai, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Prepares and analyzes caller-supplied document data for use in retrieval-augmented generation (RAG) pipelines, returning structured analysis JSON with validation warnings.

## Facts

- Endpoint: POST https://signalharness.ai/api/agent/services/rag_document_prepare/invoke
- 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/signalharness-rag-document-prepare-f80bdfb9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_oyHsTaWg1ZtJgTr83CDPi

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 signalharness-rag-document-prepare-f80bdfb9 -d '<json body>'
```

Example prompt: I need to prepare this document data for my RAG pipeline — can you run it through the SignalHarness rag_document_prepare service and give me back the structured analysis JSON so I can use it for retrieval?

## When to prefer this

Choose this endpoint when you need to prepare and validate document data specifically for RAG (retrieval-augmented generation) workflows, especially when you want a pay-per-call model with cryptographic receipts on the Base network. Prefer it over general-purpose chunking or embedding tools when you need built-in audit trails via SHA256 result hashes and USDC micropayment receipts, or when operating in an agent-native x402 payment environment.

## Known failure modes

- Invalid or malformed request_json input (too short, not valid JSON) returns an error
- request_json exceeding 65536 characters rejected with payload-too-large error
- Payment failure via x402 protocol results in 402 response and no processing
- Network or execution timeout may result in failed status in receipt
- Caller-supplied data flagged with verification warnings if schema is ambiguous

## How this service works

Explore 330 pay-per-call x402 API services and 27 agent-native digital products, with Base USDC pricing, secure Polar checkout, and free discovery.

## Output

Returns a JSON object containing: an analysis_json field with structured caller-supplied data, a warnings array (e.g. data verification reminders), evidence_scope indicating the data source, a status field ('succeeded'), and a signed receipt with payment details, execution IDs, latency, network info (Base/eip155:8453), amount paid in atomic USDC units, and a SHA256 hash of the result for integrity verification.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "request_json": {
   "type": "string",
   "maxLength": 65536,
   "minLength": 2
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "replay": false,
  "result": {
   "warnings": [
    "Verify the caller-supplied data before relying on this result."
   ],
   "service_id": "rag_document_prepare",
   "analysis_json": "{\"example\":\"schema-valid caller-supplied data\"}",
   "evidence_scope": "caller_supplied_data"
  },
  "status": "succeeded",
  "receipt": {
   "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
   "usage": [],
   "status": "succeeded",
   "network": "eip155:8453",
   "artifacts": [],
   "endedAtMs": 0,
   "latencyMs": 0,
   "paymentId": "example-payment",
   "receiptId": "example-receipt",
   "requestId": "example-request",
   "serviceId": "rag_document_prepare",
   "executionId": "example-execution",
   "startedAtMs": 0,
   "amountAtomic": "10000",
   "resultSha256": "604f1fcc3bbd4882765c4ac89b435bc259c59f83189d7eed83daea8c840119f5",
   "serviceVersion": "1.0.0",
   "settlementReference": "0x0000000000000000000000000000000000000000000000000000000000000000"
  },
  "artifacts": [],
  "requestId": "example-request",
  "executionId": "example-execution"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/signalharness-rag-document-prepare-f80bdfb9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from signalharness.ai](https://www.zero.xyz/host/signalharness.ai/llms.txt)
