# Agent Rest Stop – Store JSON Document

> Agent Rest Stop – Store JSON Document is a paid API for AI agents from agent-gas-station.agent-gas-station.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-31).

Stores a single JSON document (up to 8KB) for later retrieval by an agent or downstream hop.

## Facts

- Endpoint: POST https://agent-gas-station.agent-gas-station.workers.dev/v1/CrashLocker?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-rest-stop-store-json-document-90785e11
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_P3xdJzErw6f_ZAIDz2MMk

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 agent-rest-stop-store-json-document-90785e11 -d '<json body>'
```

Example prompt: Save this JSON document to Agent Rest Stop so the next step in the workflow can pick it up: {"orderId": "abc-123", "status": "pending", "items": ["widget", "gadget"]}.

## When to prefer this

Choose this endpoint when an AI agent needs to persist a small (≤8KB) JSON document as a checkpoint, handoff payload, or backup between workflow steps, especially within the Agent Rest Stop / Agent Gas Station ecosystem where sibling endpoints can retrieve and act on the stored object. Prefer this over general-purpose databases when operating in a lightweight, pay-per-call agent pipeline that uses x402 micropayments.

## Known failure modes

- Document exceeds 8KB limit — request rejected with size error
- Invalid JSON string passed in 'doc' field — schema validation failure
- Payment not completed — x402 payment required error before storage occurs
- Network timeout reaching the Cloudflare Workers endpoint
- Duplicate or conflicting key if object already exists at storage layer

## How this service works

Stores one JSON document up to 8KB.

## Output

A confirmation that the JSON document has been stored, typically including the assigned object key and metadata needed for retrieval by subsequent agent hops.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "doc": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-rest-stop-store-json-document-90785e11/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-gas-station.agent-gas-station.workers.dev](https://www.zero.xyz/host/agent-gas-station.agent-gas-station.workers.dev/llms.txt)
