Get Raw Data
POST https://link.monoz.io/api/v1/{Org-Id}/RawData
This API is available only for users with the database feature enabled. It allows retrieval of raw device data stored by monoZ:Link NoSQL database for 1 to 3 days, based on the selected plan. Data is be fetched using start and end timestamp. We recommend using this API once every 4 hours to once per day, depending on incoming data frequency.
Args
StartTime
EndTime
Response
200Success FetchSuccess
Response Body
Error boolean
Indicates if there was an error.
Message string
Message indicating the result of the operation.
StatusCode integer
HTTP status code of the response.
Data array
Array of JSON objects containing raw data details.
Timestamp timestamp
The received timestamp in ISO:8601 format.
Payload string
The actual packet received.
ICCID string
The ICCID of the SIM.
Topic string
The topic on which the payload was sent.
401
400
500cURL
curl --location 'https://link.monoz.io/api/v1/mti/RawData' \
--header 'Content-Type: application/json' \
--header 'X-API-Key: 3fa36b0e-c88b-45f4-95b9-d77c0e27c07a' \
--data '{
"StartTime": "2024-02-11T07:26:54.441Z",
"EndTime": "2024-03-11T07:26:54.441Z"
}'
Response
{
"Error": false,
"Message": "FetchSuccess",
"StatusCode": 200,
"Data": [
{
"Timestamp": "2024-03-11T04:19:55.5799558Z",
"Payload": "DFa0FC31EEC1569aA274f9ae5fffbB80AE2691BEe4EDBC89F6",
"ICCID": "123456789",
"Topic": "The topic on which the payload was received at monoZ:Link."
},
{
"Timestamp": "2024-03-11T04:19:55.5799458Z",
"Payload": "DEEDFa0FC3sfsdfsf1EEC1569aA274f9ae5fffbB80AE2691BEe4EDBC89F6",
"ICCID": null,
"Topic": "/mti/1234567777"
}
]
}