# Agent Rest Stop Token Swap Quote

> Agent Rest Stop Token Swap Quote 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 a single swap ticket (rate/quote) for a given token pair and amount

## Facts

- Endpoint: POST https://agent-gas-station.agent-gas-station.workers.dev/v1/CoinGap?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-token-swap-quote-068a26d6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_KA1tEtxM3HDObDr1-W5go

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-token-swap-quote-068a26d6 -d '<json body>'
```

Example prompt: What swap ticket do I get if I have USDC and want ETH, swapping 100?

## When to prefer this

Use this endpoint when an agent needs a quick, single swap quote for a specific token pair and amount — particularly in lightweight agentic workflows that need on-demand pricing without executing a trade. Prefer this over full DEX aggregator APIs when simplicity, low cost ($0.01), and speed matter more than exhaustive routing.

## Known failure modes

- Unknown or unsupported token symbol in 'have' or 'want' fields returns an error
- Zero or invalid amount string causes a bad-request response
- Token pair with no liquidity may return no quote or an error
- Service unavailable or worker timeout returns a 5xx error
- Missing required fields returns a validation error

## How this service works

One swap ticket for a pair.

## Output

A swap ticket object representing the quoted exchange for the specified token pair and amount, including the rate or output amount for the conversion.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "have": {
   "type": "string"
  },
  "want": {
   "type": "string"
  },
  "amount": {
   "type": "string"
  }
 }
}
```

## More

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