# GitHub Codespaces ## API [Codespaces 用 REST API エンドポイント - GitHub Docs](https://docs.github.com/ja/rest/codespaces?apiVersion=2022-11-28) **List codespaces for the organization** ```sh # GitHub CLI api # https://cli.github.com/manual/gh_api gh api \ -H "Accept: application/vnd.github+json" \ -H "X-GitHub-Api-Version: 2022-11-28" \ /orgs/ORG/codespaces ``` **List codespaces for the authenticated user** ```sh # GitHub CLI api # https://cli.github.com/manual/gh_api gh api \ -H "Accept: application/vnd.github+json" \ -H "X-GitHub-Api-Version: 2022-11-28" \ /user/codespaces ``` ## 事前ビルド [codespaces の事前ビルド - GitHub Docs](https://docs.github.com/ja/codespaces/prebuilding-your-codespaces) ## 使用状況 [GitHub Codespaces の使用状況の表示 - GitHub Docs](https://docs.github.com/ja/billing/managing-billing-for-your-products/managing-billing-for-github-codespaces/viewing-your-github-codespaces-usage) ### Prebuild が残ってて課金されていた `Get usage report` でレポートを取得すると、該当するリポジトリがわかる。