(Get started)
Quickstart
Price a query, read the 402, check the room.
Everything below runs against the live API with no account and no key.
1. Read the room.
curl https://darkroomcoin.com/api/room
You get its encryption key, the hash a TDX quote must bind, and whether it is attested yet.
2. Price a query. Free, and counted as a price request.
curl -X POST https://darkroomcoin.com/api/query/quote \
-H 'content-type: application/json' \
-d '{"kinds":["ride"],"question":"commute minutes by weekday","negatives":412}'
3. Run it. The same body on /api/query. The room refuses for free when it cannot answer (below the floor, or not enough negatives uploaded), and otherwise answers 402 with the price and where to pay it. See Queries and x402.
4. From an agent. Point any MCP client at /mcp (MCP server) or load the SDK.