Request
Add parameter in header Authorization
Example:Authorization: ********************
Body Params application/json
{
"customerId": "string",
"deviceId": "string",
"type": "string",
"commandStatus": 0,
"commandId": "string",
"limit": 1
}
Request Code Samples
curl --location --request POST 'https://mettahub.mettaxiot.com/gps/v2/openapi/device/command/recently' \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"customerId": "string",
"deviceId": "string",
"type": "string",
"commandStatus": 0,
"commandId": "string",
"limit": 1
}'
Responses
application/json {
"code": 0,
"data": [
{
"id": "",
"deviceId": "",
"commandText": "",
"commandTextReply": "",
"subProtocol": "",
"type": "",
"customerId": "",
"commandStatus": 0,
"sendTime": "",
"endTime": ""
}
],
"msg": ""
}
Modified at 2025-09-12 09:50:32