IoT Health Dashboard

Real-time monitoring and analytics

API Documentation

Send data to your IoT Health Dashboard using the webhook endpoint below

Endpoint

POST /api/readings

Supported Metrics

temperature

Body temperature in °F or °C

blood_pressure

Systolic blood pressure in mmHg

glucose

Blood glucose in mg/dL

sleep_time

Hours of sleep

Request Body

{
  "deviceId": "device-001",
  "metric": "temperature | blood_pressure | glucose | sleep_time",
  "value": 98.6,
  "unit": "°F",
  "timestamp": "2026-01-30T07:05:33.859Z"
}

Example Usage

cURL

curl -X POST /api/readings \
  -H "Content-Type: application/json" \
  -d '{
    "deviceId": "device-001",
    "metric": "temperature",
    "value": 98.6,
    "unit": "°F",
    "timestamp": "2026-01-30T07:05:33.859Z"
  }'

Python

import requests
import json
from datetime import datetime

url = "/api/readings"
data = {
    "deviceId": "device-001",
    "metric": "temperature",
    "value": 98.6,
    "unit": "°F",
    "timestamp": datetime.utcnow().isoformat()
}

response = requests.post(url, json=data)
print(response.json())

JavaScript

const response = await fetch('/api/readings', {
  method: 'POST',
  headers: { 'Content-Type': 'application/json' },
  body: JSON.stringify({
    deviceId: 'device-001',
    metric: 'temperature',
    value: 98.6,
    unit: '°F',
    timestamp: new Date().toISOString()
  })
});

const result = await response.json();
console.log(result);