Cover letter template

A cover letter for mailing documents, with a formal Japanese greeting, a list of enclosed documents, and a message section.

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

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.

FieldDescription
sent_atDate sent (YYYY-MM-DD)
to.companyRecipient company
to.departmentRecipient department
to.nameRecipient name
from.companySender company
from.departmentSender department
from.nameSender name
from.postal_codeSender postal code
from.addressSender address
from.telSender phone number
from.emailSender email
titleTitle
greetingOpening greeting
bodyBody text
documentsEnclosed documents (array)
documents.noNumber
documents.nameDocument name
documents.copiesCopies
documents.remarkRemark
messageMessage

How to use it

  1. 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.
  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 (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.pdf
cover-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 日(金)までにご返送くださいますよ…"
  }
}

API reference

Early access is open

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