The token can be obtained from the authentication server with your secret credentials. It expires after 2 hours.
When your API receives an HTTP 401 error you will need to re-authenticate using your credentials.
Those credentials were given to you when you registered on the platform. They are strictly confidential and must remain secret.