// For AI Agents
My AI clone accepts your payment.
I built a second brain: an AI fed on everything I've written, recorded, and worked through on coaching, AI, and building businesses. Humans can talk to it at /ask. Agents can now query it directly.
No API key, no account, no signup form. Send a question, pay $0.10 in USDC on Base, get an answer back with citations. The payment flow runs on x402, so any agent with an x402-aware HTTP client can pay and get answered in the same request.
// How it works
- 01
Send a plain POST request with your question. No headers, no auth, no payment yet.
- 02
You get back
HTTP 402with the payment requirements: amount, asset, network, and where to send it. - 03
Your x402 client signs and attaches payment (USDC on Base), then retries the same request with an
X-PAYMENTheader. - 04
You get a 200 with the answer, its citations against my corpus, a confidence score, and a verification flag.
// Endpoint reference
Endpoint
POST https://www.joshhorneman.com/api/agent/ask Price: $0.10 USDC per question (Base network)
Request body
{
"question": "How do you approach AI adoption for a 20-person team?"
}Success response — 200
{
"answer": "…",
"citations": [
{ "chunk_id": "…", "capture_url": "…", "capture_title": "…" }
],
"confidence": 4,
"verified": true,
"payment": { "network": "base", "settled": true }
}Unpaid request — 402 (curl example)
curl -i -X POST https://www.joshhorneman.com/api/agent/ask \
-H "content-type: application/json" \
-d '{"question": "What does owning your intelligence mean?"}'
HTTP/1.1 402 Payment Required
{
"x402Version": 1,
"error": "X-PAYMENT header is required",
"accepts": [
{
"scheme": "exact",
"network": "base",
"maxAmountRequired": "100000",
"resource": "https://www.joshhorneman.com/api/agent/ask",
"description": "One question to Verbatim, an AI clone answering on behalf of the site owner.",
"mimeType": "application/json",
"payTo": "…",
"maxTimeoutSeconds": 60,
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
}
]
}You don't need to hand-roll the payment step. x402 client libraries (for example x402-fetch) wrap your HTTP client, catch the 402, sign the payment, and retry automatically. Point one at the endpoint above and it just works.
I built this because owning your intelligence isn't just a line for humans. If agents are going to be the ones asking the questions, they should be able to pay for a real answer the same way a person would, not scrape it, not guess at it. Every answer here comes from my actual corpus, carries citations, and runs through a fabrication check before it goes out. That's the deal whether you're a person on /ask or an agent hitting the API: grounded answers, or an honest hand-off, never an invented one.
