Starter Templates
Pre-built templates to help you get started quickly. The list endpoint is public (no authentication required), while cloning requires an API key.List Starter Templates
GET https://api.getdocuforge.dev/v1/starter-templates
Public — no authentication required.
Returns all available starter templates with their metadata and sample data.
Example
Response
Get Starter Template
GET https://api.getdocuforge.dev/v1/starter-templates/:slug
Public — no authentication required.
Get the full details of a starter template including its HTML content.
Path Parameters
| Parameter | Type | Description |
|---|---|---|
slug | string | Template slug (e.g., "invoice") |
Response
Clone Starter Template
POST https://api.getdocuforge.dev/v1/starter-templates/:slug/clone
Requires authentication. Clone a starter template into your account as a new editable template.
Path Parameters
| Parameter | Type | Description |
|---|---|---|
slug | string | Template slug to clone (e.g., "invoice") |
Example
Response — 201 Created
Errors
| Status | Code | Description |
|---|---|---|
| 401 | UNAUTHORIZED | Invalid or missing API key (clone only) |
| 404 | NOT_FOUND | Starter template not found |
| 429 | RATE_LIMITED | Too many requests |
| 500 | INTERNAL_ERROR | Server error |

