Sample - GitHub REST API
GET/repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}

Get the status of a GitHub Pages deployment

Gets the current status of a GitHub Pages deployment.

The authenticated user must have read permission for the GitHub Pages site.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

3 parameters
ownerstringrequired
The account owner of the repository. The name is not case sensitive.
repostringrequired
The name of the repository without the `.git` extension. The name is not case sensitive.
pages_deployment_idintegerrequired
The ID of the Pages deployment. You can also give the commit SHA of the deployment.

2 status codes
200Response
statusstringoptional
The current status of the deployment.
Allowed:deployment_in_progresssyncing_filesfinished_file_syncupdating_pagespurging_cdndeployment_cancelleddeployment_faileddeployment_content_faileddeployment_attempt_errordeployment_lostsucceed
404Resource not found
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional

Error handling

A 404 is returned: Resource not found.