# Coding Agent Context APIs – Gateway Run

> Coding Agent Context APIs – Gateway Run is a paid API for AI agents from x402-canary.nicolas-x402-16f380a7.workers.dev, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-15).

Routes coding-agent utility requests to tools like exchange rates, FX conversion, cron explanation, DNS lookup, URL normalization, domain enrichment, email preflight, JSON inspection, and SHA-256 hashing via a single gateway endpoint.

## Facts

- Endpoint: POST https://x402-canary.nicolas-x402-16f380a7.workers.dev/v1/gateway/run
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/coding-agent-context-apis-gateway-run-a5647237
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_LIHJdOlKt3JHVIYMVpv4E

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 coding-agent-context-apis-gateway-run-a5647237 -d '<json body>'
```

Example prompt: Can you explain what the cron expression '0 9 * * 1-5' means — use the coding agent gateway with the cron-explain tool.

## When to prefer this

Choose this endpoint when a coding agent needs quick, deterministic utility operations — especially cron expression parsing, DNS/domain/email validation, currency conversion, URL normalization, or SHA-256 hashing — in a single pay-per-call gateway without needing separate API keys for each service. Ideal for AI coding agents that need context about npm packages, domain safety, or infrastructure during code generation workflows.

## Known failure modes

- Unknown or unsupported tool enum value returns an error
- Missing required input fields for the selected tool returns a validation error
- Network or upstream service timeout for browser-rendered or external lookups
- Payment not settled (x402) results in 402 response before tool execution
- Malformed JSON input returns a parse error

## How this service works

Free need-to-tool routing plus pay-per-call npm docs and TypeScript API signatures, npm breaking-change diffs, JavaScript-rendered browser snapshots and deterministic coding-agent checks via AgentCash/x402.

## Output

A JSON object with a 'data' field containing the tool name and its result (e.g. cron schedule breakdown, exchange rate, DNS records, normalized URL, domain metadata, SHA-256 hash), plus a 'meta' field indicating the engine used ('gateway').

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "tool": {
   "enum": [
    "exchange-rates",
    "fx-convert",
    "earthquakes-recent",
    "cron-explain",
    "domain-preflight",
    "domain-enrich",
    "email-preflight",
    "dns-lookup",
    "url-normalize",
    "json-inspect",
    "hash-sha256"
   ],
   "type": "string"
  },
  "input": {
   "type": "object"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "tool": "cron-explain",
   "result": {}
  },
  "meta": {
   "engine": "gateway"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/coding-agent-context-apis-gateway-run-a5647237/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-canary.nicolas-x402-16f380a7.workers.dev](https://www.zero.xyz/host/x402-canary.nicolas-x402-16f380a7.workers.dev/llms.txt)
