> For the complete documentation index, see [llms.txt](https://docs.globalalerting.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.globalalerting.com/web-api/device-log.md).

# Device Log

## GET /V2/{tenantVarCode}/devices/{deviceId}/devicelog

> Returns a list of log entries for the device> \
> This endpoint returns paged results of up to 1,000 records per response, using the X-CONTINUATIONTOKEN header.> \
> When the response includes this token, it indicates that additional records are available. To retrieve the next set of results,> \
> include the X-CONTINUATIONTOKEN token from the previous response header in the header of your subsequent request.> \
> This process can be repeated until no further continuation token is provided, indicating that you have reached the end of the dataset.

```json
{"openapi":"3.0.4","info":{"title":"GAP REST API Documentation V2","version":"v2"},"tags":[{"name":"Device Log"}],"paths":{"/V2/{tenantVarCode}/devices/{deviceId}/devicelog":{"get":{"tags":["Device Log"],"summary":"Returns a list of log entries for the device\r\nThis endpoint returns paged results of up to 1,000 records per response, using the X-CONTINUATIONTOKEN header.\r\nWhen the response includes this token, it indicates that additional records are available. To retrieve the next set of results,\r\ninclude the X-CONTINUATIONTOKEN token from the previous response header in the header of your subsequent request.\r\nThis process can be repeated until no further continuation token is provided, indicating that you have reached the end of the dataset.","parameters":[{"name":"tenantVarCode","in":"path","description":"Tenant Var Code","required":true,"schema":{"type":"string"}},{"name":"deviceId","in":"path","description":"Device Id","required":true,"schema":{"type":"string"}},{"name":"from","in":"query","description":"From date","schema":{"type":"string","format":"date-time"}},{"name":"to","in":"query","description":"To date","schema":{"type":"string","format":"date-time"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DeviceLog"}}},"application/json;IEEE754Compatible=false":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DeviceLog"}}},"application/json;IEEE754Compatible=true":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DeviceLog"}}},"application/xml":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DeviceLog"}}},"text/plain":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DeviceLog"}}},"application/octet-stream":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DeviceLog"}}},"text/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DeviceLog"}}},"text/xml":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DeviceLog"}}},"text/csv":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DeviceLog"}}}}}}}}},"components":{"schemas":{"DeviceLog":{"type":"object","properties":{"Type":{"$ref":"#/components/schemas/DeviceLogEvent"},"DateTime":{"type":"string","description":"Created date","format":"date-time"},"FormatedType":{"type":"string","description":"Log item type friendly name","nullable":true},"FormatedDetails":{"type":"string","description":"Log item details","nullable":true},"Properties":{"type":"object","additionalProperties":{"type":"string","nullable":true},"description":"A dictionary with additional properties","nullable":true}},"additionalProperties":false},"DeviceLogEvent":{"enum":["DeviceCreated","UserChanged","Emergency","EmergencyCancelled","Overdue","OverdueCancelled","Unknown","DeviceIdChanged","GeosAlert","GeosRegistration","GeosRegistrationUpdate","GeosDeregistration","CheckInRequest","ClearCheckInRequest","ManualCheckIn","Note","TextMessageSentToDevice","EmergencyEscalationMessageSent","IncidentUpdatedByGeos","PollMessageSentToDevice","RebootMessageSentToDevice","ConfigurationMessageSentToDevice","CheckInScheduleEnabled","CheckInScheduleDisabled","CheckInScheduleSet","CheckInScheduleRemoved","GeosTextMessageReceived","GeosTextMessageSent","ConfigurationUpdated","FirmwareUpdated","DeviceChangedTenantId","DeviceDeleted","DeviceStatusChanged","ProvisioningStatusChanged","EmergencyAcknowledged","EventNotificationMessageSent","EventNotificationAlertRaised","ParaMessageSentToDevice","RollMessageSentToDevice","DeviceConfigurationRequested","RequestOdbSentToDevice","MonitoringStopped","MonitoringStarted","EventNotificationEmpty","FbtLogBookUpdated","ZoleoDuplicateMessage","ZoleoBearerSwitchToSbd","ZoleoBearerSwitchToInternetMo","ZoleoBearerSwitchToInternetApi","ZoleoSendingAppPushNotification","ZoleoAppPushTimedOut","ZoleoRestLogin","FirmwareValidated","ZoleoRestLoginFailure","DeviceFaultNone","DeviceFaultMoThrottle","EvacuateMessageSentToDevice","MxCommandSentToDevice","GroupChanged","AbandonMessageSentToDevice","GlobalRescueTextMessageReceived","GlobalRescueTextMessageSent","IncidentUpdatedByGlobalRescue","GlobalRescueRegistration","GlobalRescueRegistrationUpdate","GlobalRescueDeregistration","EocTextMessageSent","GlobalRescueAlert","GroupRemoved","ZoleoPhoneNumberCleared","ZoleoIosCheckInPlusTrackingNotification","ZoleoLink","CheckInStateCleared","MaintenanceModeSet","MaintenanceModeCleared","MaintenanceModeExpired"],"type":"string"}}}}
```
