Upload Watch Data (binary)
Watch Upload
Upload Watch Data (binary)
Receives a binary protobuf payload from an Stealthera Device smartwatch and persists it to Firestore.
Collections written:
live_devices(keyed bydevice_id) — latest snapshothealthData— append-only log withreceivedAttimestamp
Response: A single raw 0x00 byte (application/octet-stream). The Stealthera Device test tool validates exactly this byte — do not change the response format.
Expected parsed payload fields (decoded.data):
| Field | Type | Description |
|---|---|---|
device_id | string | Device IMEI |
heart_rate_bpm | number | Beats per minute |
spo2_percent | number | Blood oxygen % |
body_temperature_c | number | Body temp in °C |
steps | number | Step count |
phone_number | string | Associated phone number |
POST
Upload Watch Data (binary)
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
Must be octet-stream — the watch firmware sends a raw binary payload
Body
application/octet-stream
The body is of type file.
Response
200 - application/octet-stream
ACK byte (0x00)
The response is of type file.