v58

latestOpenAPI 3.0.3MITraw.githubusercontent.com2026-08-061,22096912.3 MB
codespaces

List machine types for a codespace

List the machine types a codespace can transition to use.

OAuth app tokens and personal access tokens (classic) need the codespace scope to use this endpoint.

get/user/codespaces/{codespace_name}/machines

Path parameters

codespace_namestring required

The name of the codespace.

Response

Response

total_countinteger required

Example response

{
  "machines": [
    {
      "name": "standardLinux",
      "display_name": "4 cores, 16 GB RAM, 64 GB storage",
      "operating_system": "linux",
      "storage_in_bytes": 68719476736,
      "memory_in_bytes": 17179869184,
      "cpus": 4,
      "prebuild_availability": "ready"
    }
  ]
}