Company policy template
A company policy document whose chapters, articles, tables and lists flow in from Markdown across pages, with a running header, page numbers and a "confidential" watermark on every page.
- Company names, people, addresses and amounts in the sample are fictional.
- Clauses and fields are general examples. Review the content against applicable laws and your own terms.
- The sample layout is in Japanese. You can change any text in the template editor.

Use cases
- Internal rules such as work rules or information security policies
- Publishing PDF versions from a policy management system
- Operating manuals and procedures
Merge fields
The data fields you send to the API. Fields inside an array are shown as array.field.
| Field | Description |
|---|---|
company | Company name (running header) |
title | Policy title |
document_number | Document number |
established_at | Established on (YYYY-MM-DD) |
revised_at | Revised on (YYYY-MM-DD) |
body | Body text in Markdown (headings, tables, lists) |
watermark | Watermark text (empty to omit) |
How to use it
- In the dashboard, choose Create template, select "Start from a template" and pick "Company policy". The layout and sample data are copied into your project.
- Edit the company name, logo and field positions in the template editor to match your own format.
- Send the template name and data to
POST /v1/rendersto issue a PDF.
With a test API key (sk_test_) you can issue documents from the draft. Publish a version before issuing with a production API key. From an AI assistant, specify the same template in the from of the MCP create_template tool.
Create and issue via the API
Create a template by setting from to the template ID (policy) in POST /v1/templates, then send the template name and data to POST /v1/renders.
1. Create a template from the ready-made one
curl https://api.docrelay.jp/v1/templates \
-H "Authorization: Bearer $DOCRELAY_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "name": "Company policy", "from": "policy" }'2. Send data and issue a PDF
curl https://api.docrelay.jp/v1/renders \
-H "Authorization: Bearer $DOCRELAY_API_KEY" \
-H "Content-Type: application/json" \
-d @policy.json \
-o policy.pdfpolicy.json (sample data; arrays show the first item and long text is shortened)
{
"template": "Company policy",
"format": "pdf",
"data": {
"company": "サンプル商事株式会社",
"title": "情報セキュリティ管理規程",
"document_number": "R-IS-001",
"established_at": "2024-04-01",
"revised_at": "2026-10-01",
"watermark": "社外秘",
"body": "## 第1章 総則…"
}
}Early access is open
We are preparing for launch. Pre-register and we will notify you when the service becomes available.



