improved

API - Added query parameters to filter devices and segments

✨ Improvements

The response from the /devices and /segments endpoints can be used to identify when devices have been added or removed from accounts, but for accounts with a lot of registered devices, the response from these endpoints can become quite large. Parameters have been added to both these endpoints to help reduce the size of the response in case they are being used for this purpose.

segmentStartedAfter has been added as a parameter to the /devices and /segments endpoints, and will return all devices/segments registered/started after the specified time.

segmentEndedAfter has been added as a parameter to the /segment endpoint, and will return all segments ended after the specified time.