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.

  • A4 portrait
  • 7 merge fields
  • Issued as PDF
  • 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.
Sample of the company policy template (first page of a PDF issued with DocRelay)

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.

FieldDescription
companyCompany name (running header)
titlePolicy title
document_numberDocument number
established_atEstablished on (YYYY-MM-DD)
revised_atRevised on (YYYY-MM-DD)
bodyBody text in Markdown (headings, tables, lists)
watermarkWatermark text (empty to omit)

How to use it

  1. 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.
  2. Edit the company name, logo and field positions in the template editor to match your own format.
  3. Send the template name and data to POST /v1/renders to 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.pdf
policy.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章 総則…"
  }
}

API reference

Early access is open

We are preparing for launch. Pre-register and we will notify you when the service becomes available.