---
title: "Start static export job"
method: POST
path: "/static-export/{projectId}/jobs"
language: "en"
---

# Start static export job

`POST /static-export/{projectId}/jobs`

## Request

- Base URL: `https://api.mintlify.com/v1`
- URL: `https://api.mintlify.com/v1/static-export/{projectId}/jobs`
- Auth: HTTP bearer

<Warning>**Static export is not publicly available.** It is only available on Enterprise plans. Contact [sales@mintlify.com](mailto:sales@mintlify.com) to request access.</Warning>

Starts a static export job for a deployment. The job pre-renders your documentation into a self-contained set of static HTML, RSC, and asset files, then packages the result as a single downloadable archive.

A deployment can have only one active static export job at a time. Starting a job while another is `queued` or `running` returns `409`. Rate-limited to 10 job starts per organization per hour.

Authenticate with an admin API key.

## Path parameters

- `projectId` string, required: Your project ID. Can be copied from the [API keys](https://app.mintlify.com/settings/organization/api-keys) page in your dashboard.

## Response `202`

The export job was accepted and queued.

- StaticExportJob
  - `jobId` string, required: Unique identifier for the static export job.
  - `status` 'queued' | 'running' | 'completed' | 'failed', required: The current state of the job.
  - `createdAt` string, date-time, required: When the job was created.
  - `updatedAt` string, date-time, required: When the job last transitioned state.
  - `error` string, nullable: A human-readable error message. Present only when `status` is `failed`, otherwise `null`.
  - `bundleUrl` string, uri: 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.
  - `sizeBytes` integer: The size of the bundle in bytes. Present only when `status` is `completed`.
  - `expiresAt` string, date-time: When the current `bundleUrl` expires. Present only when `status` is `completed`.

## Other responses

- `400`: The `basePath` value isn't supported, or the project ID is malformed.
- `401`: The API key is missing or invalid, your plan doesn't include API access, or static export isn't enabled for this project. Contact sales@mintlify.com to enable it.
- `403`: Your API key doesn't have write access, or your request came from an IP address that isn't on your API key's allowlist.
- `404`: The project doesn't exist or doesn't belong to your organization.
- `409`: A static export job is already in progress for this deployment. Wait for the active job to complete before starting a new one.
- `429`: Rate limit exceeded. The static export API allows up to 10 job starts per organization per hour.
- `500`: The export job couldn't be created or queued. Retry the request. If the error continues, contact support.

## Changes

- **2026-10-30** `d65bf41c72e6`: 3 info
  - added the non-success response with the status `400`
  - added the non-success response with the status `404`
  - added the non-success response with the status `500`
- **2026-08-24** `b6c2af3f0e6b`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/mintlify/apis/mintlify-static-export-api/changes/static-export/:projectId/jobs/post.md)

---

[API](https://skmtc.dev/mintlify/apis/mintlify-static-export-api.md) - [All operations](https://skmtc.dev/mintlify/apis/mintlify-static-export-api/llms.txt) - [OpenAPI document](https://skmtc.dev/mintlify/apis/mintlify-static-export-api/revisions/d65bf41c72e6?raw)
