Retrieve Device Data From Storage View
Authorizations
Path parameters
PROJECT_IDstringRequired
DEVICE_IDstringRequired
Query parameters
pageintegerOptionalExample:
REQUIRED (All Data Fetch Operations are Paginated) Type=Number
1
limitintegerOptionalExample:
REQUIRED (Limit per Page) Type=Number
100
rangestringOptionalExample:
REQUIRED (Value Can be Only "all" or "time") Type=string
all
startstringOptional
REQUIRED if "range" is "time" Type=date
endstringOptional
REQUIRED if "range" is "time" Type=date
keysstringOptional
NOT REQIRED List of Device Data Keys Seprated With "," Omitting Will Fetch All Keys
storagestringOptional
NOT REQIRED Identifier of custom storage
Responses
200
OK
application/json
Responseobject
401
Unauthorized
application/json
403
Forbidden
application/json
get
GET /v2/projects/{PROJECT_ID}/devices/{DEVICE_ID}/data HTTP/1.1
Host: {{base_url}}
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"success": true,
"action": "get device data",
"status": 200,
"message": "Device data retrieved successfully.",
"data": [
{
"key": "value",
"time": "2025-02-13T13:00:27.800109Z"
},
{
"key": "value",
"time": "2025-02-13T13:00:22.533709Z"
}
]
}
Last updated