Skip to main content
Mintlify
current

Search documentation

Type to search this documentation.

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
curl --request GET \
  --url https://api.mintlify.com/v1/project/update-status/{statusId} \
  --header 'Authorization: Bearer <token>'
Python
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)
JavaScript
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
<?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;
}
Go
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))

}
Java
HttpResponse<String> response = Unirest.get("https://api.mintlify.com/v1/project/update-status/{statusId}")
  .header("Authorization", "Bearer <token>")
  .asString();
Ruby
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
200
{
  "_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"
}
Authorizationstringrequired

The 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.

statusIdstringrequired

The status ID of a triggered update.

Typestring

200 — A successful response

_id?string

The status ID of the triggered updated.

Typestring
projectId?string

The documentation project ID.

Typestring
createdAt?string

An ISODate with the specified datetime in UTC

Typestring
endedAt?string

An ISODate with the specified datetime in UTC

Typestring
status?enum<string>

The status of the update.

Available options: queued, in_progress, success, failure

Typeenum<string>
summary?string

Summary of the status of the update

Typestring
logs?string[]

An array of logs.

Typestring[]
subdomain?string

The subdomain of the docs being updated.

Typestring
screenshot?string

A screenshot of the docs.

Typestring
screenshotLight?string

A screenshot of the docs.

Typestring
screenshotDark?string

A screenshot of the docs in dark mode.

Typestring
author?object | null

The author of the update.

Typeobject | null
Show child attributes
name?string

The name of the author.

Typestring
avatarUrl?string

URL of the author's avatar image.

Typestring
githubUserId?number

The author's GitHub user ID.

Typenumber
commit?object

The commit details

Typeobject
Show child attributes
sha?string

The SHA of the commit.

Typestring
ref?string

The ref of the commit.

Typestring
message?string

The commit message.

Typestring
filesChanged?object

Details on the changed files.

Typeobject
Show child attributes
added?string[]

New files added.

Typestring[]
modified?string[]

Existing files that were modified.

Typestring[]
removed?string[]

Files that were removed.

Typestring[]
source?enum<string>

The source of the update trigger.

Available options: internal, github-app-installation, api, github, dashboard, gitlab, onboarding

Typeenum<string>
Suggest an edit

Propose a replacement for this page. The site team reviews it before applying any changes.

Export
Documentation menu