v68

latestOpenAPI 3.0.3MITraw.githubusercontent.com2026-08-011,21696712.3 MB
codespaces

Get details about a codespace export

Gets information about an export of a codespace.

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

get/user/codespaces/{codespace_name}/exports/{export_id}

Path parameters

codespace_namestring required

The name of the codespace.

export_idstring required

The ID of the export operation, or latest. Currently only latest is currently supported.

Response

Response

statestring nullable

State of the latest export

completed_atstring date-time nullable

Completion time of the last export operation

branchstring nullable

Name of the exported branch

shastring nullable

Git commit SHA of the exported branch

idstring

Id for the export details

export_urlstring

Url for fetching export details

html_urlstring nullable

Web url for the exported branch

Example response

{
  "state": "succeeded | failed | in_progress",
  "completed_at": "2021-01-01T19:01:12Z",
  "branch": "codespace-monalisa-octocat-hello-world-g4wpq6h95q",
  "sha": "fd95a81ca01e48ede9f39c799ecbcef817b8a3b2",
  "id": "latest",
  "export_url": "https://api.github.com/user/codespaces/:name/exports/latest",
  "html_url": "https://github.com/octocat/hello-world/tree/:branch"
}