This endpoint retrieves all Logs of a specific Event.
Request
To retrieve all Logs of a specific Event please make a GET request to the following URL:
HTTP Method | URL |
---|---|
GET | https://industrial.api.ubidots.com/api/v2.0/events/<event_key>/logs/ |
Path Parameters
Parameter | Type | Description |
---|---|---|
String | The id or label of the Event, label should use the prefix ~ |
Header
Parameter | Required? | Description |
---|---|---|
X-Auth-Token | Yes | Authentication Token of account |
$ curl -X GET 'https://industrial.api.ubidots.com/api/v2.0/events/<event_key>/logs/' \
-H 'X-Auth-Token: oaXBo6ODhIjPsusNRPUGIK4d72bc73' \
{
"count": 8,
"next": null,
"previous": null,
"results": [
{
"id": 13355573,
"event": "123454201d84727dc57df531",
"logType": "action_telegram_messages",
"message": "Telegram message sent to +57 (300) 111 - 1111",
"context": {
"end_time": 1590043969216,
"variable": {
"id": "56789eff1d8472686e9abb4f",
"name": "var0",
"value": 89.0,
"timestamp": 1590043965230
},
"start_time": 1590043968501,
"request_data": {
"number": "+57 (300) 111 - 1111",
"message": "Hey there, var0 was 89.0 at 2020-05-21 01:52:45 -0500.\n",
"country_code": null
},
"response_data": {},
"organization_id": null,
"successful_execution": true
},
"price": 0,
"createdAt": "2020-05-21T06:52:49.232182Z"
},
...
}
{
"code": 400001,
"message": "Validation Error.",
"detail": {
....
}
}
{
"code": 401001,
"message": "Authentication credentials were not provided.",
"detail": "Authentication credentials were not provided."
}
Response
An object with an array results
containing all logs of a specific Event (paginated).