{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/github/json-schema/github-codespace-export-details-schema.json",
  "title": "Fetches information about an export of a codespace.",
  "description": "An export of a codespace. Also, latest export details for a codespace can be fetched with id = latest",
  "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-export-details",
  "type": "object",
  "properties": {
    "state": {
      "type": [
        "string",
        "null"
      ],
      "description": "State of the latest export"
    },
    "completed_at": {
      "description": "Completion time of the last export operation",
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "branch": {
      "type": [
        "string",
        "null"
      ],
      "description": "Name of the exported branch"
    },
    "sha": {
      "type": [
        "string",
        "null"
      ],
      "description": "Git commit SHA of the exported branch"
    },
    "id": {
      "type": "string",
      "description": "Id for the export details"
    },
    "export_url": {
      "type": "string",
      "description": "Url for fetching export details"
    },
    "html_url": {
      "type": [
        "string",
        "null"
      ],
      "description": "Web url for the exported branch"
    }
  }
}