Start static export job

Changed on

<Warning>Static export is not publicly available. It is only available on Enterprise plans. Contact 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.

post/static-export/{projectId}/jobs

Request

  • Base URL
    https://api.mintlify.com/v1
  • Auth
    HTTP bearer

Path parameters

projectIdstring required

Your project ID. Can be copied from the API keys page in your dashboard.

Response

The export job was accepted and queued.

jobIdstring required

Unique identifier for the static export job.

status'queued' | 'running' | 'completed' | 'failed' required

The current state of the job.

createdAtstring date-time required

When the job was created.

updatedAtstring date-time required

When the job last transitioned state.

errorstring nullable

A human-readable error message. Present only when status is failed, otherwise null.

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

sizeBytesinteger

The size of the bundle in bytes. Present only when status is completed.

expiresAtstring date-time

When the current bundleUrl expires. Present only when status is completed.

Example response

{
  "jobId": "6520f3a1c9b1a20012ab34cd",
  "status": "completed",
  "bundleUrl": "https://mintlify-static-export-outputs-prod.s3.amazonaws.com/6520f3a1c9b1a20012ab34cd/export.zip?X-Amz-Signature=...",
  "sizeBytes": 18432000
}

Changes

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status