{
  "service": "amazonbot",
  "docs": "manages a personal Amazon (amazon.com.au) account — see README.md",
  "auth": "all endpoints except `/` require ?token= or Authorization: Bearer <API_TOKEN>",
  "endpoints": {
    "POST /session": "seed/refresh the Amazon session (body: `agent-browser cookies get --json` output)",
    "GET /session": "session metadata (age, cookie count)",
    "GET /auth": "Amazon session health: { authenticated }",
    "GET /account": "account name / auth state",
    "GET /search?q=<term>": "product search (asin, title, price, rating, image)",
    "GET /subscriptions": "Prime membership / subscription status",
    "GET /orders": "order ids (live) + browser-harvested order data (KV)",
    "POST /orders": "sink for browser-harvested order data (research/harvest.sh)",
    "GET /raw?path=/...": "read-only passthrough: fetch any amazon.com.au path with the session",
    "GET /db/:key?": "inspect KV"
  }
}