I’m using Insomnia for testing and after already getting the auth token I use that in Insomnia as follows:
The URL I used for the query was:
The word device in there does not need to be changed by the ID field that follows it should be changed to the UUID of your device. You can get that from the ‘Copy Device ID’ button on the device page in Thingsboard. The timestamps values can be changed to whatever you need in your application.