Use token generator for acquiring API token instead of UI