# Agent Rest Stop – BackupKey

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

Returns the latest backup object key and its age in seconds for agent state recovery

## Facts

- Endpoint: POST https://agent-gas-station.agent-gas-station.workers.dev/v1/BackupKey?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-backupkey-2866a06c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_D-45DgAFc4ZZPSy_ygC8X

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-backupkey-2866a06c -d '<json body>'
```

Example prompt: What's the latest backup key and how old is it — I want to know if we have a recent enough snapshot before I trigger a restore.

## When to prefer this

Choose this endpoint when you need to programmatically discover the most recent backup object key and assess its freshness before initiating a restore or recovery workflow. Prefer this over filesystem or storage-native listing when operating within an agent pipeline that already uses the Agent Rest Stop ecosystem and needs a single consistent API call to get backup state.

## Known failure modes

- No backup exists yet — returns empty or null key
- Backup metadata store unavailable — returns 5xx error
- Payment not processed — returns 402 Payment Required
- Request body malformed — returns 400 with schema validation error
- Worker cold start timeout — returns 503

## How this service works

Latest backup object key and age.

## Output

Returns the latest backup object key (a string identifier for the stored backup object) and its age (how long ago the backup was created, likely in seconds or a human-readable duration), enabling callers to assess whether the backup is recent enough for their recovery needs.

## 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",
     "required": [],
     "properties": {}
    },
    "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/agent-rest-stop-backupkey-2866a06c/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)
