REST API を使うと、GitHub organization 内のチームの作成や管理ができます。
チームの REST API エンドポイント - GitHub Enterprise Cloud Docs