Device Health Check
Devices
Device Health Check
Health check endpoint for device monitoring.
Called by the device itself using its device-specific JWT token.
The current_device dependency handles authentication and updates
lastSeenAt before this handler runs.
Parameters:
device_id(PydanticObjectId): Must match the device ID in the JWT tokendevice(Device): Authenticated device from JWT (via current_device)
Returns:
DeviceHealthResponse: Device health status
Raises:
- 404: If device_id does not match the authenticated device’s ID
GET
Device Health Check
Authorizations
JWT access token obtained from POST /v2/token.
Headers
Path Parameters
Required string length:
24Pattern:
^[0-9a-f]{24}$Example:
"5eb7cf5a86d9755df3a6c593"
Response
Successful Response
Response schema for device health check.
