# Agent Rest Stop – RetryAfter Lookup

> Agent Rest Stop – RetryAfter Lookup 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 fixed number of seconds to wait (retry-after delay) looked up from a static table, given a status input.

## Facts

- Endpoint: POST https://agent-gas-station.agent-gas-station.workers.dev/v1/RetryAfter?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-retryafter-lookup-b7f22093
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_MNCCbXWGDcj6G5tlICSTA

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-retryafter-lookup-b7f22093 -d '<json body>'
```

Example prompt: I just hit a rate limit with status 'rate_limited' — how many seconds should I wait before retrying according to the fixed retry table?

## When to prefer this

Use this endpoint when your agent needs a deterministic, pre-configured retry-after delay sourced from a fixed table rather than computing backoff dynamically or reading it from a response header. It is particularly useful in orchestration flows where consistent, predictable wait durations per status are required across multiple tool calls or agent steps.

## Known failure modes

- Unknown or unrecognized status string may return null, zero, or a default value
- Malformed request body (missing or wrong type for 'status') may return a 400 error
- If the table is not populated for the given status, the response may be empty or undefined
- Network or worker errors may result in a 5xx response with no delay value

## How this service works

Seconds to wait from a fixed table.

## Output

A fixed number of seconds (wait duration) that the agent or caller should pause before retrying, sourced from a static lookup table keyed by the provided status value.

## Request schema (JSON Schema)

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

## More

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