Quick Start
Get up and running with DocGenLab in 5 minutes.
1. Create an Account
Visit app.docgenlab.com and create your account.
2. Create Your First Template
Option A: Upload a DOCX File
- Navigate to Templates → New Template
- Select Upload DOCX
- Upload a Word document with tokens like
{{ customer_name }} - DocGenLab automatically extracts all tokens from the document
Option B: Use the HTML Builder
- Navigate to Templates → New Template
- Select Builder
- Design your template in the visual editor
- Insert tokens using the Token button in the toolbar
3. Generate Your First Document
- Open your template and go to the Single Generate tab
- Fill in the token values in the form
- Choose your output format (PDF or DOCX)
- Click Generate and download the result
See the Single Generation guide for JSON mode and advanced options.
4. Get an API Key
For programmatic access:
- Navigate to Settings → Developer
- Click Create API Key
- Copy your key — it starts with
dgl_and is shown only once
curl -X POST "https://api.docgenlab.com/api/v1/documents/" \
-H "X-API-Key: dgl_your_key_here" \
-H "Content-Type: application/json" \
-d '{
"template_id": "your-template-uuid",
"input_json": {
"customer_name": "John Doe"
},
"output_format": "pdf"
}'
See API Keys for security best practices and rate limit handling.
Next Steps
- Templates guide — DOCX vs HTML, loops, conditionals, images
- Bulk Generation — generate from an Excel file
- Webhooks — get notified when documents are ready
- Code Examples — Python, Node.js, cURL