Skip to main content

Export endpoints

Render documents to PDF or Word (.docx) with the workspace's export theme. PDF works on every plan, with the workspace's logo, brand color and font. Word export and a custom footer need the workspace to be on Pro or Team; on Free, exports end with a "Made with OpenDocs" footer and a branding object in the request is ignored. That holds even when a workspace that moved back to Free still has its own footer saved from its paid plan; the footer is kept and applies again after an upgrade.

Fenced private blocks are never part of an export.

Both signed-in endpoints accept an API key or a session.

POST /api/v1/posts/:postId/export/:format​

Exports one document.

  • :postId is the post's UUID or slug. Scope a slug with ?workspaceId= and ?projectId=.
  • :format is pdf or docx. Anything else returns 404 not_found.
  • You can export any document you can read (see Posts endpoints).
  • Rate limit: 120 a minute per account, and at most 4 exports running at once per account.

Request body​

Every field is optional. An empty body exports with the workspace's theme.

{
"filename": "q3-investor-update",
"landscape": false,
"accent_color": "#0B3D5C",
"branding": { "main_font": "Inter" }
}
FieldTypeNotes
filenamestring1 to 120 characters, without the extension. Defaults to the slug.
landscapebooleanLandscape pages. Default false.
accent_colorstring6-digit hex, # optional. Overrides the brand color for this export.
brandingobjectConverter branding overrides, passed through. Pro and Team only (it can replace the footer); ignored on Free.

The workspace's theme applies first and the request body on top. Change the theme itself with PATCH /api/v1/workspace/branding (API keys) or the dashboard's per-field routes: brand color, font and footer.

Response​

The file, with these headers:

Content-Type: application/pdf
Content-Disposition: attachment; filename="q3-investor-update.pdf"
X-Cache: HIT

Word files use application/vnd.openxmlformats-officedocument.wordprocessingml.document. X-Cache (HIT or MISS) is present only when the server's export cache is on.

Errors​

StatuserrorWhen
400invalid_requestBody failed validation, for example a bad accent_color
403docx_requires_proWord export in a Free workspace
404not_foundNo document you can read matches, or :format isn't pdf or docx
429rate_limitedOver 120 a minute, or 4 exports already running. Wait Retry-After seconds (2 for the concurrency limit)
502export_failedThe converter returned an error
504export_timeoutThe converter didn't answer within 55 seconds

POST /api/v1/posts/batch/export​

Exports up to 10 documents in one request and returns a zip with every file that succeeded plus a manifest.json describing every entry.

  • 1 to 10 postIds, UUIDs or slugs, mixed freely.
  • Each entry resolves like the single-document route: any document you can read, including teammates' workspace documents. Slugs are scoped by workspaceId and projectId, or without them to your own workspaces.
  • Rate limit: 30 a minute per account (300 documents), sharing the 4 concurrent exports with the single-export route.
  • Documents are converted one after another. If the client disconnects, the server stops.

Request body​

{
"postIds": ["q3-investor-update", "8d0f3c1e-2b4a-4c6d-9e8f-7a6b5c4d3e2f", "board-minutes-october"],
"format": "pdf",
"landscape": false,
"workspaceId": "ws_123"
}
FieldRequiredNotes
postIdsyes1 to 10 UUIDs or slugs
formatyespdf or docx
landscapenoApplies to every document
accent_colornoApplies to every document
brandingnoApplies to every document. Pro and Team only
workspaceIdnoScope slugs to this workspace. Ignored for UUIDs
projectIdnoScope slugs to this project

Response​

Status 200, even when some documents failed:

Content-Type: application/zip
Content-Disposition: attachment; filename="opendocs-export-2026-10-24.zip"
X-Batch-Manifest: eyJmb3JtYXQiOiJwZGYiLCJyZXN1bHRzIjpbey...=
opendocs-export-2026-10-24.zip
├── manifest.json
├── q3-investor-update.pdf
└── board-minutes-october.pdf

manifest.json:

{
"format": "pdf",
"results": [
{
"postId": "8d0f3c1e-2b4a-4c6d-9e8f-7a6b5c4d3e2f",
"success": true,
"slug": "q3-investor-update",
"filename": "q3-investor-update.pdf",
"bytes": 84213,
"cached": false
},
{
"postId": "rollout-plan",
"success": false,
"error": "not_found",
"message": "Document not found, or you can't read it."
}
],
"summary": {
"total": 3,
"succeeded": 2,
"failed": 1,
"cacheHits": 1,
"cacheMisses": 1
}
}
  • A successful result's postId is always the UUID; a failed lookup echoes what you sent.
  • cached is true when the file came from the export cache.
  • cacheHits and cacheMisses appear only when the export cache is on.
  • X-Batch-Manifest is the same JSON, base64-encoded, so you can read results before opening the zip.

Per-document errors in the manifest:

errorMeaning
not_foundNo document you can read matches
docx_requires_proWord export from a Free workspace
converter_failedThe converter returned an error
converter_timeoutThe converter didn't answer in time
export_failedAny other failure

Errors​

StatuserrorWhen
400invalid_requestMore than 10 postIds, a bad format, a bad accent_color
429rate_limitedOver 30 a minute, or 4 exports already running. Wait Retry-After seconds

Caching​

Exports are cached by content: the Markdown, workspace, format, orientation and resolved branding. The same inputs return the same bytes without running the converter again. Cache writes happen after the response and never fail an export.

Public download: POST /api/v1/public/posts/:workspaceSlug/:postSlug/export/:format​

Also /api/v1/public/posts/:workspaceSlug/projects/:projectSlug/:postSlug/export/:format. The "Download PDF / Word" buttons on a document page. No auth needed: anyone who can open the page can download it. With a key or session, your own and your workspaces' non-public documents work too.

  • Ignores the request body; the workspace's theme always applies.
  • Word needs the workspace owner on Pro or Team (403 docx_requires_pro).
  • Unpublished documents and anything you can't read return 404 not_found.
  • Rate limit: 60 a minute per IP.
  • Same 502 export_failed and 504 export_timeout errors as above.

Free converter: POST /api/v1/tools/convert/pdf and /docx​

The no-account converter behind opendocs.cc/tools. Multipart form with a file field (a .md or .markdown file, up to 2 MB; the tool pages send pasted text the same way). The output always uses the OpenDocs theme and the "Made with OpenDocs" footer; an optional tool field (the tool page's slug) tags the footer link.

StatuserrorWhen
400missing_fileNo file field
400empty_fileThe file is blank or only whitespace
400unsupported_mimeThe file isn't .md or .markdown
413file_too_largeThe file is over 2 MB
429rate_limitedMore than 5 a minute, 30 an hour or 100 a day per IP
502conversion_failedThe converter couldn't convert the file
503service_busyMore than 30 conversions a minute or 600 an hour across everyone; wait Retry-After seconds

Rate limits​

EndpointLimit
POST /posts/:postId/export/:format120 a minute per account (shared with the integration routes that render files)
POST /posts/batch/export30 a minute per account
Both4 exports running at once per account
Public download60 a minute per IP
Free converter5 a minute, 30 an hour and 100 a day per IP; 30 a minute and 600 an hour across everyone

See Errors and pagination for every bucket.