{
  "service": "E-Bikes Telemetry API (Demo Prototype)",
  "status": "operational",
  "version": "2.0",
  "architecture": "Edge compute (router) → BikeAgent (Durable Object per bike) → SQLite + Workers AI (for AI inference at the edge with historical context)",
  "features": [
    "processing at the edge",
    "telemetry",
    "device-auth",
    "eapc-compliance check",
    "edge-ai",
    "agentic-actions"
  ],
  "available_endpoints": [
    "GET  / and /health — API info and health-check",
    "POST /telemetry — Submit bike telemetry (AI analysis triggers on alerts)",
    "GET  /bike/:id — Latest state from BikeAgent",
    "GET  /bike/:id/history — Full telemetry history per bike",
    "GET  /fleet — Fleet overview with agent stats",
    "GET  /agent-log — Autonomous agents decision audit trail"
  ],
  "demo_devices": [
    "EBIKE-001",
    "EBIKE-002",
    "EBIKE-003"
  ],
  "try_it": {
    "step_1_health": "curl -s https://e-bike-api.igorbond.info/health | jq .",
    "step_2_normal_telemetry": "curl -s -X POST https://e-bike-api.igorbond.info/telemetry -H 'Content-Type: application/json' -d '{\"bike_id\":\"EBIKE-001\",\"latitude\":51.75,\"longitude\":-0.34,\"battery_level\":78,\"motor_temp_celsius\":42,\"speed_kmh\":18}'",
    "step_3_trigger_ai_agent": "curl -s -X POST https://e-bike-api.igorbond.info/telemetry -H 'Content-Type: application/json' -d '{\"bike_id\":\"EBIKE-002\",\"latitude\":48.85,\"longitude\":2.35,\"battery_level\":8,\"motor_temp_celsius\":88,\"speed_kmh\":32}'",
    "step_4_see_history": "curl -s https://e-bike-api.igorbond.info/bike/EBIKE-002/history | jq .",
    "step_5_fleet_overview": "curl -s https://e-bike-api.igorbond.info/fleet | jq .",
    "step_6_agent_decisions": "curl -s https://e-bike-api.igorbond.info/agent-log | jq .",
    "tip": "Run step 3 multiple times so that the AI agent's decisions become more contextualised as the Durable Object accumulates telemetry history in its embedded SQLite."
  },
  "edge_location": "CMH",
  "country": "US",
  "your_ip_address": "216.73.217.129",
  "timestamp": "2026-10-07T17:28:26.346Z",
  "message2": "If you want to discuss this prototype, have questions about the code, or want to explore how to build something similar, feel free to reach out! I'm always happy to chat about edge computing, AI, Cloud and Security. You can find me on LinkedIn or X @igorbond390315, or just drop a comment at igorbond.info"
}