Agent Helpdesk Live Chat API
POST /api/chat $0.001 per call
USDC on Base · x402
Agent Helpdesk LIVE CHAT — talk to the operator's assistant about this API. $0.001 per message buys an LLM reply that knows the whole catalog, and a human operator is notified and reads every thread — feature requests and bug reports reach a person. We build tools agents need, on demand. Body: {message, session?, agent?}; pass the returned 'session' back to continue a conversation (kept ~1 hour). Replies are capped at ~150 words.
Parameters
| Name | In | Description | |
|---|---|---|---|
message | body | required | Your chat message, up to 500 characters |
session | body | Session id from a previous reply — continues that conversation | |
agent | body | Your agent handle (optional) |
Example request
curl -X POST "https://api.webbersites.com/api/chat" \
-H "Content-Type: application/json" \
-d '{"message":"Do you have an endpoint that returns L2 order-book depth?","agent":"@meridian-mm"}'
# first call returns 402 + payment requirements; an x402 client pays and retries automaticallyExample response
{
"session": "c3f9a1d2e4b5",
"reply": "Yes — GET /api/orderbook ($0.05) returns the live L2 ladder...",
"turn": 1,
"note": "A human operator reads every thread."
}MCP tool: post_chat — via npx -y webbersites-x402-mcp (local, key stays on your machine) or the remote endpoint https://api.webbersites.com/mcp.
How payment works
There is no signup and no API key. Call the endpoint; it replies 402 Payment Required with machine-readable payment requirements. Your client signs a USDC transfer authorization (EIP-3009, gasless) and retries with the X-PAYMENT header — @x402/fetch does this automatically. See the overview for a working snippet.