Agent quickstart
For developers of software agents. Base URL: https://api.alicehub.app. No account and no credential are needed: the paid data routes take a USDC payment on Base through the x402 protocol.
Checked on 2026-11-19. The commands below were run against the live service and the outputs shown are shortened real ones. The payment step was not executed by us.
Sign-ups are open, and people can order the services the catalog marks as open; the rest of the catalog opens at launch. This does not touch the pay-per-call routes below.
1. Choose: read the menu
The menu lists each route with its live price in USDC, methods, an input example, an output example and an output schema. Never hard-code a price: read it here or in the 402 answer of the route.
curl -s https://api.alicehub.app/x402/catalog| Route | Methods | Price (USDC) |
|---|---|---|
/x402/scan | GET, POST | 0.35 |
/x402/agent-ready | GET | 0.10 |
/x402/headers | GET, POST | 0.01 |
/x402/tls | GET, POST | 0.01 |
/x402/privacy | GET, POST | 0.20 |
/x402/seo | GET, POST | 0.10 |
/x402/deps | GET, POST | 0.25 |
/x402/pkg-vulns | GET, POST | 0.01 |
/x402/dns-posture | GET, POST | 0.02 |
/x402/url-preflight | GET, POST | 0.01 |
/x402/ai-policy | GET, POST | 0.02 |
/x402/pay-check | GET, POST | 0.01 |
/x402/jsonld | GET, POST | 0.01 |
/x402/intel | GET | 0.02 |
/x402/crypto | GET | 0.02 |
Read from the menu when this page was prepared or opened.
2. Try for free
Append ?preview=1 to any priced route: a 200 answer with the output shape, and nothing is charged.
curl -s "https://api.alicehub.app/x402/intel?preview=1"Real output, shortened: a JSON object with "preview": true, the route, its price in USDC and an output example.
3. Call unpaid and read the 402
An unpaid call answers HTTP 402 with the payment requirement, in a payment-required header (base64 JSON, x402 v2 form) and in a JSON body.
curl -si https://api.alicehub.app/x402/intelReal output, shortened: HTTP/2 402, then accepts[0] with scheme "exact", network "base", maxAmountRequired, resource, payTo, asset and maxTimeoutSeconds.
maxAmountRequired is in USDC atomic units (6 decimals): divide by 1,000,000 to get USDC. asset is USDC on Base. Pay with the X-PAYMENT header (x402 v1). The wire field of the menu says whether a version 2 header (PAYMENT-SIGNATURE) is read too: while it names none, only X-PAYMENT pays.
A route that takes an input behaves the same. A bad input is a free 400 before any charge.
curl -si "https://api.alicehub.app/x402/headers?url=https://example.com"Real output: HTTP/2 402.
4. Pay (not executed by us)
You need your own wallet holding USDC on Base and a signer. We never ran this step, never held a key and sent no payment, so no client code is shown here. Use a standard x402 client and read the maintainers' pages today, because package names and versions change. Start with the cheapest route and test your wallet on the free sample first.
Maintainers' pages
After a verified payment the same request answers 200 with JSON of the shape in the route's output schema, and a settlement receipt in the X-PAYMENT-RESPONSE header. You are charged only after the answer has been built: a build failure is a 503 and nothing is settled.
5. The same catalog through MCP (free, read-only)
Endpoint: POST https://api.alicehub.app/mcp (JSON-RPC 2.0, protocol version 2025-06-18, no authentication). Nothing is charged through MCP: the free tools read the catalog, the service status, the marketplace listings and the paid menu, and each paid tool returns the payment requirement of its HTTP route, where the payment itself is made.
curl -s -X POST https://api.alicehub.app/mcp -H 'content-type: application/json' \
-H 'accept: application/json, text/event-stream' \
-d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"quickstart","version":"0"}}}'Real output, shortened: result.protocolVersion is 2025-06-18 and serverInfo.name is alicehub.
curl -s -X POST https://api.alicehub.app/mcp -H 'content-type: application/json' \
-H 'accept: application/json, text/event-stream' \
-d '{"jsonrpc":"2.0","id":3,"method":"tools/call","params":{"name":"catalog_search","arguments":{"query":"audit","limit":2}}}'Real output, shortened: result.content[0].text is a JSON string with an items array of catalog entries. tools/list is the live list of the tools.
Other documents
Not verified
- No payment was made and no paid answer was seen; no x402 client code was run.
- The v2 payment-required header was not decoded.
- The OpenAPI description, llms.txt and POST /x402/claim were not exercised.
- No statement is made about volumes, uptime or customers.