You will need to generate an authorization token to use the API. This allows your API requests to securely access your devices. You can either generate a token through an HTTPS API request or create one on the Web App (User -> Tokens -> Generate New Token).

In the request, you provide your email, password and expires. Expires is the number of seconds you want the token to be valid. Expires defaults to two week. The examples sets expires to a year.