There are three ways to generate an access token.
Web UI—Use the token page to enter your username (most likely your email address), upload your private key file, and generate a JWT token. See Set Up Authorization.
Programmatically using your key—Load your private key, generate an assertion, and call the API to get an access token. You must monitor when the token expires and generate a new one.
Programmatically using a refresh token—Load your private key, generate an assertion, and call the API to get a refresh token. Use that refresh token from then on call the API and generate an access token.
Updated less than a minute ago