I need to know, how to get the first clock of an item using the API 3.0?
i.e.: the first clock when created or when start to get the incoming/outgoing the traffic.
The following should get you the oldest value for an item. Make sure to use the correct history type, item ID and auth token.
There is no reliable way to find item creation time.
{
"jsonrpc": "2.0",
"method": "history.get",
"params": {
"history": 0,
"itemids": "12345",
"sortfield": "clock",
"sortorder": "ASC",
"limit": 1
},
"auth": "auth_token",
"id": 1
}