I am trying to use github api to create organization and repositories instead of creating them manually. I was looking at this site which talks about how to create repositor
You can check out how a wrapper like go-gihub proposes to manage an organization, reflecting the Organization API.
You can list, get or edit an organization, but apparently not create one.