Get Logs v2.0

API version2.0
Last Update10/25/2014
AuthenticationYES
Response FormatJSON
HTTP MethodGET
Rate limitedYES
Requests per rate limit10/min

To retrieve event logs on your account.

API URL

Copy

Request Parameters

KeyDatatypeParameter TypeRequiredDescriptionDefault
access_tokenstringURLYesaccess token which archived from OAuth authentication step
limitintURLOptionalSpecific maximum number of event logs will be returned in the response. The value should be in [1,50]. If there are more event logs than what the limit asks for, error code will be 406. Event logs in response is ordered by date.1
pageintURLOptionalSpecific page number which event logs will be returned in. If the requested page exceeds the number of pages of event logs, error code will be 413. It means that the requested page number is too large, no devices will be returned in this case.1
event_typeintURLOptionalSpecific what kind of event logs you want to retrieve. 1: device events
2: administrator events
1

Response HTTP Code

HTTP CodeDescription
200Success
401Unauthorized. Your access_token is invalid or expired
406Too many records to return
413Requested page number exceeds limit

Response Parameters

KeyDataTypeDescription
logsarray<object>Lists of event logs
eventlogarray<string>Array of events of the event log. The information will be formated as "<hh:mm> | [AM/PM] | <event category> | <device's hostname> | <event description>"
datestringtimestamp when the event log occurs

Example

Example Request

Copy

Example Response

Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard