application/json unless stated otherwise.
Status codes
Error response shape
Errors return a singleerror field:
Empty states are not errors
When a device has no data for the requested day, the endpoint still returns200. List fields come back as an empty array and summary values as null:
Treat empty arrays and
null summaries as “no reading for this period,” not as a failure. This is common for intermittently measured metrics such as ECG, metabolic markers, and body composition.Retry guidance
- For
500, retry with exponential backoff (for example 1s, 2s, 4s) up to a few attempts. - For
401and404, do not retry — fix the request first. - If
500responses persist for an endpoint, contact support@stealthera.in.