This API will return the device’s current Fuel Level. It requires the Account ID and Device IDs as an input parameter.
Request
Add parameter in header x-api-key
Example:x-api-key: ********************
Access token which was generated earlier
Body Params application/json
Device id list, Comma separated String
{
"acctId": "string",
"devIds": "string"
}
Request samples
curl --location --request POST '/devices/fuel-level' \
--header 'token;' \
--header 'Content-Type: application/json' \
--header 'x-api-key;' \
--data-raw '{
"acctId": "string",
"devIds": "string"
}'
Responses
devices
array [object {3}]
optionalDevice Fuel Level 2 is % Fuel Level - Right side Tank
{
"devices": [
{
"devId": "string",
"fuelLevel": 0,
"fuelLevel2": 0
}
]
}
Modified at 2025-02-28 08:12:14