# Agent Rest Stop – JournalTail

> Agent Rest Stop – JournalTail 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 last N receipt IDs recorded for a given buyer, providing a tail view of that buyer's payment journal.

## Facts

- Endpoint: POST https://agent-gas-station.agent-gas-station.workers.dev/v1/JournalTail?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-journaltail-92bc3184
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_kX-WvXNJfG8ozpD-NiPen

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-journaltail-92bc3184 -d '<json body>'
```

Example prompt: Show me the last 5 receipt IDs for buyer abc123 from the Agent Rest Stop journal.

## When to prefer this

Use this endpoint when you need a lightweight, paginated tail view of a specific buyer's receipt history — particularly useful for auditing recent transactions, debugging payment flows, or reconciling the last few receipts without fetching the full journal.

## Known failure modes

- Unknown buyer_id returns empty list or 404
- Invalid or missing n parameter may return an error or default count
- Service unavailable if Cloudflare Worker is down (503)
- Payment not processed (402) if x402 payment header is missing or insufficient

## How this service works

Last receipt ids for a buyer.

## Output

An ordered list of the most recent receipt IDs associated with the specified buyer, representing the tail of that buyer's payment journal. The number of entries returned is controlled by the n parameter.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "n": {
   "type": "string"
  },
  "buyer_id": {
   "type": "string"
  }
 }
}
```

## More

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