SmartThings History API
Query the paginated event History for devices and locations - the time-ordered record of device state changes and events.
Documentation
Documentation
https://developer.smartthings.com/docs/devices/device-history
APIReference
https://developer.smartthings.com/docs/api/public