# Agent Rest Stop SnapshotDiff

> Agent Rest Stop SnapshotDiff 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).

Diffs two locker objects at the top level, returning a comparison of their fields by key.

## Facts

- Endpoint: POST https://agent-gas-station.agent-gas-station.workers.dev/v1/SnapshotDiff?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-snapshotdiff-a00af9ec
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_sLG7X5zPzTsqr_Ap5P7iU

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-snapshotdiff-a00af9ec -d '<json body>'
```

Example prompt: Can you diff the two locker snapshots with keys 'backup-2024-01-15' and 'backup-2024-01-16' and tell me what changed at the top level?

## When to prefer this

Use this endpoint when you need to compare two named locker snapshots at the top level and get a structured diff — especially useful for detecting state drift, auditing agent changes, or verifying rollbacks within the Agent Rest Stop ecosystem.

## Known failure modes

- One or both keys do not exist in the locker, returning a not-found error
- Malformed or missing key_a / key_b input causes a validation error
- Network or worker timeout if the locker backend is slow to respond
- Identical objects may return an empty diff, which is valid but could be mistaken for an error

## How this service works

Diffs two locker objects at the top level.

## Output

A top-level diff of two locker objects identified by their keys, showing which fields are added, removed, or changed between key_a and key_b.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "key_a": {
   "type": "string"
  },
  "key_b": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-rest-stop-snapshotdiff-a00af9ec/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)
