Document AI — DMS

Create Document from Content

Generate a PDF in the DMS from Markdown or HTML.

post/document_generation/create-from-content

Request

  • Base URL: https://api.paperoffice.ai/latest
  • URL: https://api.paperoffice.ai/latest/document_generation/create-from-content
  • Auth: HTTP bearer

Request body

contentstring required

Markdown or HTML source (required). Not html_content.

content_type'markdown' | 'html' required

Format of the content field.

output_format'pdf'

Output format of the created document

titlestring

Document title (also used as the filename)

workspace_idinteger required

Target workspace ID (required). Use po_workspaces_list to find valid workspace IDs.

metadataobject

Metadata as key-value pairs (stored as IDP fields).

languagestring

Language for formatting (de/en)

auto_classifyboolean

Automatic classification after creation.

custom_cssstring

Additionals CSS for the PDF-Layout

header_htmlstring

HTML for page header

footer_htmlstring

HTML for footer

priorityinteger

LEGACY queue weight (numeric). Prefer processing_lane (Start-SLA). If processing_lane is set, the lane wins. Do not use as the public SLA product.

processing_lane'no_sla' | 'sla_24h' | 'sla_12h' | 'sla_6h' | 'sla_1h' | 'instant'

Start-SLA lane (wait-to-start guarantee, not completion). Values: no_sla (fair use ×1), sla_24h (×1.5), sla_12h (×2), sla_6h (×3), sla_1h (×4), instant (×5 interactive start). Prefer this over legacy numeric priority. If omitted: workspace default_processing_lane, else no_sla.

Response

Success

status'success' required
_billingobject

Changes

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