Documentation

Everything you need to know about PactTailor features.

🏅 Publish Badge

After generating a contract, use the Publish button to create a hosted license page and get an embeddable badge for your storefront.

Embed methods

HTML snippet
<a href="https://pacttailor.com/l/YOUR-SLUG" target="_blank" rel="noopener">
  <img src="https://pacttailor.com/api/badge/YOUR-SLUG" 
       alt="Licensed via PactTailor" height="20" />
</a>
Self-injecting script (recommended)
<script src="https://pacttailor.com/api/badge/YOUR-SLUG/widget" async></script>

The widget script injects the badge automatically. Supports ?style=shield|pill|minimal.

Markdown
[![Licensed via PactTailor](https://pacttailor.com/api/badge/YOUR-SLUG)](https://pacttailor.com/l/YOUR-SLUG)
Replace YOUR-SLUG with your actual contract slug (visible on the contract page and in the Publish modal).

Badge styles

StyleURL paramDescription
Shield (default)?style=shieldBadge image + link
Pill?style=pillBadge + "Verified License" chip
Minimal?style=minimalPlain text link underlined

📋 Hosted License Page

Every published contract gets a public URL at https://pacttailor.com/l/YOUR-SLUG. Buyers can read the full contract, check the provenance hash, and accept the terms — their name, email, IP address, and timestamp are recorded.

How to publish

  1. 1Generate your contract with the wizard.
  2. 2On the contract page, click Publish License Page.
  3. 3Choose a slug (or use the auto-generated one). Click Publish.
  4. 4Your license page is live. Share the URL or use the badge embed code.

Buyer acceptance flow

When a buyer visits your license page and clicks Accept License, PactTailor records:

  • Buyer name and email (optional)
  • IP address (for audit trail)
  • Timestamp (UTC)
  • Document hash at time of acceptance

View all acceptances on your Dashboard.

JSON-LD metadata (SEO)

Each hosted license page includes DigitalDocument JSON-LD schema and hreflang tags for discoverability.

🔒 Provenance Verification

Every PactTailor contract has a SHA-256 hash computed from the template, clause set, jurisdiction, and filled content. Use this hash to verify the document hasn't been tampered with.

Verify via API

GET https://pacttailor.com/api/verify?hash=SHA256_HASH
# Returns: { verified: true, contractId, templateSlug, version, generatedAt }

Provenance chain

The provenance_chain field in the JSON-LD export records every template version and clause hash in order, creating an immutable audit trail.

📥 Export Formats

FormatDescriptionUse case
PDFPrint-ready, human-readableSend to clients, print for records
HTMLStyled web documentEmbed in your website
MarkdownPlain text formatGitHub READMEs, documentation
JSON-LDStructured data with provenanceVerifiable, machine-readable
Plain textUnstyled textCopy-paste anywhere

⚠️ PactTailor templates are not legal advice. Read our disclaimer. Questions? hello@pacttailor.com