It is possible or not For this we have to implement OAuth 2.0 flow on the basis of which we will get a token and then on the basis of this token we generate the app password using the Gmail API endpoint.