Developer Guide
Integrate TemplateTo into your application to automate PDF and image generation.
Quick Links
-
Authentication
Set up API keys and secure your integration
-
REST API Reference
Complete API documentation with examples
-
Async Rendering
Background processing for large documents
-
No-Code Integrations
Connect via Zapier or N8N without coding
Integration Paths
Direct API Integration
Use the REST API for full control over document generation.
Best for:
- Custom application integrations
- High-volume document generation
- Programmatic workflows
- Developers comfortable with HTTP APIs
Features:
- Synchronous and asynchronous rendering
- PDF, PNG, JPEG, and TXT output
- Template-based or raw HTML input
- Webhooks for async completion notifications
No-Code Platforms
Connect TemplateTo with Zapier or N8N for automation without writing code.
Best for:
- Workflow automation
- Connecting existing tools
- Non-technical users
- Quick integrations
Supported platforms:
Getting Started
1. Create an API Key
Generate an API key in your account settings:
- Go to API Keys page
- Click Create New API Key
- Give it a descriptive name
- Copy and securely store the key
See Authentication for security best practices.
2. Choose Your Integration Method
| Method | Use Case |
|---|---|
| REST API | Custom integrations, full control |
| Async API | Large documents, background processing |
| Zapier | No-code automation |
| N8N | Self-hosted automation |
3. Make Your First Request
curl -X POST "https://api.templateto.com/render/pdf/your-template-id" \
-H "X-Api-Key: your-api-key" \
-H "Content-Type: application/json" \
-d '{"customerName": "Acme Corp", "total": 150.00}'
Code Builder
Generate code snippets in multiple languages based on your template:
The code builder creates ready-to-use code for:
- JavaScript/Node.js
- Python
- C#
- cURL
- And more
Base URL
All API endpoints use:
Output Formats
| Format | Content Type | Use Case |
|---|---|---|
application/pdf |
Documents, reports, invoices | |
| PNG | image/png |
Graphics, images with transparency |
| JPEG | image/jpeg |
Photographs, smaller file sizes |
| TXT | text/plain |
Plain text extraction |
Need Help?
- API Reference - REST API documentation
- Code Examples - Code Builder
- Template Setup - Template Builder Guide