Obtaining an API Token
The first call to Violet that needs to be made is the /login call, to authenticate your Violet Account and credentials and retrieve an authentication token. This token stays valid for 24 hours before a new one needs to be generated.
Log in to your Violet Application and retrieve an authentication token
username - Username for your Violet account created on my.violet.io
password - Password for your Violet account you created on my.violet.io
This method returns a token along with other information about your Violet Account. This token is a JWT token that is used to authenticate all your requests to the Violet APIs.