We used to be able to create GitHub personal access tokens via a request to api.github.com/authorizations with the username, password, and specifying the token’
api.github.com/authorizations