Skip to content

Report Reboot

POST
/api/v1/reboot
curl --request POST \
--url https://example.com/api/v1/reboot \
--header 'Content-Type: application/json' \
--header 'X-API-Key: example' \
--header 'X-Device-ID: example' \
--data '{ "reason": "example", "uptime_before_seconds": 1 }'

Report why the device last rebooted (watchdog, panic, power loss, …).

Gated on metrics:write rather than a dedicated scope: every device key already carries it, so the whole provisioned fleet can report reboots without a scope-backfill migration.

X-Device-ID
required
X-Device-Id
string
X-API-Key
required
X-Api-Key
string
Media type application/json
RebootEventCreate

Reboot report sent by a device after it comes back up

object
reason
required
Reason
string
uptime_before_seconds
Any of:
number
Example generated
{
"reason": "example",
"uptime_before_seconds": 1
}

Successful Response

Media type application/json
Example generated
example

Validation Error

Media type application/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
ctx
Context
object
input
Input
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Example generated
{
"detail": [
{
"ctx": {},
"input": "example",
"loc": [
"example"
],
"msg": "example",
"type": "example"
}
]
}