Export a completed job
Export a completed generation job to PDF format. Returns a download URL.
The API routes to the correct export pipeline based on document type: canvas documents use the canvas pipeline (supports all formats); pageless documents use the pageless pipeline (pdf, html, png only — pptx and google-slides are not supported for pageless).
Endpoint
POSThttps://api.nextdocs.io/v0/export/{job_id}
Parameters
job_id(path, required) — Job identifier.format(query, optional, defaultpdf) — Export format:pdf,html,png,pptx, orgoogle-slides. For pageless documents, onlypdf,html, andpngare supported.Authorization(header, optional) —Bearer <API_KEY>.
Responses
200— Export download URL.400— Validation error (e.g. unsupported format for pageless documents).422— Validation error.
Example Request
curl -X POST "https://api.nextdocs.io/v0/export/job_123?format=pdf" \
-H "Authorization: Bearer YOUR_API_KEY"const response = await fetch(
'https://api.nextdocs.io/v0/export/job_123?format=pdf',
{
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
},
}
);
const data = await response.json();import requests
response = requests.post(
'https://api.nextdocs.io/v0/export/job_123',
params={'format': 'pdf'},
headers={'Authorization': 'Bearer YOUR_API_KEY'}
)
data = response.json()Example Response
{
"download_url": "https://cdn.nextdocs.io/exports/job_123.pdf",
"format": "pdf",
"expires_at": "2026-02-09T12:10:00Z"
}