Docs
DocForge

DocForge

Document generation API. Create, convert, and manage documents from templates. Supports PDF, DOCX, HTML, and more.

Overview

DocForge generates professional documents from templates or raw data, converts between formats, and manages reusable document templates via API.

Base URL: https://api.apivult.com/v1/dev/pdf

Authentication

Include your API key in every request header: X-API-Key: YOUR_API_KEY

Endpoints

MethodEndpointDescription
POST/v1/dev/pdf/generateGenerate a document from a template and data payload
POST/v1/dev/pdf/convertConvert a document between supported formats
GET/v1/dev/pdf/templateList available templates
POST/v1/dev/pdf/templateUpload and register a new template
DELETE/v1/dev/pdf/template/{id}Delete a template

Supported Formats

pdf · docx · html · txt · odt

Quick Start

curl -X POST "https://api.apivult.com/v1/dev/pdf/generate" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "template_id": "invoice-v1",
    "output_format": "pdf",
    "data": {
      "invoice_number": "INV-2024-001",
      "client_name": "Acme Corp",
      "total": 1500.00,
      "due_date": "2024-04-15"
    }
  }'

Response:

{
  "document_id": "doc_abc123",
  "format": "pdf",
  "download_url": "https://api.apivult.com/v1/dev/pdf/download/doc_abc123",
  "expires_at": "2024-03-16T10:30:00Z",
  "size_bytes": 45320
}

Rate Limits

PlanRequests/Month
Free500
Basic2,000
Pro20,000