FleetUp API Docs
  1. Account & User & Device
FleetUp API Docs
  • Quick Start
    • Your First API Call
    • Token Expiration
    • Rate Limit
    • Error Codes
  • API Reference
    • Introduction
    • Authentication
      • /token
      • Obtain JWT Token
    • Account & User & Device
      • /account-info
        POST
      • /users
        GET
      • /drivers/list
        GET
      • /devices
        POST
      • /devices/status
        POST
      • /devices/unlock
        POST
      • /devices/driver-overview
        POST
      • /devices/engine-hours
        POST
      • /devices/fuel-level
        POST
      • /devices/odometer
        POST
      • /devices/latest-ecu-data
        POST
      • /devices/{device-id}
        PUT
      • /devices/{device-type}
        GET
      • /devices/{device-type}/details
        POST
      • /devices/{device-type}/history
        POST
    • Trips
      • /trips/history
      • /trips/ongoing-trips
    • Trip Share
      • /tripshare/live-eta
      • /tripshare/partners
      • /tripshare/share
    • Alerts
      • /alerts/summary
      • /alerts/history
      • /alerts/bulk-history
      • /fencealerts/fence-names
      • /fencealerts/geo-fencealerts
    • Location
      • Retrieve GPS data within a 24-hour time range
      • /gpsdata/device-last-location
      • /gpsdata/latest
      • /gpsdata/latest/4cj
      • /gpsdata/latest/5ta
      • /bulk-gpsdata
    • Maintenance
      • /maintenance/history
      • /maintenance/indicators
      • /maintenance/settings/indicators
      • /maintenance/settings/measurements
    • Reports
      • /reports/temperature-sensors
      • /reports/{report-key}
    • Geofence
      • Get all fences
      • Get fence detail
      • Retrieve geofence alerts
    • Others
      • /jobs
  • API Guides
    • Retrieve All Devices from an Enterprise
  1. Account & User & Device

/devices/{device-type}/details

POST
/devices/{device-type}/details
This API is functional only for device-type = temperature OR device-type = 4CT for now. This will be enhanced for other device-types in subsequent releases.This API returns maximum temperature,humidity and minimum battery levels recorded for a given deviceId for a given date range. Note that the date range should not exceed 3 days.Refer to the response model for response details.

Request

Authorization
Add parameter in header
x-api-key
Example:
x-api-key: ********************
Path Params
device-type
string 
required
Type of the device : temperature, 4ct
Header Params
token
string 
required
Access token which was generated earlier
Body Params application/json
devId
string 
optional
devId
startDate
string 
required
startDate
endDate
string 
required
endDate
Example
{
    "devId": "string",
    "startDate": "string",
    "endDate": "string"
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/devices//details' \
--header 'token;' \
--header 'Content-Type: application/json' \
--header 'x-api-key;' \
--data-raw '{
    "devId": "string",
    "startDate": "string",
    "endDate": "string"
}'

Responses

🟢200成功
application/json
200 response
Headers
Access-Control-Allow-Origin
string 
optional
Body
status
integer 
optional
data
array [object {4}] 
optional
devId
string 
optional
device Id
maxTemperature
number 
optional
maximum temperature for the date range in celsius
maxHumidity
integer 
optional
maximum humidity for the date range
minBattery
integer 
optional
minimum battery for the date range
Example
{
    "status": 0,
    "data": [
        {
            "devId": "string",
            "maxTemperature": 0,
            "maxHumidity": 0,
            "minBattery": 0
        }
    ]
}
Modified at 2025-02-28 08:12:14
Previous
/devices/{device-type}
Next
/devices/{device-type}/history
Built with