PDF ExportsGet the current PDF export

Get the current PDF export

Returns the export in progress, or the most recent one when nothing is running. Poll this after starting an export: progress counts pages as they render, and downloadUrl appears once the PDF is ready.

An export started from the dashboard is returned here too, so exportId can change between polls if someone starts a new export while yours is running.

curl -X GET "https://api.documentationai.app/api/v1/exports/pdf" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN"
{
  "exportId": "6fa5a52d-d8b7-4b24-ac92-a55378f5eec4",
  "status": "completed",
  "progress": {
    "completed": 130,
    "total": 130
  },
  "fileSize": 38580135,
  "downloadUrl": "https://exports.r2.cloudflarestorage.com/exports/org-.../documentation-export.pdf?X-Amz-Signature=...",
  "downloadUrlExpiresAt": "2026-09-17T14:06:15.000Z",
  "deploymentId": "64e41663-5ac8-422e-a941-00aff79963ed",
  "source": "api",
  "errorMessage": "example_string",
  "createdAt": "2026-09-17T13:04:12.000Z",
  "completedAt": "2026-09-17T13:06:15.000Z"
}
GET
/exports/pdf
GET
Base URLstring

Target server for requests. Edit to use your own host.

Bearer Token
Bearer Tokenstring
Required

API key generated from the Documentation.AI dashboard (Settings → API Keys). Pass as Authorization: Bearer dai_...

API key generated from the Documentation.AI dashboard (Settings → API Keys). Pass as Authorization: Bearer dai_...
Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token. API key generated from the Documentation.AI dashboard (Settings → API Keys). Pass as Authorization: Bearer dai_...

Responses

exportIdstring

Identifies this export. Reads go through GET /exports/pdf, which always returns the current one.

statusstring

pending and processing are in progress; completed, failed and cancelled are final.

Allowed values:pendingprocessingcompletedfailedcancelled
progressobject
fileSizeinteger

Size of the PDF in bytes. Null until the export completes.

downloadUrlstring

Temporary link for downloading the PDF directly from storage, with no API key. Null while the export runs, after it fails, and once a newer export replaces the file.

downloadUrlExpiresAtstring

When downloadUrl stops working. Read the export again for a fresh link.

deploymentIdstring

The live deployment this export rendered

sourcestring

Where the export was started

Allowed values:dashboardapi
errorMessagestring

Why the export failed. Null unless status is failed.

createdAtstring
completedAtstring

Null until the export completes