> ## Documentation Index
> Fetch the complete documentation index at: https://www.mintlify.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Generate export bundle

> Package a completed static export job into a single archive and return a download link. The link is a presigned S3 URL — download it before `expiresAt`.

The job must have a `status` of `completed` before a bundle can be generated.

Static export is available on Enterprise plans.

<Info>
  Static export requires an [Enterprise plan](https://mintlify.com/pricing?ref=static-export).
</Info>


## OpenAPI

````yaml static-export-openapi.json POST /static-export/jobs/{jobId}/bundle
openapi: 3.0.1
info:
  title: Mintlify Static Export API
  description: >-
    Programmatically generate a self-contained static export of your
    documentation and download it as a single bundle. Available on Enterprise
    plans.
  version: 1.0.0
servers:
  - url: https://api.mintlify.com/v1
security:
  - bearerAuth: []
paths:
  /static-export/jobs/{jobId}/bundle:
    post:
      summary: Generate export bundle
      description: >-
        Package a completed static export job into a single archive and return a
        download link. The link is a presigned S3 URL — download it before
        `expiresAt`.


        The job must have a `status` of `completed` before a bundle can be
        generated.


        Static export is available on Enterprise plans.
      operationId: generateStaticExportBundle
      parameters:
        - name: jobId
          in: path
          description: The ID of a completed static export job.
          required: true
          schema:
            type: string
      responses:
        '200':
          description: A presigned S3 link to the static export bundle.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BundleResponse'
        '401':
          description: Authentication failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: No job exists with the provided ID.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: The job has not finished yet, so a bundle cannot be generated.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    BundleResponse:
      type: object
      required:
        - jobId
        - bundleUrl
        - sizeBytes
        - expiresAt
      properties:
        jobId:
          type: string
          description: The ID of the job this bundle was generated for.
          example: se_3f9a2c1b8e7d4a06
        bundleUrl:
          type: string
          format: uri
          description: >-
            A presigned S3 link to the static export bundle archive. Download it
            before the link expires.
          example: >-
            https://mintlify-static-exports.s3.amazonaws.com/se_3f9a2c1b8e7d4a06/bundle.tar.gz?X-Amz-Signature=...
        sizeBytes:
          type: integer
          description: The size of the bundle in bytes.
          example: 18432000
        expiresAt:
          type: string
          format: date-time
          description: When the presigned link expires.
    Error:
      type: object
      properties:
        error:
          type: string
          description: A human-readable description of the error.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Admin API key. Generate one on the API keys page in your dashboard.

````

## Related topics

- [Static export](/docs/api/static-export/overview.md)
- [Start static export job](/docs/api/static-export/start-job.md)
- [Markdown export](/docs/ai/markdown-export.md)
