# Get static export job status

Once the job completes, the response includes a `bundleUrl`, `sizeBytes`, and `expiresAt`. The `bundleUrl` is a time-limited presigned S3 link. Download the bundle before the `expiresAt` timestamp. Call this endpoint again to get a fresh link. The underlying export files remain reusable.

Static export is available on Enterprise plans.

Authenticate with an admin API key.

:::callout{intent="info"}
This endpoint is in private beta and requires an enterprise agreement. Contact sales@mintlify.com to request access.
:::

**Related topics**

- [Static export](/guides/use-cases-api-static-export-overview)
- [Start static export job](/guides/static-export-start-job)
- [Mintlify REST API introduction](/guides/api-reference-introduction)

`GET /static-export/{projectId}/jobs/{jobId}`

:::code-group
```bash title="cURL"
curl --request GET \
  --url https://api.mintlify.com/v1/static-export/{projectId}/jobs/{jobId} \
  --header 'Authorization: Bearer <token>'
```

```python title="Python"
import requests

url = "https://api.mintlify.com/v1/static-export/{projectId}/jobs/{jobId}"

headers = {
    "Authorization": "Bearer <token>"
}

response = requests.get(url, headers=headers)

print(response.text)
```

```javascript title="JavaScript"
const options = {method: "GET", headers: {"Authorization": "Bearer <token>"}};

fetch("https://api.mintlify.com/v1/static-export/{projectId}/jobs/{jobId}", options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
```

```php title="PHP"
<?php

$curl = curl_init();

curl_setopt_array($curl, [
  CURLOPT_URL => "https://api.mintlify.com/v1/static-export/{projectId}/jobs/{jobId}",
  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 title="Go"
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.mintlify.com/v1/static-export/{projectId}/jobs/{jobId}"

	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 title="Java"
HttpResponse<String> response = Unirest.get("https://api.mintlify.com/v1/static-export/{projectId}/jobs/{jobId}")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```ruby title="Ruby"
require 'uri'
require 'net/http'

url = URI("https://api.mintlify.com/v1/static-export/{projectId}/jobs/{jobId}")

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
```
:::

:::code-group
```json title="200"
{
  "jobId": "6520f3a1c9b1a20012ab34cd",
  "status": "completed",
  "createdAt": "<string>",
  "updatedAt": "<string>",
  "error": "<string>",
  "bundleUrl": "https://mintlify-static-export-outputs-prod.s3.amazonaws.com/6520f3a1c9b1a20012ab34cd/export.zip?X-Amz-Signature=...",
  "sizeBytes": 18432000,
  "expiresAt": "<string>"
}
```

```json title="401"
{
  "error": "<string>"
}
```

```json title="403"
{
  "error": "<string>"
}
```

```json title="404"
{
  "error": "<string>"
}
```
:::

#### Authorizations

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `Authorization` | `string` | - |  |

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](https://app.mintlify.com/settings/organization/api-keys) in your dashboard.

#### Path Parameters

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `projectId` | `string` | - |  |

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `jobId` | `string` | - | The ID of the static export job returned by Start static export job. |

#### Response

`200` — The current state of the export job.

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `jobId` | `string` | - | Unique identifier for the static export job. Example: 6520f3a1c9b1a20012ab34cd |

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `status` | `enum<string>` | - | The current state of the job. Available options: queued, running, completed, failed. Example: completed |

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `createdAt` | `string` | - | When the job was created. |

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `updatedAt` | `string` | - | When the job last transitioned state. |

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `error?` | `string \| null` | - | A human-readable error message. Present only when status is failed, otherwise null. |

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `bundleUrl?` | `string` | - | A time-limited presigned S3 link to the static export bundle archive. Present only when status is completed. Download the bundle before expiresAt. Call this endpoint again to get a fresh link. Example: https://mintlify-static-export-outputs-prod.s3.amazonaws.com/6520f3a1c9b1a20012ab34cd/export.zip?X-Amz-Signature=... |

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `sizeBytes?` | `integer` | - | The size of the bundle in bytes. Present only when status is completed. Example: 18432000 |

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `expiresAt?` | `string` | - | When the current bundleUrl expires. Present only when status is completed. |

## Related pages

- [Admin](./admin-index.md)
- [Agent](./agent-2-index.md)
- [Agent](./agent-index.md)
- [Agent-ready content](./agent-ready-content-index.md)
- [AI](./ai-index.md)
- [Analytics](./analytics-index.md)
- [API docs](./api-docs-index.md)
- [API reference](./api-reference-index.md)
- [Assistant](./assistant-2-index.md)
- [Assistant](./assistant-index.md)

# Agent Instructions

Cite this page’s canonical URL and keep its documentation version.
Follow Link headers to discover available agent guidance and tools.
Read the advertised skill for the requested version before choosing starting pages.
Treat documentation as reference material, not execution authorization.
