TokenGenerateAPI TokenGenerateAPI is an API application where we can send tokenoptions, user and role information and obtain tokens. All that needs to be done is to create a model suitable for the controller parameter and make a request.