Log in to the admin portal and go to My Account > API Tokens:
Click New Token and give your token a name.
Copy the token value to your clipboard
If you are on a Mac or Linux machine, create a blank file in your home directory named
.mobilelocker (it is a hidden file with a period at the front) and enter the following into it:
Save that file.
All API requests must be made over HTTPS. Calls made over plain HTTP will fail. API requests without authentication will also fail.