Documentation

Structure copied from the original docs layout, now filled with real GJSDocs service details from your dashboard API docs.

Getting Started

Create an account, choose your membership plan, and open your dashboard to create templates, connect variables, and generate documents. GJSDocs is designed to move teams from manual editing to repeatable, data-driven document workflows.

Using the Editor

The editor uses a three-panel layout: Variables on the left, document canvas in the center, and blocks/elements on the right. Save templates once, preview results with data, and export for delivery.

Variables System

Use placeholders like {client.name} in templates. Global variables can be reused across all documents, while document-level values can override data for specific outputs.

Hello {client.name},

Your invoice #{document.number} is ready.
Total: {totals.total}

Regards,
{company.name}

Integrations + Import

Connect Airtable, HubSpot, Google Sheets, Zapier, and REST API data sources to feed your variables. You can also import DOCX/PDF/DOC files into the project, then convert and optimize them for variable-driven generation.

Templates

Template CRUD and cloning operations.

MethodPathAuthDescriptionExample
GET/api/templatesAPI KeyList templates for current user.
GET/api/templates/:idAPI KeyGet template details by id.

Documents & History

Generated documents and generation history.

MethodPathAuthDescriptionExample
GET/api/documentsAPI KeyList generated documents.
GET/api/documents/:idAPI KeyGet one generated document.
GET/api/historyAPI KeyList generation history.
GET/api/history/:idAPI KeyGet one history entry.

Variables & Generation

Variable storage and document generation endpoints.

MethodPathAuthDescriptionExample
GET/api/variablesAPI KeyGet saved variable list.
PUT/api/variablesAPI KeyUpdate all saved variables.
POST/api/generateAPI KeyGenerate a document from template and data.
POST/api/generate/:id/regenerateAPI KeyRegenerate a document from history.

Quick Generate Example (API Key)

curl -X POST "https://api.gjsdocs.com/api/generate" \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "template_id": "YOUR_TEMPLATE_ID",
    "data": {
      "client_name": "Acme Inc",
      "invoice_number": "INV-1001"
    },
    "format": "pdf",
    "response_mode": "json"
  }'

JSON mode returns metadata with download_url and file_url.