Hi,
For REST here are the docs : Citrix DaaS REST APIs. So for a specific machine you can specify it in as a param in your script and add it at the end of the requestUri.
And for the token+auth look here for the basics : Citrix Cloud API Walkthrough | Citrix Cloud API overview, you have first to "log in".
Regards