Search code examples
httpgithubcommand-lineautomation

GitHub API: How to check for an organization's name availability?


I can send an HTTP request to the GitHub API to automate creating new or deleting repositories, delete repositories, etc.

For example, I can create a new repository like this:

curl --user "$user" "https://api.github.com/user/repos" -d  {\"name\":\"$repo\"}"

I have been unable to any find documentation on how to create a new GitHub account or check if a user/organization name is available.


Solution

  • If the other solution does not work, just visit http://checkusernames.com/