Can we register new user using github api?

Hello,

Can we register new user using github api?

Can we generate Personal access token using github api by authenticating username and password?

1 Like

Need help understanding octokit

To quote the Github ToS, section Account Requirements:

You must be a human to create an Account. Accounts registered by “bots” or other automated methods are not permitted.

I’m pretty sure Github doesn’t provide an API that violates its own ToS.

No, users have to manually create PATs. Depending on the context, maybe one of the other authentication methods supported by the API work for you?