Templates
Template CRUD and cloning operations.
| Method | Path | Auth | Description | Example |
|---|---|---|---|---|
| GET | /api/templates | API Key | List templates for current user. | |
| GET | /api/templates/:id | API Key | Get template details by id. |
Structure copied from the original docs layout, now filled with real GJSDocs service details from your dashboard API docs.
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.
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.
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}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.
Template CRUD and cloning operations.
| Method | Path | Auth | Description | Example |
|---|---|---|---|---|
| GET | /api/templates | API Key | List templates for current user. | |
| GET | /api/templates/:id | API Key | Get template details by id. |
Generated documents and generation history.
| Method | Path | Auth | Description | Example |
|---|---|---|---|---|
| GET | /api/documents | API Key | List generated documents. | |
| GET | /api/documents/:id | API Key | Get one generated document. | |
| GET | /api/history | API Key | List generation history. | |
| GET | /api/history/:id | API Key | Get one history entry. |
Variable storage and document generation endpoints.
| Method | Path | Auth | Description | Example |
|---|---|---|---|---|
| GET | /api/variables | API Key | Get saved variable list. | |
| PUT | /api/variables | API Key | Update all saved variables. | |
| POST | /api/generate | API Key | Generate a document from template and data. | |
| POST | /api/generate/:id/regenerate | API Key | Regenerate a document from history. |
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.