# Start static export job

POST

/

static-export

/

/

jobs

Start static export job

```
curl --request POST \

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

  --header 'Authorization: Bearer <token>'
```

:::code-group
```title="202"
{

  "jobId": "6520f3a1c9b1a20012ab34cd",

  "status": "completed",

  "createdAt": "2023-11-07T05:31:56Z",

  "updatedAt": "2023-11-07T05:31:56Z",

  "error": "<string>",

  "bundleUrl": "https://mintlify-static-export-outputs-prod.s3.amazonaws.com/6520f3a1c9b1a20012ab34cd/export.zip?X-Amz-Signature=...",

  "sizeBytes": 18432000,

  "expiresAt": "2023-11-07T05:31:56Z"

}
```

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

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

```title="409"
{
  "error": "<string>"
}
```

```title="429"
{
  "error": "<string>"
}
```
:::

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

#### Authorizations

Authorization

string

header

required

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

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

The export job was accepted and queued.

jobId

string

required

Unique identifier for the static export job.

Example:

`"6520f3a1c9b1a20012ab34cd"`

status

enum\<string>

required

The current state of the job.

Available options:

`queued`,

`running`,

`completed`,

`failed`

Example:

`"completed"`

createdAt

string\<date-time>

required

When the job was created.

updatedAt

string\<date-time>

required

When the job last transitioned state.

error

string | null

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.

Example:

`"https://mintlify-static-export-outputs-prod.s3.amazonaws.com/6520f3a1c9b1a20012ab34cd/export.zip?X-Amz-Signature=..."`

sizeBytes

integer

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

Example:

`18432000`

expiresAt

string\<date-time>

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

⌘I

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