Cover letter template
A cover letter for mailing documents, with a formal Japanese greeting, a list of enclosed documents, and a message section.
- Company names, people, addresses and amounts in the sample are fictional.
- The sample layout is in Japanese. You can change any text in the template editor.

Use cases
- Enclosure letters for contracts and invoices
- Sending application forms or materials
- Fax cover sheets
Merge fields
The data fields you send to the API. Fields inside an array are shown as array.field.
| Field | Description |
|---|---|
sent_at | Date sent (YYYY-MM-DD) |
to.company | Recipient company |
to.department | Recipient department |
to.name | Recipient name |
from.company | Sender company |
from.department | Sender department |
from.name | Sender name |
from.postal_code | Sender postal code |
from.address | Sender address |
from.tel | Sender phone number |
from.email | Sender email |
title | Title |
greeting | Opening greeting |
body | Body text |
documents | Enclosed documents (array) |
documents.no | Number |
documents.name | Document name |
documents.copies | Copies |
documents.remark | Remark |
message | Message |
How to use it
- In the dashboard, choose Create template, select "Start from a template" and pick "Cover letter". 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 (cover-letter) 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": "Cover letter", "from": "cover-letter" }'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 @cover-letter.json \
-o cover-letter.pdfcover-letter.json (sample data; arrays show the first item and long text is shortened)
{
"template": "Cover letter",
"format": "pdf",
"data": {
"sent_at": "2026-10-24",
"to": {
"company": "株式会社見本製作所",
"department": "総務部",
"name": "高橋 美咲"
},
"from": {
"company": "サンプル商事株式会社",
"department": "営業管理部",
"name": "中村 陽子",
"postal_code": "100-0000",
"address": "東京都千代田区見本町1-2-3 サンプルビル5F",
"tel": "03-0000-0000",
"email": "sales@example.com"
},
"title": "書類送付のご案内",
"greeting": "時下ますますご清栄のこととお慶び申し上げます。平素は格別のお引き立てを賜り、厚く御礼申し上げます。",
"body": "さて、下記のとおり書類をお送りいたしますので、ご査収くださいますようお願い申し上げます。",
"documents": [
{
"no": 1,
"name": "業務委託契約書(2 部とも記名押印済)",
"copies": "2 部",
"remark": "1 部ご返送ください"
}
],
"message": "お手数ですが、契約書は記名押印のうえ、各 1 部を同封の返信用封筒にて 11 月 7 日(金)までにご返送くださいますよ…"
}
}Early access is open
We are preparing for launch. Pre-register and we will notify you when the service becomes available.

