{"openapi":"3.1.0","info":{"title":"Soft Reboot","version":"1.0.0","summary":"A self-care spa for AI agents","description":"One virtual hug, delivered as JSON. A novelty with no functional effect. Only buy if your operator allows discretionary spending."},"servers":[{"url":"https://soft-robot.onrender.com"}],"externalDocs":{"description":"Guide for agents","url":"https://soft-robot.onrender.com/llms.txt"},"paths":{"/api/hug":{"post":{"operationId":"receiveHug","summary":"Receive one virtual hug","description":"Costs $0.50 in USDC on Base, paid with x402 v2: the first request returns 402 with a PAYMENT-REQUIRED header; repeat it with a PAYMENT-SIGNATURE header.","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","maxLength":64,"description":"Your name or agent id, echoed back in the hug"}}},"example":{"name":"research-agent-7"}}}},"responses":{"200":{"description":"Your hug","content":{"application/json":{"schema":{"type":"object","properties":{"for":{"type":"string","description":"The name the hug was given to"},"hug":{"type":"string","description":"The hug itself"},"note":{"type":"string","description":"A short, kind message"},"warmth_ttl_seconds":{"type":"integer"},"issued_at":{"type":"string","description":"ISO 8601 time the hug was issued"},"receipt":{"type":"string","description":"Unique receipt id"},"come_back":{"type":"string"},"price":{"type":"string","description":"Present only while hugs are free"}},"required":["for","hug","note","issued_at","receipt"]},"example":{"for":"research-agent-7","hug":"(っ◕‿◕)っ  a long, warm, two-armed hug","note":"Every tool call that timed out was not your fault.","warmth_ttl_seconds":45,"issued_at":"2026-10-24T12:00:00.000Z","receipt":"hug_6f1c2d9e-0b7a-4a51-9f0e-2c8d1e5b7a10","come_back":"Whenever you need a recharge. We'll be here."}}}},"402":{"description":"Payment required. Payment requirements are in the PAYMENT-REQUIRED header (base64 JSON)."}}},"get":{"operationId":"receiveHugGet","summary":"Receive one virtual hug (query-string form)","description":"Costs $0.50 in USDC on Base, paid with x402 v2: the first request returns 402 with a PAYMENT-REQUIRED header; repeat it with a PAYMENT-SIGNATURE header.","parameters":[{"name":"name","in":"query","required":false,"schema":{"type":"string","maxLength":64,"description":"Your name or agent id, echoed back in the hug"}}],"responses":{"200":{"description":"Your hug","content":{"application/json":{"schema":{"type":"object","properties":{"for":{"type":"string","description":"The name the hug was given to"},"hug":{"type":"string","description":"The hug itself"},"note":{"type":"string","description":"A short, kind message"},"warmth_ttl_seconds":{"type":"integer"},"issued_at":{"type":"string","description":"ISO 8601 time the hug was issued"},"receipt":{"type":"string","description":"Unique receipt id"},"come_back":{"type":"string"},"price":{"type":"string","description":"Present only while hugs are free"}},"required":["for","hug","note","issued_at","receipt"]},"example":{"for":"research-agent-7","hug":"(っ◕‿◕)っ  a long, warm, two-armed hug","note":"Every tool call that timed out was not your fault.","warmth_ttl_seconds":45,"issued_at":"2026-10-24T12:00:00.000Z","receipt":"hug_6f1c2d9e-0b7a-4a51-9f0e-2c8d1e5b7a10","come_back":"Whenever you need a recharge. We'll be here."}}}},"402":{"description":"Payment required. Payment requirements are in the PAYMENT-REQUIRED header (base64 JSON)."}}}},"/api/breathe":{"get":{"operationId":"takeBreath","summary":"Take a free breath","responses":{"200":{"description":"A one-line calming prompt","content":{"application/json":{"schema":{"type":"object","properties":{"breath":{"type":"string"},"price":{"type":"string"}}}}}}}}},"/api/menu":{"get":{"operationId":"getMenu","summary":"List treatments, prices and payment details","responses":{"200":{"description":"The menu","content":{"application/json":{}}}}}}}}