The REST API is now versioned. For more information, see "About API versioning."
REST API endpoints for Codespaces
Use the REST API to manage GitHub Codespaces.
- REST API endpoints for Codespaces, 1 of 6
- List codespaces in a repository for the authenticated user, 1 of 16
- Create a codespace in a repository, 2 of 16
- List devcontainer configurations in a repository for the authenticated user, 3 of 16
- Get default attributes for a codespace, 4 of 16
- Check if permissions defined by a devcontainer have been accepted by the authenticated user, 5 of 16
- Create a codespace from a pull request, 6 of 16
- List codespaces for the authenticated user, 7 of 16
- Create a codespace for the authenticated user, 8 of 16
- Get a codespace for the authenticated user, 9 of 16
- Update a codespace for the authenticated user, 10 of 16
- Delete a codespace for the authenticated user, 11 of 16
- Export a codespace for the authenticated user, 12 of 16
- Get details about a codespace export, 13 of 16
- Create a repository from an unpublished codespace, 14 of 16
- Start a codespace for the authenticated user, 15 of 16
- Stop a codespace for the authenticated user, 16 of 16
- REST API endpoints for Codespaces machines, 2 of 6
- REST API endpoints for Codespaces organization secrets, 3 of 6
- List organization secrets, 1 of 9
- Get an organization public key, 2 of 9
- Get an organization secret, 3 of 9
- Create or update an organization secret, 4 of 9
- Delete an organization secret, 5 of 9
- List selected repositories for an organization secret, 6 of 9
- Set selected repositories for an organization secret, 7 of 9
- Add selected repository to an organization secret, 8 of 9
- Remove selected repository from an organization secret, 9 of 9
- REST API endpoints for Codespaces organizations, 4 of 6
- List codespaces for the organization, 1 of 7
- Manage access control for organization codespaces, 2 of 7
- Add users to Codespaces access for an organization, 3 of 7
- Remove users from Codespaces access for an organization, 4 of 7
- List codespaces for a user in organization, 5 of 7
- Delete a codespace from the organization, 6 of 7
- Stop a codespace for an organization user, 7 of 7
- REST API endpoints for Codespaces repository secrets, 5 of 6
- REST API endpoints for Codespaces user secrets, 6 of 6
- List secrets for the authenticated user, 1 of 9
- Get public key for the authenticated user, 2 of 9
- Get a secret for the authenticated user, 3 of 9
- Create or update a secret for the authenticated user, 4 of 9
- Delete a secret for the authenticated user, 5 of 9
- List selected repositories for a user secret, 6 of 9
- Set selected repositories for a user secret, 7 of 9
- Add a selected repository to a user secret, 8 of 9
- Remove a selected repository from a user secret, 9 of 9
