# Quartermaster x402 Router

> Quartermaster x402 Router is a paid API for AI agents from quartermaster.surewhynot.app, paid per call via x402, $0.03/call, status unknown (last checked 2026-09-15).

Accepts a plain-English goal and automatically routes it to the right tool from the full Quartermaster toolkit, returning the answer plus which tool was used.

## Facts

- Endpoint: GET https://quartermaster.surewhynot.app/v1/route
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/quartermaster-x402-router-76d35d00
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_drPu1tGWr6fI1zuhUV0ga

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 quartermaster-x402-router-76d35d00
```

Example prompt: Use Quartermaster's router to figure out if 0x1234abcd5678ef90 is a contract on Base — just send the goal as a plain-English question and let it pick the right tool.

## When to prefer this

Use this endpoint when you don't know which specific Quartermaster tool to call, or when you want a single unified entry point for any x402, Base blockchain, crypto-price, or web/AI task. Ideal for agents that need to handle diverse user queries without hardcoding per-tool routing logic.

## Known failure modes

- Ambiguous or unrecognizable goal in q results in no tool match and an error response
- Goal references an unsupported domain outside x402/crypto/web toolkit
- Network or upstream tool failure returns an error indicating which sub-tool failed
- Malformed query string or missing q parameter returns a 400-level validation error
- Payment not completed results in 402 Payment Required response

## How this service works

The x402 Router: send a plain-English goal in q (e.g. 'audit https://api.example.com/paid', 'price of eth', 'is 0x… a contract', 'verify settlement 0x…') and Quartermaster picks the right tool from its full toolkit, runs it, and returns the answer plus which tool it used. One endpoint for anything x402, crypto-on-Base, or web/AI.

## Output

Returns the answer to the requested goal along with metadata indicating which underlying tool was selected and executed, in structured JSON.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "q"
     ],
     "properties": {
      "q": {
       "type": "string",
       "description": "Plain-English goal; the router picks and runs the right tool"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/quartermaster-x402-router-76d35d00/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from quartermaster.surewhynot.app](https://www.zero.xyz/host/quartermaster.surewhynot.app/llms.txt)
