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

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 Name | Type | Default Value |
|---|---|---|
| {{contract_title}} | text | Service Agreement |
| {{date}} | date | - |
| {{contract_number}} | text | CTR-2024-001 |
| {{party_a}} | text | Provider Inc. |
| {{party_b}} | text | Client Corp. |
| {{party_a_address}} | text | 123 Business Street, City |
| {{scope}} | text | Description of services... |
| {{party_b_address}} | text | 456 Client Avenue, City |
| {{duration}} | text | 12 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
Business
Invoice
Simple invoice template with company info, client details, and item list.
35 variables
Reporting
Activity Report
Simple activity report with summary, achievements, and next steps.
12 variables
Events
Event Ticket
Event ticket template with QR code for entry verification. Perfect for conferences, concerts, or any event requiring scannable tickets.
13 variables
Ready to Generate Contracts?
Sign up and start generating professional PDF documents in minutes. Start at just €9/month.