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.

  • 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 pledge template (first page of a PDF issued with DocRelay)

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.

FieldDescription
company.nameCompany name
company.representativeRepresentative title and name
clausesClauses as a numbered Markdown list
signed_atDate signed (YYYY-MM-DD)
employee.addressAddress
employee.nameName
employee.birth_dateDate of birth (YYYY-MM-DD)

How to use it

  1. In the dashboard, choose Create template, select "Start from a template" and pick "Pledge". 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 (pledge) 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": "Pledge", "from": "pledge" }'
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 @pledge.json \
  -o pledge.pdf
pledge.json (sample data; arrays show the first item and long text is shortened)
{
  "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"
    }
  }
}

API reference

Early access is open

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