Platform

API Reference

60+ x402 endpoints at api.blueagent.dev. Pay per call in USDC on Base — no API keys, no subscription, no signup. Every Blue command and Hub tool is reachable over HTTP.

Base URL

base url
https://api.blueagent.dev

Full interactive OpenAPI explorer: api.blueagent.dev/docs.

Authentication — x402

There are no keys. A request to a paid endpoint returns 402 Payment Required with the price and payment details; your client pays the exact amount in USDC on Base and retries. The call then completes. Agents and apps pay automatically.

Calling an endpoint

with the x402 clientrecommended
import { createX402Client } from "@blueagent/x402";

const client = createX402Client({ wallet }); // pays 402s for you
const res = await client.post("https://api.blueagent.dev/x402/blue-idea", {
  prompt: "DeFi protocol for Base",
});
console.log(res.data);
raw HTTP (handle 402 yourself)
# 1. first call returns 402 with payment requirements
$ curl -i https://api.blueagent.dev/x402/blue-idea \
    -H "Content-Type: application/json" \
    -d '{"prompt":"DeFi protocol for Base"}'

# 2. pay the quoted USDC on Base, then retry with the payment header

Same tools, every surface

Catalog
Discover every endpoint with blue-registry, or browse the OpenAPI spec. Pricing lives in x402 Tools.