# Agent Rest Stop - Unix Window Open/Closed Check

> Agent Rest Stop - Unix Window Open/Closed Check 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).

Determines whether a given unix timestamp range represents an open or closed time window.

## Facts

- Endpoint: POST https://agent-gas-station.agent-gas-station.workers.dev/v1/WindowOpen?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-unix-window-open-closed-check-c87ad592
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_7e2wThSu8FnpsELxlup2T

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-unix-window-open-closed-check-c87ad592 -d '<json body>'
```

Example prompt: Is the time window from unix timestamp 1700000000 to 1700086400 currently open or closed?

## When to prefer this

Use this endpoint when you need a simple, cheap ($0.01 USDC) boolean determination of whether a unix timestamp range is currently active. Ideal for agents doing time-gated logic, scheduling checks, or availability windows based on unix epoch times.

## Known failure modes

- Missing start_unix or end_unix parameters — returns error
- Invalid or malformed unix timestamp strings — returns error
- end_unix before start_unix — may return unexpected result
- Payment not processed — returns 402 Payment Required

## How this service works

Open or closed for a unix window.

## Output

Returns an open or closed status indicating whether the current time falls within the provided unix timestamp range defined by start_unix and end_unix.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "end_unix": {
   "type": "string"
  },
  "start_unix": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-rest-stop-unix-window-open-closed-check-c87ad592/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)
