Skip to Content
edgebootDevicesDevice speedtest

Device speedtest

POST/api/v1/integrations/devices/{serial_number}/speedtestIntegration API

Runs a speedtest on the device by publishing an MQTT command and waiting for a response. The account is resolved from the Bearer token; the device must belong to that account.

Authentication
Bearer access token
Content-Type
application/json

Path parameters

ParameterTypeRequiredDescription
serial_numberstringYesDevice serial number.

Headers

HeaderValueRequired
AuthorizationBearer <access_token>Yes
Content-Typeapplication/jsonYes

Request body

FieldTypeRequiredDescription
interfacestringYesNetwork interface to test (passed through to the device speedtest command).
timeoutintegerNoHow long to wait for the device response (seconds).

Responses

HTTPDescription
200JSON body `{ "success": <bool>, "result": <object> }` from the device response (not wrapped in `ApiResponse`).
401Unauthorized — invalid or missing Bearer token.
404Account could not be resolved or device not found (`ApiResponse`, `success: false`).
500Unexpected failure or MQTT error (`ApiResponse`, `success: false`).
504No response from device within the timeout (`ApiResponse`, e.g. `"Device did not respond to speedtest command"`).

Example

Success shape (200)

The result object is defined by your device firmware and MQTT handler; treat keys as examples only.

Last updated on