AirWatch: How to use the REST API
According to the "AirWatch REST API Guide" PDF document that you can get in https://my.air-watch.com, you need:
the URL : https://<host>/API/v1/help
the Token: aw-tenant-code (or API Key)
Authorization: Basic base64.b64encode("username:password")
How to find the Token
Select the right Organization Group
Go to Group & Settings > System > Advanced > API > REST > General
Select "Override"
an API Key will be generated. This is your "aw-tenant-code"
How to Authorize
The easiest way is to use Basic authentication.
Make sure your admin has the correct role. In production, you should create a custom Role, but for test, Console Administrator is fine. Make sure he's in the correct OG, of course.
The form should be "username:password", encoded using Base64. You can do this on OS X terminal (see below)
How to test with Curl
With Python
Or just use Paw https://luckymarmot.com/paw ;-)
One More Thing…
It doesn't work with OS X clients: