API Documentation
Send data to your IoT Health Dashboard using the webhook endpoint below
Endpoint
POST /api/readingsSupported Metrics
temperatureBody temperature in °F or °C
blood_pressureSystolic blood pressure in mmHg
glucoseBlood glucose in mg/dL
sleep_timeHours of sleep
Request Body
{
"deviceId": "device-001",
"metric": "temperature | blood_pressure | glucose | sleep_time",
"value": 98.6,
"unit": "°F",
"timestamp": "2026-01-30T07:14:17.240Z"
}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:14:17.240Z"
}'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);