Get Failed Data
POST https://link.monoz.io/api/v1/{Org-Id}/FailedData
This API is available only for users with the database feature enabled. It allows retrieval of data whose data push from monoZ:Link to user server was failed. Failed data is stored by monoZ:Link NoSQL database for 1 to 3 days, based on the selected plan. Data is 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
Starting time in ISO:8601 format
EndTime
End time in ISO:8601 format
Response
200Success FetchSuccess
200
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 failed 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/FailedData' \
--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."
}
]
}