Get deployment status
Get the status of an update from the status ID
Authenticate with an admin API key.
Related topics
GET /project/update-status/{statusId}
curl --request GET \
--url https://api.mintlify.com/v1/project/update-status/{statusId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.mintlify.com/v1/project/update-status/{statusId}"
headers = {
"Authorization": "Bearer <token>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: "GET", headers: {"Authorization": "Bearer <token>"}};
fetch("https://api.mintlify.com/v1/project/update-status/{statusId}", options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.mintlify.com/v1/project/update-status/{statusId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.mintlify.com/v1/project/update-status/{statusId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.mintlify.com/v1/project/update-status/{statusId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mintlify.com/v1/project/update-status/{statusId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"_id": "<string>",
"projectId": "<string>",
"createdAt": "<string>",
"endedAt": "<string>",
"status": "queued",
"summary": "<string>",
"logs": [
"<string>"
],
"subdomain": "<string>",
"screenshot": "<string>",
"screenshotLight": "<string>",
"screenshotDark": "<string>",
"author": {
"name": "<string>",
"avatarUrl": "<string>",
"githubUserId": 123
},
"commit": {
"sha": "<string>",
"ref": "<string>",
"message": "<string>",
"filesChanged": {
"added": [
"<string>"
],
"modified": [
"<string>"
],
"removed": [
"<string>"
]
}
},
"source": "internal"
}Authorizations
Section titled “Authorizations”AuthorizationstringrequiredThe Authorization header expects a Bearer token. Use an admin API key. This is a server-side secret key. Generate one on the API keys page in your dashboard.
Path Parameters
Section titled “Path Parameters”statusIdstringrequiredThe status ID of a triggered update.
Response
Section titled “Response”200 — A successful response
_id?stringThe status ID of the triggered updated.
projectId?stringThe documentation project ID.
createdAt?stringAn ISODate with the specified datetime in UTC
endedAt?stringAn ISODate with the specified datetime in UTC
status?enum<string>The status of the update.
Available options: queued, in_progress, success, failure
summary?stringSummary of the status of the update
logs?string[]An array of logs.
subdomain?stringThe subdomain of the docs being updated.
screenshot?stringA screenshot of the docs.
screenshotLight?stringA screenshot of the docs.
screenshotDark?stringA screenshot of the docs in dark mode.
author?object | nullThe author of the update.
Show child attributes
name?stringThe name of the author.
avatarUrl?stringURL of the author's avatar image.
githubUserId?numberThe author's GitHub user ID.
commit?objectThe commit details
Show child attributes
sha?stringThe SHA of the commit.
ref?stringThe ref of the commit.
message?stringThe commit message.
filesChanged?objectDetails on the changed files.
Show child attributes
added?string[]New files added.
modified?string[]Existing files that were modified.
removed?string[]Files that were removed.
source?enum<string>The source of the update trigger.
Available options: internal, github-app-installation, api, github, dashboard, gitlab, onboarding