Are you using the page at:
https://cnxxxx.awmdm.com/api/help/#!/apis/10002?!/Devices/Devices_SearchAsync
and running the query from there after entering your authentication details?
If you cannot get it to work from that URL, it is not going to work anywhere else.