Documents

Export a PDF

Renders the current version and returns a download link valid for 5 minutes. Counts against your plan exactly like a download in the app: the first export of new content uses one export; re-exporting unchanged content is free.

Idempotency-Key is ignored: the response holds a short-lived URL, so a replay would hand back an expired link. Retrying is safe — re-exporting unchanged content is free.

post/v1/documents/{id}/export/

Request

  • Base URL: https://api.pdfbetter.com
  • URL: https://api.pdfbetter.com/v1/documents/{id}/export/
  • Auth: HTTP bearer

Path parameters

idstring required

Request body

flattenboolean

Burn fields and annotations into the page content

includeCommentsboolean
fileNamestring

Response

Export a PDF

object'export' required
idstring required
urlstring required
fileNamestring required
sizeinteger required
expiresAtstring required

ISO 8601 timestamp (UTC)

Changes

No recorded changes to this operation across all 1 revision of this API.