Skip to content

Developer Guide

Integrate TemplateTo into your application to automate PDF and image generation.

  • Authentication


    Set up API keys and secure your integration

    Authentication

  • REST API Reference


    Complete API documentation with examples

    REST API

  • Async Rendering


    Background processing for large documents

    Async API

  • No-Code Integrations


    Connect via Zapier or N8N without coding

    No-Code

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:

  • Zapier - Connect with 5,000+ apps
  • N8N - Self-hosted automation platform

Getting Started

1. Create an API Key

Generate an API key in your account settings:

  1. Go to API Keys page
  2. Click Create New API Key
  3. Give it a descriptive name
  4. 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:

Open Code Builder

The code builder creates ready-to-use code for:

  • JavaScript/Node.js
  • Python
  • C#
  • cURL
  • And more

Base URL

All API endpoints use:

https://api.templateto.com

Output Formats

Format Content Type Use Case
PDF 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?