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.
7 customizable variables
How It Works
1. Get Your API Key
Sign up for free 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 | - |
| {{party_a}} | text | Provider Inc. |
| {{party_b}} | text | Client Corp. |
| {{scope}} | text | Description of services... |
| {{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",
"party_a": "Provider Inc.",
"party_b": "Client Corp.",
"scope": "Description of services...",
"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",
"party_a": "Provider Inc.",
"party_b": "Client Corp.",
"scope": "Description of services...",
"duration": "12 months",
"amount": "$5,000"
}
}Other Templates
Ready to Generate Contracts?
Sign up for free and start generating professional PDF documents in minutes. No credit card required.