Legal

Contract PDF Template

Automate contract generation with our API. Populate party details, terms, and clauses dynamically. Perfect for NDAs, service agreements, and legal document workflows.

10 customizable variables
Contract PDF Template Preview
Preview

How It Works

1. Get Your API Key

Sign up and generate an API key from your dashboard.

2. Send JSON Payload

Make a POST request with your template variables as JSON.

3. Receive PDF URL

Get a direct URL to your generated PDF document.

Template Variables

Customize your PDF by providing values for these variables in your API request.

Variable NameTypeDefault Value
{{contract_title}}textService Agreement
{{date}}date-
{{contract_number}}textCTR-2024-001
{{party_a}}textProvider Inc.
{{party_b}}textClient Corp.
{{party_a_address}}text123 Business Street, City
{{scope}}textDescription of services...
{{party_b_address}}text456 Client Avenue, City
{{duration}}text12 months
{{amount}}text$5,000

Code Examples

Copy and paste these examples to start generating PDFs with this template.

curl -X POST 'https://api.pdf-sign.com/functions/v1/generate-pdf-preview' \
  -H 'Content-Type: application/json' \
  -H 'x-api-key: pdfsign_YOUR_API_KEY' \
  -d '{
    "templateId": "cdeae052-4b80-4948-9e74-f486ef1b73df",
    "variables": {
      "contract_title": "Service Agreement",
      "date": "your_date",
      "contract_number": "CTR-2024-001",
      "party_a": "Provider Inc.",
      "party_b": "Client Corp.",
      "party_a_address": "123 Business Street, City",
      "scope": "Description of services...",
      "party_b_address": "456 Client Avenue, City",
      "duration": "12 months",
      "amount": "$5,000"
    }
  }'

Example JSON Payload

Here's a complete example of the variables object you'll send in your API request.

{
  "templateId": "cdeae052-4b80-4948-9e74-f486ef1b73df",
  "variables": {
    "contract_title": "Service Agreement",
    "date": "your_date",
    "contract_number": "CTR-2024-001",
    "party_a": "Provider Inc.",
    "party_b": "Client Corp.",
    "party_a_address": "123 Business Street, City",
    "scope": "Description of services...",
    "party_b_address": "456 Client Avenue, City",
    "duration": "12 months",
    "amount": "$5,000"
  }
}

Other Templates

Ready to Generate Contracts?

Sign up and start generating professional PDF documents in minutes. Start at just €9/month.