Welcome to the Schlage Home API Best Practices. Here we will provide some helpful tips for integrating with our APIs for your platform. Please contact your Allegion representative for any additional questions.
The Schlage Home API only supports WiFi-enabled devices: Schlage Encode Deadbolt, Encode Plus, and Encode Levers. Devices added to the Schlage Mobile App via bluetooth must complete the WiFi setup in order to see them through the API. You can see all available devices by GET Device List
.
When developing and deploying applications across multiple environments (such as development, testing, staging, and production), it's important to manage Redirect URLs and Webhook URLs effectively. This helps in tracking, debugging, and maintaining security across different stages of your application lifecycle. We recommend using different Redirect URLs and Webhook URLs.
https://dev.yourapp.com/callback
https://test.yourapp.com/callback
https://yourapp.com/callback
https://dev.yourapp.com/webhook
https://test.yourapp.com/webhook
https://yourapp.com/webhook
https://dev.yourapp.com/webhook?env=dev
https://test.yourapp.com/webhook?env=test
https://yourapp.com/webhook?env=prod
To ensure that webhooks are genuinely coming from our server and have not been tampered with, we provide a mechanism for verifying webhook signatures. Utilizing this verification process is crucial for maintaining the security and reliability of your application's interactions with our API.
When your system receives a webhook from our API platform, it is crucial to acknowledge receipt of the event by responding with an appropriate HTTP status code. This ensures that we know the event has been successfully received and processed, and it prevents unnecessary retries on our end.
200-299
range. We accept this range of status codes since it indicates successful receipt and processing of the webhook event. This prevents our system from triggering retry logic, which is designed to handle cases where the webhook might not have been received.200-299
status code after logging or handling the error.