GitHub · Schema

Codespace

A codespace.

CodeDeveloper ToolsPipelinesPlatformSoftware DevelopmentVersion ControlT1GitHub

Properties

Name Type Description
id integer
name string Automatically generated name of this codespace.
display_name stringnull Display name for this codespace.
environment_id stringnull UUID identifying this codespace's environment.
owner object
billable_owner object
repository object
machine object
devcontainer_path stringnull Path to devcontainer.json from repo root used to create Codespace.
prebuild booleannull Whether the codespace was created from a prebuild.
created_at string
updated_at string
last_used_at string Last known time this codespace was started.
state string State of this codespace.
url string API URL for this codespace.
git_status object Details about the codespace's git repository.
location string The initally assigned location of a new codespace.
idle_timeout_minutes integernull The number of minutes of inactivity after which this codespace will be automatically stopped.
web_url string URL to access this codespace on the web.
machines_url string API URL to access available alternate machine types for this codespace.
start_url string API URL to start this codespace.
stop_url string API URL to stop this codespace.
publish_url stringnull API URL to publish this codespace to a new repository.
pulls_url stringnull API URL for the Pull Request associated with this codespace, if any.
recent_folders array
runtime_constraints object
pending_operation booleannull Whether or not a codespace has a pending async operation. This would mean that the codespace is temporarily unavailable. The only thing that you can do with a codespace in this state is delete it.
pending_operation_disabled_reason stringnull Text to show user when codespace is disabled by a pending operation
idle_timeout_notice stringnull Text to show user when codespace idle timeout minutes has been overriden by an organization policy
retention_period_minutes integernull Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days).
retention_expires_at stringnull When a codespace will be auto-deleted based on the "retention_period_minutes" and "last_used_at"
View JSON Schema on GitHub

JSON Schema

github-codespace-with-full-repository-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/github/json-schema/github-codespace-with-full-repository-schema.json",
  "title": "Codespace",
  "description": "A codespace.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/github-codespaces-api-openapi.yml#/components/schemas/codespace-with-full-repository",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "format": "int64"
    },
    "name": {
      "description": "Automatically generated name of this codespace.",
      "type": "string"
    },
    "display_name": {
      "description": "Display name for this codespace.",
      "type": [
        "string",
        "null"
      ]
    },
    "environment_id": {
      "description": "UUID identifying this codespace's environment.",
      "type": [
        "string",
        "null"
      ]
    },
    "owner": {
      "$ref": "#/$defs/simple-user"
    },
    "billable_owner": {
      "$ref": "#/$defs/simple-user"
    },
    "repository": {
      "$ref": "#/$defs/full-repository"
    },
    "machine": {
      "$ref": "#/$defs/nullable-codespace-machine"
    },
    "devcontainer_path": {
      "description": "Path to devcontainer.json from repo root used to create Codespace.",
      "type": [
        "string",
        "null"
      ]
    },
    "prebuild": {
      "description": "Whether the codespace was created from a prebuild.",
      "type": [
        "boolean",
        "null"
      ]
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    },
    "last_used_at": {
      "description": "Last known time this codespace was started.",
      "type": "string",
      "format": "date-time"
    },
    "state": {
      "description": "State of this codespace.",
      "enum": [
        "Unknown",
        "Created",
        "Queued",
        "Provisioning",
        "Available",
        "Awaiting",
        "Unavailable",
        "Deleted",
        "Moved",
        "Shutdown",
        "Archived",
        "Starting",
        "ShuttingDown",
        "Failed",
        "Exporting",
        "Updating",
        "Rebuilding"
      ],
      "type": "string"
    },
    "url": {
      "description": "API URL for this codespace.",
      "type": "string",
      "format": "uri"
    },
    "git_status": {
      "description": "Details about the codespace's git repository.",
      "type": "object",
      "properties": {
        "ahead": {
          "description": "The number of commits the local repository is ahead of the remote.",
          "type": "integer"
        },
        "behind": {
          "description": "The number of commits the local repository is behind the remote.",
          "type": "integer"
        },
        "has_unpushed_changes": {
          "description": "Whether the local repository has unpushed changes.",
          "type": "boolean"
        },
        "has_uncommitted_changes": {
          "description": "Whether the local repository has uncommitted changes.",
          "type": "boolean"
        },
        "ref": {
          "description": "The current branch (or SHA if in detached HEAD state) of the local repository.",
          "type": "string"
        }
      }
    },
    "location": {
      "description": "The initally assigned location of a new codespace.",
      "enum": [
        "EastUs",
        "SouthEastAsia",
        "WestEurope",
        "WestUs2"
      ],
      "type": "string"
    },
    "idle_timeout_minutes": {
      "description": "The number of minutes of inactivity after which this codespace will be automatically stopped.",
      "type": [
        "integer",
        "null"
      ]
    },
    "web_url": {
      "description": "URL to access this codespace on the web.",
      "type": "string",
      "format": "uri"
    },
    "machines_url": {
      "description": "API URL to access available alternate machine types for this codespace.",
      "type": "string",
      "format": "uri"
    },
    "start_url": {
      "description": "API URL to start this codespace.",
      "type": "string",
      "format": "uri"
    },
    "stop_url": {
      "description": "API URL to stop this codespace.",
      "type": "string",
      "format": "uri"
    },
    "publish_url": {
      "description": "API URL to publish this codespace to a new repository.",
      "type": [
        "string",
        "null"
      ],
      "format": "uri"
    },
    "pulls_url": {
      "description": "API URL for the Pull Request associated with this codespace, if any.",
      "type": [
        "string",
        "null"
      ],
      "format": "uri"
    },
    "recent_folders": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "runtime_constraints": {
      "type": "object",
      "properties": {
        "allowed_port_privacy_settings": {
          "description": "The privacy settings a user can select from when forwarding a port.",
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string"
          }
        }
      }
    },
    "pending_operation": {
      "description": "Whether or not a codespace has a pending async operation. This would mean that the codespace is temporarily unavailable. The only thing that you can do with a codespace in this state is delete it.",
      "type": [
        "boolean",
        "null"
      ]
    },
    "pending_operation_disabled_reason": {
      "description": "Text to show user when codespace is disabled by a pending operation",
      "type": [
        "string",
        "null"
      ]
    },
    "idle_timeout_notice": {
      "description": "Text to show user when codespace idle timeout minutes has been overriden by an organization policy",
      "type": [
        "string",
        "null"
      ]
    },
    "retention_period_minutes": {
      "description": "Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days).",
      "type": [
        "integer",
        "null"
      ]
    },
    "retention_expires_at": {
      "description": "When a codespace will be auto-deleted based on the \"retention_period_minutes\" and \"last_used_at\"",
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    }
  },
  "required": [
    "id",
    "name",
    "environment_id",
    "owner",
    "billable_owner",
    "repository",
    "machine",
    "prebuild",
    "created_at",
    "updated_at",
    "last_used_at",
    "state",
    "url",
    "git_status",
    "location",
    "idle_timeout_minutes",
    "web_url",
    "machines_url",
    "start_url",
    "stop_url",
    "pulls_url",
    "recent_folders"
  ],
  "$defs": {
    "code-of-conduct-simple": {
      "title": "Code Of Conduct Simple",
      "description": "Code of Conduct Simple",
      "type": "object",
      "properties": {
        "url": {
          "type": "string",
          "format": "uri"
        },
        "key": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "html_url": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri"
        }
      },
      "required": [
        "url",
        "key",
        "name",
        "html_url"
      ]
    },
    "full-repository": {
      "title": "Full Repository",
      "description": "Full Repository",
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "format": "int64"
        },
        "node_id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "full_name": {
          "type": "string"
        },
        "owner": {
          "$ref": "#/$defs/simple-user"
        },
        "private": {
          "type": "boolean"
        },
        "html_url": {
          "type": "string",
          "format": "uri"
        },
        "description": {
          "type": [
            "string",
            "null"
          ]
        },
        "fork": {
          "type": "boolean"
        },
        "url": {
          "type": "string",
          "format": "uri"
        },
        "archive_url": {
          "type": "string"
        },
        "assignees_url": {
          "type": "string"
        },
        "blobs_url": {
          "type": "string"
        },
        "branches_url": {
          "type": "string"
        },
        "collaborators_url": {
          "type": "string"
        },
        "comments_url": {
          "type": "string"
        },
        "commits_url": {
          "type": "string"
        },
        "compare_url": {
          "type": "string"
        },
        "contents_url": {
          "type": "string"
        },
        "contributors_url": {
          "type": "string",
          "format": "uri"
        },
        "deployments_url": {
          "type": "string",
          "format": "uri"
        },
        "downloads_url": {
          "type": "string",
          "format": "uri"
        },
        "events_url": {
          "type": "string",
          "format": "uri"
        },
        "forks_url": {
          "type": "string",
          "format": "uri"
        },
        "git_commits_url": {
          "type": "string"
        },
        "git_refs_url": {
          "type": "string"
        },
        "git_tags_url": {
          "type": "string"
        },
        "git_url": {
          "type": "string"
        },
        "issue_comment_url": {
          "type": "string"
        },
        "issue_events_url": {
          "type": "string"
        },
        "issues_url": {
          "type": "string"
        },
        "keys_url": {
          "type": "string"
        },
        "labels_url": {
          "type": "string"
        },
        "languages_url": {
          "type": "string",
          "format": "uri"
        },
        "merges_url": {
          "type": "string",
          "format": "uri"
        },
        "milestones_url": {
          "type": "string"
        },
        "notifications_url": {
          "type": "string"
        },
        "pulls_url": {
          "type": "string"
        },
        "releases_url": {
          "type": "string"
        },
        "ssh_url": {
          "type": "string"
        },
        "stargazers_url": {
          "type": "string",
          "format": "uri"
        },
        "statuses_url": {
          "type": "string"
        },
        "subscribers_url": {
          "type": "string",
          "format": "uri"
        },
        "subscription_url": {
          "type": "string",
          "format": "uri"
        },
        "tags_url": {
          "type": "string",
          "format": "uri"
        },
        "teams_url": {
          "type": "string",
          "format": "uri"
        },
        "trees_url": {
          "type": "string"
        },
        "clone_url": {
          "type": "string"
        },
        "mirror_url": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri"
        },
        "hooks_url": {
          "type": "string",
          "format": "uri"
        },
        "svn_url": {
          "type": "string",
          "format": "uri"
        },
        "homepage": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri"
        },
        "language": {
          "type": [
            "string",
            "null"
          ]
        },
        "forks_count": {
          "type": "integer"
        },
        "stargazers_count": {
          "type": "integer"
        },
        "watchers_count": {
          "type": "integer"
        },
        "size": {
          "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
          "type": "integer"
        },
        "default_branch": {
          "type": "string"
        },
        "open_issues_count": {
          "type": "integer"
        },
        "is_template": {
          "type": "boolean"
        },
        "topics": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "has_issues": {
          "type": "boolean"
        },
        "has_projects": {
          "type": "boolean"
        },
        "has_wiki": {
          "type": "boolean"
        },
        "has_pages": {
          "type": "boolean"
        },
        "has_downloads": {
          "type": "boolean"
        },
        "has_discussions": {
          "type": "boolean"
        },
        "has_pull_requests": {
          "type": "boolean"
        },
        "pull_request_creation_policy": {
          "description": "The policy controlling who can create pull requests: all or collaborators_only.",
          "type": "string",
          "enum": [
            "all",
            "collaborators_only"
          ]
        },
        "archived": {
          "type": "boolean"
        },
        "disabled": {
          "type": "boolean",
          "description": "Returns whether or not this repository disabled."
        },
        "visibility": {
          "description": "The repository visibility: public, private, or internal.",
          "type": "string"
        },
        "pushed_at": {
          "type": "string",
          "format": "date-time"
        },
        "created_at": {
          "type": "string",
          "format": "date-time"
        },
        "updated_at": {
          "type": "string",
          "format": "date-time"
        },
        "permissions": {
          "type": "object",
          "properties": {
            "admin": {
              "type": "boolean"
            },
            "maintain": {
              "type": "boolean"
            },
            "push": {
              "type": "boolean"
            },
            "triage": {
              "type": "boolean"
            },
            "pull": {
              "type": "boolean"
            }
          },
          "required": [
            "admin",
            "pull",
            "push"
          ]
        },
        "allow_rebase_merge": {
          "type": "boolean"
        },
        "template_repository": {
          "$ref": "#/$defs/nullable-repository"
        },
        "temp_clone_token": {
          "description": "When present and non-empty, a temporary credential for read-only Git access to this repository.\nIt expires five minutes after generation and cannot be used to push changes.\nTreat this value as sensitive and avoid recording it in logs.",
          "type": [
            "string",
            "null"
          ]
        },
        "allow_squash_merge": {
          "type": "boolean"
        },
        "allow_auto_merge": {
          "type": "boolean"
        },
        "delete_branch_on_merge": {
          "type": "boolean"
        },
        "allow_merge_commit": {
          "type": "boolean"
        },
        "allow_update_branch": {
          "type": "boolean"
        },
        "use_squash_pr_title_as_default": {
          "type": "boolean"
        },
        "squash_merge_commit_title": {
          "type": "string",
          "enum": [
            "PR_TITLE",
            "COMMIT_OR_PR_TITLE"
          ],
          "description": "The default value for a squash merge commit title:\n\n- `PR_TITLE` - default to the pull request's title.\n- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit)."
        },
        "squash_merge_commit_message": {
          "type": "string",
          "enum": [
            "PR_BODY",
            "COMMIT_MESSAGES",
            "BLANK"
          ],
          "description": "The default value for a squash merge commit message:\n\n- `PR_BODY` - default to the pull request's body.\n- `COMMIT_MESSAGES` - default to the branch's commit messages.\n- `BLANK` - default to a blank commit message."
        },
        "merge_commit_title": {
          "type": "string",
          "enum": [
            "PR_TITLE",
            "MERGE_MESSAGE"
          ],
          "description": "The default value for a merge commit title.\n\n  - `PR_TITLE` - default to the pull request's title.\n  - `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name)."
        },
        "merge_commit_message": {
          "type": "string",
          "enum": [
            "PR_BODY",
            "PR_TITLE",
            "BLANK"
          ],
          "description": "The default value for a merge commit message.\n\n- `PR_TITLE` - default to the pull request's title.\n- `PR_BODY` - default to the pull request's body.\n- `BLANK` - default to a blank commit message."
        },
        "allow_forking": {
          "type": "boolean"
        },
        "web_commit_signoff_required": {
          "type": "boolean"
        },
        "subscribers_count": {
          "type": "integer"
        },
        "network_count": {
          "type": "integer"
        },
        "license": {
          "$ref": "#/$defs/nullable-license-simple"
        },
        "organization": {
          "$ref": "#/$defs/nullable-simple-user"
        },
        "parent": {
          "$ref": "#/$defs/repository"
        },
        "source": {
          "$ref": "#/$defs/repository"
        },
        "forks": {
          "type": "integer"
        },
        "master_branch": {
          "type": "string"
        },
        "open_issues": {
          "type": "integer"
        },
        "watchers": {
          "type": "integer"
        },
        "anonymous_access_enabled": {
          "description": "Whether anonymous git access is allowed.",
          "default": true,
          "type": "boolean"
        },
        "code_of_conduct": {
          "$ref": "#/$defs/code-of-conduct-simple"
        },
        "security_and_analysis": {
          "$ref": "#/$defs/security-and-analysis"
        },
        "custom_properties": {
          "type": "object",
          "description": "The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.",
          "additionalProperties": true
        }
      },
      "required": [
        "archive_url",
        "assignees_url",
        "blobs_url",
        "branches_url",
        "collaborators_url",
        "comments_url",
        "commits_url",
        "compare_url",
        "contents_url",
        "contributors_url",
        "deployments_url",
        "description",
        "downloads_url",
        "events_url",
        "fork",
        "forks_url",
        "full_name",
        "git_commits_url",
        "git_refs_url",
        "git_tags_url",
        "hooks_url",
        "html_url",
        "id",
        "node_id",
        "issue_comment_url",
        "issue_events_url",
        "issues_url",
        "keys_url",
        "labels_url",
        "languages_url",
        "merges_url",
        "milestones_url",
        "name",
        "notifications_url",
        "owner",
        "private",
        "pulls_url",
        "releases_url",
        "stargazers_url",
        "statuses_url",
        "subscribers_url",
        "subscription_url",
        "tags_url",
        "teams_url",
        "trees_url",
        "url",
        "clone_url",
        "default_branch",
        "forks",
        "forks_count",
        "git_url",
        "has_issues",
        "has_projects",
        "has_wiki",
        "has_pages",
        "has_discussions",
        "homepage",
        "language",
        "archived",
        "disabled",
        "mirror_url",
        "open_issues",
        "open_issues_count",
        "license",
        "pushed_at",
        "size",
        "ssh_url",
        "stargazers_count",
        "svn_url",
        "watchers",
        "watchers_count",
        "created_at",
        "updated_at",
        "network_count",
        "subscribers_count"
      ],
      "x-github-breaking-changes": [
        {
          "changeset": "remove_use_squash_pr_title_as_default",
          "patch": {
            "properties": {
              "use_squash_pr_title_as_default": null
            }
          },
          "version": "2026-03-10"
        },
        {
          "changeset": "remove_has_downloads",
          "patch": {
            "properties": {
              "has_downloads": null
            }
          },
          "version": "2026-03-10"
        }
      ]
    },
    "nullable-codespace-machine": {
      "type": [
        "object",
        "null"
      ],
      "title": "Codespace machine",
      "description": "A description of the machine powering a codespace.",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the machine."
        },
        "display_name": {
          "type": "string",
          "description": "The display name of the machine includes cores, memory, and storage."
        },
        "operating_system": {
          "type": "string",
          "description": "The operating system of the machine."
        },
        "storage_in_bytes": {
          "type": "integer",
          "description": "How much storage is available to the codespace."
        },
        "memory_in_bytes": {
          "type": "integer",
          "description": "How much memory is available to the codespace."
        },
        "cpus": {
          "type": "integer",
          "description": "How many cores are available to the codespace."
        },
        "prebuild_availability": {
          "type": [
            "string",
            "null"
          ],
          "description": "Whether a prebuild is currently available when creating a codespace for this machine and repository. If a branch was not specified as a ref, the default branch will be assumed. Value will be \"null\" if prebuilds are not supported or prebuild availability could not be determined. Value will be \"none\" if no prebuild is available. Latest values \"ready\" and \"in_progress\" indicate the prebuild availability status.",
          "enum": [
            "none",
            "ready",
            "in_progress",
            null
          ]
        }
      },
      "required": [
        "name",
        "display_name",
        "operating_system",
        "storage_in_bytes",
        "memory_in_bytes",
        "cpus",
        "prebuild_availability"
      ]
    },
    "nullable-license-simple": {
      "title": "License Simple",
      "description": "License Simple",
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "key": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "url": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri"
        },
        "spdx_id": {
          "type": [
            "string",
            "null"
          ]
        },
        "node_id": {
          "type": "string"
        },
        "html_url": {
          "type": "string",
          "format": "uri"
        }
      },
      "required": [
        "key",
        "name",
        "url",
        "spdx_id",
        "node_id"
      ]
    },
    "nullable-repository": {
      "title": "Repository",
      "description": "A repository on GitHub.",
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "id": {
          "description": "Unique identifier of the repository",
          "type": "integer",
          "format": "int64"
        },
        "node_id": {
          "type": "string"
        },
        "name": {
          "description": "The name of the repository.",
          "type": "string"
        },
        "full_name": {
          "type": "string"
        },
        "license": {
          "$ref": "#/$defs/nullable-license-simple"
        },
        "forks": {
          "type": "integer"
        },
        "permissions": {
          "type": "object",
          "properties": {
            "admin": {
              "type": "boolean"
            },
            "pull": {
              "type": "boolean"
            },
            "triage": {
              "type": "boolean"
            },
            "push": {
              "type": "boolean"
            },
            "maintain": {
              "type": "boolean"
            }
          },
          "required": [
            "admin",
            "pull",
            "push"
          ]
        },
        "owner": {
          "$ref": "#/$defs/simple-user"
        },
        "private": {
          "description": "Whether the repository is private or public.",
          "default": false,
          "type": "boolean"
        },
        "html_url": {
          "type": "string",
          "format": "uri"
        },
        "description": {
          "type": [
            "string",
            "null"
          ]
        },
        "fork": {
          "type": "boolean"
        },
        "url": {
          "type": "string",
          "format": "uri"
        },
        "archive_url": {
          "type": "string"
        },
        "assignees_url": {
          "type": "string"
        },
        "blobs_url": {
          "type": "string"
        },
        "branches_url": {
          "type": "string"
        },
        "collaborators_url": {
          "type": "string"
        },
        "comments_url": {
          "type": "string"
        },
        "commits_url": {
          "type": "string"
        },
        "compare_url": {
          "type": "string"
        },
        "contents_url": {
          "type": "string"
        },
        "contributors_url": {
          "type": "string",
          "format": "uri"
        },
        "deployments_url": {
          "type": "string",
          "format": "uri"
        },
        "downloads_url": {
          "type": "string",
          "format": "uri"
        },
        "events_url": {
          "type": "string",
          "format": "uri"
        },
        "forks_url": {
          "type": "string",
          "format": "uri"
        },
        "git_commits_url": {
          "type": "string"
        },
        "git_refs_url": {
          "type": "string"
        },
        "git_tags_url": {
          "type": "string"
        },
        "git_url": {
          "type": "string"
        },
        "issue_comment_url": {
          "type": "string"
        },
        "issue_events_url": {
          "type": "string"
        },
        "issues_url": {
          "type": "string"
        },
        "keys_url": {
          "type": "string"
        },
        "labels_url": {
          "type": "string"
        },
        "languages_url": {
          "type": "string",
          "format": "uri"
        },
        "merges_url": {
          "type": "string",
          "format": "uri"
        },
        "milestones_url": {
          "type": "string"
        },
        "notifications_url": {
          "type": "string"
        },
        "pulls_url": {
          "type": "string"
        },
        "releases_url": {
          "type": "string"
        },
        "ssh_url": {
          "type": "string"
        },
        "stargazers_url": {
          "type": "string",
          "format": "uri"
        },
        "statuses_url": {
          "type": "string"
        },
        "subscribers_url": {
          "type": "string",
          "format": "uri"
        },
        "subscription_url": {
          "type": "string",
          "format": "uri"
        },
        "tags_url": {
          "type": "string",
          "format": "uri"
        },
        "teams_url": {
          "type": "string",
          "format": "uri"
        },
        "trees_url": {
          "type": "string"
        },
        "clone_url": {
          "type": "string"
        },
        "mirror_url": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri"
        },
        "hooks_url": {
          "type": "string",
          "format": "uri"
        },
        "svn_url": {
          "type": "string",
          "format": "uri"
        },
        "homepage": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri"
        },
        "language": {
          "type": [
            "string",
            "null"
          ]
        },
        "forks_count": {
          "type": "integer"
        },
        "stargazers_count": {
          "type": "integer"
        },
        "watchers_count": {
          "type": "integer"
        },
        "size": {
          "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.",
          "type": "integer"
        },
        "default_branch": {
          "description": "The default branch of the repository.",
          "type": "string"
        },
        "open_issues_count": {
          "type": "integer"
        },
        "is_template": {
          "description": "Whether this repository acts as a template that can be used to generate new repositories.",
          "default": false,
          "type": "boolean"
        },
        "topics": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "has_issues": {
          "description": "Whether issues are enabled.",
          "default": true,
          "type": "boolean"
        },
        "has_projects": {
          "description": "Whether projects are enabled.",
          "default": true,
          "type": "boolean"
        },
        "has_wiki": {
          "description": "Whether the wiki is enabled.",
          "default": true,
          "type": "boolean"
        },
        "has_pages": {
          "type": "boolean"
        },
        "has_downloads": {
          "description": "Whether downloads are enabled.",
          "default": true,
          "type": "boolean",
          "deprecated": true
        },
        "has_discussions": {
          "description": "Whether discussions are enabled.",
          "default": false,
          "type": "boolean"
        },
        "has_pull_requests": {
          "description": "Whether pull requests are enabled.",
          "default": true,
          "type": "boolean"
        },
        "pull_request_creation_policy": {
          "description": "The policy controlling who can create pull requests: all or collaborators_only.",
          "type": "string",
          "enum": [
            "all",
            "collaborators_only"
          ]
        },
        "archived": {
          "description": "Whether the repository is archived.",
          "default": false,
          "type": "boolean"
        },
        "disabled": {
          "type": "boolean",
          "description": "Returns whether or not this repository disabled."
        },
        "visibility": {
          "description": "The repository visibility: public, private, or internal.",
          "default": "public",
          "type": "string"
        },
        "pushed_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "created_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "updated_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "allow_rebase_merge": {
          "description": "Whether to allow rebase merges for pull requests.",
          "default": true,
          "type": "boolean"
        },
        "temp_clone_token": {
          "description": "When present and non-empty, a temporary credential for read-only Git access to this repository.\nIt expires five minutes after generation and cannot be used to push changes.\nTreat this value as sensitive and avoid recording it in logs.",
          "type": "string"
        },
        "allow_squash_merge": {
          "description": "Whether to allow squash merges for pull requests.",
          "default": true,
          "type": "boolean"
        },
        "allow_auto_merge": {
          "description": "Whether to allow Auto-merge to be used on pull requests.",
          "default": false,
          "type": "boolean"
        },
        "delete_branch_on_merge": {
          "description": "Whether to delete head branches when pull requests are merged",
          "default": false,
          "type": "boolean"
        },
        "allow_update_branch"

# --- truncated at 32 KB (65 KB total) ---
# Full source: https://artifacts.apis.io/github/json-schema/github-codespace-with-full-repository-schema.json

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/github-codespace-with-full-repository"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.