{ GET https://api.allegion.com/schlage-home/devices/{deviceId}/history?limit=int&deviceLocalTime=boolean }
Welcome to the Schlage Home - API developer portal. Here we will provide updates for new features released to the Schlage Home API.
{ GET https://api.allegion.com/schlage-home/devices/{deviceId}/history?limit=int&deviceLocalTime=boolean }
{ { "id": "string", "timestamp": "2024-11-13T13:35:19.001-06:00", "eventCode": "AccessCodeUserAdded", "accessor": { "id": "string", "friendlyName": "string", "accessType": "string" } } }
{ { "method": "POST", "body": { "eventId": "string", "trigger": "DeviceLockStateChanged", "deviceId": "string", "time": "timestamp", "eventType": "DeviceUpdate", "data": { "lockState": "Locked", "accessor": { "id": "string", "friendlyName": "string", "accessType": "AccessCode" } }, "version": "2.0" } } }
{ { "accessCodeId": "string", "name": "string", "code": "string", "accessCodeLength": 0, "readOnly": true, "scheduleType": "Always", "scheduleDetails": { "startDateTime": "string", "endDateTime": "string", "schedules": [{ "startTime": "string", "endTime": "string", "activeWeekDays": ["Saturday"] }] } } }
{ "method": "POST", "body": { "eventId": "string", "trigger": "string", "deviceId": "string", "time": "timestamp", "eventType": "string", "data": { "lockState": "string", "accessor": { "id": null, "accessType": "string" } }, "version": "1.0/2.0" } }
{ { "commandId": "string", "deviceId": "string", "state": "Successful/Pending/Failed", "name": "AddAccessCode/UpdateAccessCode", "data": { "accessCodeId": null (if failed) OR "string", "friendlyName": "string", "error": null (if successful) OR { "statusCode": integer, "errorCode": integer, "errorMessage": "string" } } } }
{ { "commandId": "string", "deviceId": "string", "state": "Successful/Pending/Failed", "name": "DeleteAccessCode", "data": { "accessCodeId": null (if successful or Pending) OR "string", "friendlyName": null (if successful or Pending) OR "string", "error": null (if successful or Pending) OR { "statusCode": integer, "errorCode": integer, "errorMessage": "string" } } } }
{ { "commandId": "string", "deviceId": "string", "state": "Successful/Pending/Failed", "name": "DeleteAllAccessCodes", "data": { "deviceId": "string", "error": null (if successful or Pending) OR { "statusCode": integer, "errorCode": integer, "errorMessage": "string" } } } }
{ { "commandId": "string", "deviceId": "string", "state": "Successful/Pending/Failed", "name": "ChangeLockState", "data": { "lockState": "Locked/Unlocked/Unknown", "error": null (if Successful or Pending) OR { "statusCode": "integer", "errorCode": "integer", "errorMesage": "string" } } } }
[{ "role": "string", "id": "string", "name": "string", "type": "string", "lockState": 0, "batteryState": 0, "modelName": "string", "serialNumber": "string", "percentageBatteryLevel": 0, "connected": true, "lastConnectedToCloud": "string", "lastUpdated": "string", "created": "string", "timezoneOffset": "string", "firmwareVersion": "string", "features": { "vlac": true, "activityAlarm": true } }]
{ { "method": "POST", "body": { "eventId": "string", "trigger": "DeviceLockStateChanged", "deviceId": "string", "time": "string", "eventType": "DeviceUpdate", "data": { "lockState": "Locked", "accessor": { "id": "string", "friendlyName": "testName", "accessType": "VirtualKey" } } } } }
{ "id": "string", "subject": "string", "data": { "identifier": null, "deviceId": "string", "deviceName": "string", "clientName": null, "eventTypeId": 0, "eventType": "AccessCodeCreate", "accessCode": { "id": "string", "name": "string", "accessCode": "integer", "scheduleType": "Always", "activeSchedules": [] }, "timezoneOffset": "-06:00", "time": "20240212T20:00" }, "eventType": "AccessCodeManagement", "dataVersion": "1.0", "metadataVersion": "1", "eventTime": "string", "topic": "string" }