Authenticate before calling API