Create a template
Create an HTML template with placeholders such as {{customer}} once via the API, with page format, margins, header, footer and a list of required fields. For simple documents, Markdown or HTML without a template is enough.
Documents from templates · API & MCP
The API turns Markdown, HTML or your HTML template with placeholders into a PDF and files it in your workspace.
With lists, totals and required-field checks. Via REST API or via MCP from Claude and other assistants.
DownloadDatasheetsPDF · EN4 pages
Copying every quote together in Word again? Now the API fills your template with data. Documents from templates turns your HTML template with placeholders and your data into a PDF and stores it in the workspace you choose.
Trust, verification & partnerships
Verified in Claude and ChatGPT, certified to ISO/IEC 27001:2022
and the sole official DMS partner of QNAP and ASUSTOR.

In scope:
Verified MCP connector.
Learn moreVerified MCP plugin.
Learn more
Sole official DMS partner.
Learn more
Sole official DMS partner.
Learn moreHow it works
Two routes lead to the PDF: render Markdown or HTML directly, or fill a stored template with variables. Both file the result in your workspace.
Create an HTML template with placeholders such as {{customer}} once via the API, with page format, margins, header, footer and a list of required fields. For simple documents, Markdown or HTML without a template is enough.
Per document, send the template, the target workspace and the variables as JSON, including lists for line items. If a required field is missing, the API names it and creates no document.
PaperOffice renders the PDF and files it in the selected workspace like an upload. The response contains the pofid of the new document.
Capabilities
What a document built from data needs: placeholders, lists, calculations, page layout and a checked filing step.
Send up to 5 MB of content, optionally with your own CSS, header, footer and metadata. The PDF is then filed in your workspace.
Your layout with placeholders such as {{customer}}. Create it once, then send only the data per document. The title may contain placeholders too.
{{#each}} repeats a block per entry, {{@number}} counts along. Suited to line items, participants or appointments.
sum, sum_product, multiply and calculate build totals and formulas with a safe math parser. format_number and format_date format numbers and dates.
If a field from variables_schema.required is missing, the API returns 400 and names the field. No document is created.
A4, A3, A5, Letter or Legal, portrait or landscape, margins from 0 to 100 mm, header and footer per template.
Upload rights and the security level of the workspace are checked, and the file is stored in an encrypted container.
Scripts, forms, iframes and external resources are removed. The renderer loads nothing from outside.
curl -X POST \ "https://api.paperoffice.ai/latest/document_generation/create-from-content" \ -H "Authorization: Bearer po_ut_YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"workspace_id":3307,"content_type":"markdown","title":"Protokoll Projektstart","content":"# Protokoll Projektstart\n\nTeilnehmer: 4","idempotency_key":"protokoll-projektstart-2026-10"}' curl -X POST \ "https://api.paperoffice.ai/latest/document_generation/template-create" \ -H "Authorization: Bearer po_ut_YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"name":"Angebot","html_content":"<h1>Angebot {{offer_no}}</h1><p>{{customer}}</p>{{#each items}}<p>{{@number}}. {{name}}: {{multiply qty price}}</p>{{/each}}<p>Summe: {{sum_product items qty price}}</p>","variables_schema":{"required":["offer_no","customer"]},"page_format":"A4","page_orientation":"portrait"}' curl -X POST \ "https://api.paperoffice.ai/latest/document_generation/create-from-template" \ -H "Authorization: Bearer po_ut_YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"template_id":"tpl_angebot_3f9a21c7","workspace_id":3307,"title":"Angebot {{offer_no}}","variables":{"offer_no":"A-2026-0412","customer":"Iberica Components S.L.","items":[{"name":"Wartung","qty":12,"price":89.5},{"name":"Einrichtung","qty":1,"price":450}]}}' For developers
Render Markdown, create a template, generate a document from a template. The calls run synchronously and return 201 Created.
With idempotency_key, create-from-content returns the same result for 24 hours, without a second document.
MISSING_REQUIRED_VARIABLES names missing fields, UNSUPPORTED_FORMAT flags any format other than PDF.
Seven tools from po_documents_create_from_content to po_templates_delete for Claude and other assistants.
Security
Every generated PDF is filed like an upload, with checks of upload rights and security level. The renderer removes active content and loads nothing from outside. The PDF is generated in our own data center in the EU.
Practical guide
Document generation turns data into a PDF and files it in a workspace. You create an HTML template with placeholders once, then send the template, the target workspace and the values as JSON for each document. If a required field is missing, the API names it and creates no document. Otherwise the PDF is rendered and stored like an upload. The same steps are available to AI assistants through MCP tools.
The film starts with a familiar routine. A new quote is due for a customer, so someone copies the last quote, retypes the customer and the line items, and hopes that nothing old is left in the document. In the demo, the copy is of an earlier quote, and it still carries the number of an old framework agreement.
With document generation, the layout lives in a template and only the data changes. Your own system, such as a CRM or an order tool, can call the API whenever a quote is needed. Because nobody copies a finished document, the problem the film shows, old details left behind in a new quote, does not come up.
There are two endpoints. create-from-content renders Markdown or HTML that you send, always as A4 portrait with standard margins. It needs the fields content, content_type (markdown or html) and workspace_id, and it accepts optional custom_css, header_html and footer_html. Use it for simple documents, such as meeting minutes.
create-from-template fills a stored template with your variables and uses the template's page format, margins, header and footer. Use it when the same layout comes back again and again, as with quotes. Only the PDF output format exists.
The film shows the full chain for a quote. The base address is the PaperOffice API, and every call carries a bearer token in the Authorization header.
POST /document_generation/template-create. Send a name, the html_content with placeholders such as {{customerName}}, a block {{#each items}} for the line items, the page_format, the page_orientation, and optionally header_html and footer_html.variables_schema.required. In the film these are offerNo and customerName.template_id, here tpl_quote_3f9a21c7.POST /document_generation/create-from-template with the template_id, the workspace_id, an optional title such as Quote {{offerNo}} and the variables as a JSON object.variables.items as an array. Each entry becomes one repetition of the {{#each items}} block.status, document_id, pofid, title, pages and template_used.The demo company Northstar writes a quote for the fictional customer Iberica Components S.L. The call sends offerNo as Q-2026-0381, customerName as Iberica Components S.L. and three line items: 100 units of an X200 controller at 2,710.00 each, a negative line DISC-PRJ with the value -13,550.00 as a project discount, and five units of commissioning at 1,300.00 each.
The target is a workspace named Quotes, with the workspace ID 3307 in the film. The response reports document_id 48213, the title Quote Q-2026-0381 and one page. In the document list, the file appears as Quote Q-2026-0381.pdf, and a note shows that AI-DMS processing is scheduled.
The film also shows the failure case. If the call leaves out customerName, the API answers 400 Bad Request with the code MISSING_REQUIRED_VARIABLES and the text that required template variables are missing or empty, and it lists missing_variables. No document is created.
A value is inserted with {{variable}}, and it is inserted HTML-safe. Variable names start with a letter or an underscore and continue with letters, digits or underscores, so camelCase names such as customerName are valid. The title may contain placeholders as well.
Required fields are checked before anything is rendered. An omitted or blank field from variables_schema.required stops the call. A missing variables object returns VARIABLES_REQUIRED, and a JSON array instead of an object returns VARIABLES_INVALID. An empty object is valid and is then checked against the required list. Extra keys are allowed. Nothing is charged when validation, rendering or the workspace check fails.
Through MCP, an assistant can use the same templates. In the film, the assistant lists the templates with po_templates_list and then calls po_documents_create_from_template. The prompt is plain language: create quote Q-2026-0381 for Iberica Components S.L. from our quote template, 100 units of the X200, commissioning in Valencia. The assistant fills in the data and files the quote in the Quotes workspace.
The MCP set has seven tools: po_documents_create_from_content, po_documents_create_from_template, po_templates_list, po_templates_get, po_templates_create, po_templates_update and po_templates_delete. ChatGPT offers only po_documents_create_from_content.
ADMIN_REQUIRED.UNSUPPORTED_FORMAT.{{#if}} work only in templates with the newer engine, which is included in every paid plan. In other templates, both branches end up in the PDF.Frequently asked questions
For templates, yes: in every paid plan, the web app has the “Document templates” page, where you create templates, preview them and restore earlier versions. You generate documents via the REST API, via MCP from an AI assistant or in the web app with the Creator Agent. You then find the finished PDF in the selected workspace.
create-from-content renders the Markdown or HTML you send, always as A4 portrait with standard margins. create-from-template fills a stored template with your variables and uses its page format, margins, header and footer.
{{variable}} for values, {{#each list}} for lists with {{@index}} and {{@number}}, sum, sum_product, multiply and calculate for calculations, format_number and format_date, plus today, now, year, month, day and time. Values are inserted HTML-safe, and unfilled placeholders are dropped.
The API creates PDF only. Conditions such as {{#if}} are evaluated only by templates with the newer engine, available in every paid plan; in other templates both branches end up in the PDF. By default, the calculation helpers output numbers in German format (1.234,56), and dates default to DD.MM.YYYY. The default font contains no Japanese, Chinese or Korean characters.
If a field listed in variables_schema.required is missing or empty, the API returns 400 MISSING_REQUIRED_VARIABLES and names the missing fields. No document is created, and nothing is charged.
In the workspace you specify with workspace_id, just like an upload. You need upload rights there. If the workspace has an AI-DMS automation set up, it processes the PDF like any new document.
Yes. Seven tools are available: po_documents_create_from_content, po_documents_create_from_template, po_templates_list, po_templates_get, po_templates_create, po_templates_update and po_templates_delete. Claude, for example, can then create a quote from your template. ChatGPT offers only po_documents_create_from_content, that is, a PDF from Markdown or HTML.
The main account and admins. Templates belong to the account that created them, and sub-accounts do not see them. template-delete deactivates a template, template-update with is_active=1 reactivates it.
Send an idempotency_key of 8 to 128 characters with create-from-content. The same request then returns the stored result for 24 hours, without a second document. The same key with different content returns 409.
The REST API and MCP features on this page are available in all plans. The “Document templates” page in the web app and the Creator Agent are included in every paid plan. Billing applies to each generated and stored document and to template management calls. An AI-DMS automation in the workspace can cause additional costs, as with any upload.
Case Studies
Discover how businesses transformed their processes with PaperOffice AI.
Measurable customer success
"Enterprise document management for all our mining operations. World class."
"FDA-regulated pharmaceutical labels require complete documentation. PaperOffice has reduced our approval process from days to hours."
"Technical documentation and order processing now run fully automatically."
"Digitization has revolutionized our administration. Citizen inquiries are now processed in minutes instead of days."
"Patient records, medical reports, and referrals are automatically captured and classified. Our practice team finally has time for their patients."
"8,000 employees and thousands of guest documents every day. PaperOffice has completely digitized our back-office processes."
"Loan applications and compliance documents are now processed in minutes instead of hours. The regulatory review is fully automated."
"Construction project documentation and compliance are now digital and traceable."
"Check-in forms, invoices, and guest communications are fully digital. Our concierge team now focuses on providing excellent service."
"Gas station billing, supplier documents, and compliance records from over 250 stations are automatically processed and archived."
"GMP-relevant documentation for pharmaceutical functional labels now runs automatically. Audit trails are complete and instantly accessible."
"Blueprints, permits, and customer files for our wooden houses are now managed centrally. After six generations, we are finally paperless."
"Supplier contracts, certificates, and customs papers for hundreds of roasteries worldwide are automatically captured and assigned to the correct product."
"Temperature logs, CMR waybills, and food certificates are automatically scanned and assigned to the order. Misallocations are a thing of the past."
"Heavy transport permits, route plans, and project documentation are now instantly accessible digitally. No more searching through folders."
"Customs documents, warehouse receipts, and shipping orders for our Eastern European network are automatically classified. Four generations of logistics, finally digital."
"Printing specifications, customer approvals, and material certificates are now accessible centrally. The production error rate has dropped to near zero."
"Sustainability certificates, supplier contracts, and customer specifications are processed automatically. Swiss precision, now also digital."
"Building permits, subcontractor contracts, and acceptance protocols for our commercial properties are now fully documented digitally."
"Purchase agreements, exposés, and customer files from over 30 years of market leadership are now digitally searchable. Every agent finds everything in seconds."
"Ocean freight documents, customs declarations, and bills of lading are automatically captured. Baltic Sea logistics has never been so efficient."
"Thousands of custom packaging orders per week, including design approvals, print data, and delivery documents. PaperOffice keeps it all together."
"Pathology lab documentation and device certifications are now fully automated. Complete traceability for every specimen."
"Loan documents, security papers, and customer correspondence are processed in minutes instead of hours. The regulatory review is complete."
"Technical specifications, quality certificates, and recycling protocols for our steel production are central and instantly accessible."
"Pharma and cosmetic label specifications with regulatory requirements are automatically checked and approved. No more manual checklists."
"KYC documents, investment reports, and regulatory filings are classified in seconds. As an MAS-regulated robo-advisor, complete compliance is essential."
"Safety data sheets, transport permits, and ADR documents for chemical logistics are automatically assigned. Zero tolerance for errors."
"Certificates of authenticity, supplier records, and customer warranties for our pearl collections are automatically archived and instantly accessible."
"SME loan applications, security documents, and regulatory reports are automatically classified. Our advisors have more time for customer consulting."
"Customer files from over 135 years of banking history are being successively digitized. 5,000 employees now have instant access to all documents."
"Microcredit applications and compliance documents for millions of customers are now processed in minutes instead of days. A game changer for financial inclusion."
"Hundreds of thousands of delivery notes and return slips per day are processed automatically. Vietnam's leading e-commerce logistics provider, now paperless."
"CNC manufacturing protocols, material certificates, and customer specifications for oil, gas, and aerospace projects are now fully documented digitally."
"Vision 2030 requires complete digitization. PaperOffice processes government documents for Saudi Arabia's digital backbone."
"Material certificates, hardening protocols, and customer specifications are automatically assigned to the correct order. Australia's only Q&T manufacturer, now paperless."
"Weld seam protocols, structural calculations, and project plans are managed digitally. Our workshop teams have access in real time."
"Aerospace certificates, CNC programs, and customer tolerances are automatically classified. AS9100 evidence has never been this easy to produce."
"Merchant contracts, KYC documents, and transaction receipts for hundreds of thousands of SMEs are processed in seconds. Mexico's payment revolution, paperless."
"Harvest documentation, export certificates, and quality protocols for our high-altitude Malbecs are automatically archived. 120 years of winemaking tradition, now digital."
"Millions of user verifications and regulatory documents are processed fully automatically. Scaling without paper."
"Merchant onboarding documents and compliance records for Africa's leading payment provider are processed in minutes instead of days."
"Organic certificates, supplier audits, and product labels for thousands of natural products are automatically checked and archived."
"Regulatory documents from 33 African countries, partner contracts, and audit trails are managed fully automatically. An enterprise DMS for a $3 billion fintech."
"Prescriptions and medication management now run fully automatically. More time for our patients."
"Centuries-old documents are now digitally searchable. A milestone for our historical archives."
"Our caregivers finally have more time for residents instead of paperwork."
"500,000+ records digitized. Our deputies now find all information instantly."
"Patient records management is now a breeze. Everything automatically captured and archived."
"Inheritance and estate documentation is now efficient and error-free."
"Digital property management for all our residential complexes. Tenants and owners are thrilled."
"With PaperOffice, we have accelerated our invoice processing by 99%. The AI automatically recognizes all relevant data and assigns it correctly."
"PaperOffice has become indispensable to our daily work. Orders, quotes, and invoices are now automated."
"The documentation of our care services is now digital and automated. More time for our patients."
"Technical drawings, bills of materials, and quality protocols are instantly searchable. A search that used to take 30 minutes now takes 30 seconds."
"Client receipts, tax assessments, and annual financial statements are automatically sorted and assigned to the correct client. Receipt chaos is a thing of the past."
"Project documentation, SLAs, and customer communication for our IT consulting projects are automatically classified and archived."
Where would you like to try PaperOffice?
Your trial is ready
Where would you like to start?
The full workspace is optimized for the computer. The mobile version is for capturing, reviewing, and approving documents.
Register free Already a customer? Log in app.paperoffice.aiStart on the computer
A personal access link will be sent to the email address provided.
Open PaperOffice Mobile
Capture and work with documents directly on the smartphone.
Open mobile version