This endpoint retrieves a specific Log of a specific Event.
Request
To retrieve a specific Log 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/<log_id>/ |
Path Parameters
Parameter | Type | Description |
---|---|---|
<event_key> | String | The id or label of the Event, label should use the prefix ~ |
<log_id> | String | The id of the Log |
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/<log_id>/' \
-H 'X-Auth-Token: oaXBo6ODhIjPsusNRPUGIK4d72bc73' \
{
"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 the Log requested.