Skip to main content

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​

  1. Navigate to Templates → New Template
  2. Select Upload DOCX
  3. Upload a Word document with tokens like {{ customer_name }}
  4. DocGenLab automatically extracts all tokens from the document

Option B: Use the HTML Builder​

  1. Navigate to Templates → New Template
  2. Select Builder
  3. Design your template in the visual editor
  4. Insert tokens using the Token button in the toolbar

3. Generate Your First Document​

  1. Open your template and go to the Single Generate tab
  2. Fill in the token values in the form
  3. Choose your output format (PDF or DOCX)
  4. 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:

  1. Navigate to Settings → Developer
  2. Click Create API Key
  3. 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​