How to use the Invoke API call to get Authentication Token and use it another API call?