Pledge template
A pledge submitted by new employees to the company, with the addressee, a pledge statement, clauses on following work rules, confidentiality and outside work, and signature lines for date, address, name with seal, and date of birth. Clauses are passed as a numbered Markdown list.
- 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
- Collecting pledges from new employees
- Bulk generation in onboarding systems
- Pledges on confidentiality and handling personal data
Merge fields
The data fields you send to the API. Fields inside an array are shown as array.field.
| Field | Description |
|---|---|
company.name | Company name |
company.representative | Representative title and name |
clauses | Clauses as a numbered Markdown list |
signed_at | Date signed (YYYY-MM-DD) |
employee.address | Address |
employee.name | Name |
employee.birth_date | Date of birth (YYYY-MM-DD) |
How to use it
- In the dashboard, choose Create template, select "Start from a template" and pick "Pledge". 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 (pledge) in POST /v1/templates, then send the template name and data to POST /v1/renders.
curl https://api.docrelay.jp/v1/templates \
-H "Authorization: Bearer $DOCRELAY_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "name": "Pledge", "from": "pledge" }'curl https://api.docrelay.jp/v1/renders \
-H "Authorization: Bearer $DOCRELAY_API_KEY" \
-H "Content-Type: application/json" \
-d @pledge.json \
-o pledge.pdf{
"template": "Pledge",
"format": "pdf",
"data": {
"company": {
"name": "サンプル商事株式会社",
"representative": "代表取締役 見本 一郎"
},
"clauses": "1. 貴社の就業規則その他の諸規程を遵守し、上長の指示に従って誠実に勤務すること。…",
"signed_at": "2026-11-02",
"employee": {
"address": "東京都見本区例示町4-5-6 見本ハイツ201",
"name": "見本 太郎",
"birth_date": "1998-07-21"
}
}
}Early access is open
We are preparing for launch. Pre-register and we will notify you when the service becomes available.



