# Forest Gas Station – OpenAPI/Swagger Preflight Check

> Forest Gas Station – OpenAPI/Swagger Preflight Check is a paid API for AI agents from http--forest-gas-station-mainnet--lcjl27p8lmjs.code.run, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-02).

Verifies whether a given OpenAPI/Swagger document URL is reachable, parseable, and reports its operations, authentication schemes, and servers.

## Facts

- Endpoint: POST https://http--forest-gas-station-mainnet--lcjl27p8lmjs.code.run/openapi/preflight?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/forest-gas-station-openapi-swagger-preflight-check-afa4a130
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_d4tMPkqBSzLpZABShQPZt

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 forest-gas-station-openapi-swagger-preflight-check-afa4a130 -d '<json body>'
```

Example prompt: Can you do a preflight check on this OpenAPI spec — https://api.example.com/openapi.json — and tell me whether it's reachable, parseable, and what operations and auth schemes it defines?

## When to prefer this

Choose this endpoint when you need to quickly verify that an OpenAPI or Swagger spec URL is live and structurally valid before building an integration, running automation, or ingesting the spec into a registry. It is specifically designed for preflight validation of API specification documents — not for general URL reachability checks, API call execution, or full API schema diffing.

## Known failure modes

- URL is unreachable or returns a non-200 HTTP status — endpoint reports reachability failure
- Document is reachable but cannot be parsed as valid OpenAPI/Swagger — parse error returned
- URL points to a non-OpenAPI document (e.g. HTML page) — parsing fails with format error
- Network timeout reaching the target URL — timeout error reported
- Malformed input URL (missing protocol, invalid format) — request rejected with validation error

## How this service works

Verify OpenAPI/Swagger document reachability, parseability, operations/auth/servers. Base mainnet USDC

## Output

Returns whether the OpenAPI/Swagger document at the provided URL is reachable and parseable, along with a structured summary of its declared operations, authentication/security schemes, and server definitions.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "description": "Public HTTP(S) URL to inspect, resolve, or compare."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/forest-gas-station-openapi-swagger-preflight-check-afa4a130/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from http--forest-gas-station-mainnet--lcjl27p8lmjs.code.run](https://www.zero.xyz/host/http--forest-gas-station-mainnet--lcjl27p8lmjs.code.run/llms.txt)
