> ## Documentation Index
> Fetch the complete documentation index at: https://docs.fileloom.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Templates

> Create, manage, and organize PDF templates in the Fileloom dashboard.

The **Templates** section lets you create reusable PDF templates with HTML, CSS, and dynamic Handlebars variables.

<Frame caption="Templates list showing all templates in your workspace">
  <img src="https://mintcdn.com/migambiglobal/-mvqbnb14Byx-nAt/images/dashboard/templates.png?fit=max&auto=format&n=-mvqbnb14Byx-nAt&q=85&s=e972214a64b3e2897f325ccc536c2cef" alt="Templates" width="1912" height="920" data-path="images/dashboard/templates.png" />
</Frame>

## Creating a Template

<Steps>
  <Step title="Click Create Template">
    From the Templates page, click the "Create Template" button.
  </Step>

  <Step title="Design in Editor">
    Use the template editor to write HTML, CSS, and configure settings.
  </Step>

  <Step title="Test with Data">
    Enter sample JSON in the Test Data tab and preview your PDF.
  </Step>

  <Step title="Publish">
    Click "Publish" to make the template available via API.
  </Step>
</Steps>

See [Template Editor](/template-editor/overview) for detailed editing instructions.

## Using Templates via API

Reference a template by its ID in API requests:

```bash theme={null}
curl -X POST https://api.fileloom.io/v1/pdf/generate \
  -H "X-API-Key: fl_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "templateId": "tpl_abc123xyz",
    "templateData": {
      "customerName": "Acme Corp",
      "invoiceNumber": "INV-2024-001"
    }
  }'
```

Find the template ID in the template editor header or templates list.

## Template Actions

| Action        | Description                   |
| ------------- | ----------------------------- |
| **Edit**      | Open in template editor       |
| **Duplicate** | Create a copy of the template |
| **Delete**    | Remove template permanently   |

## Starter Templates

Fileloom provides 50+ professionally designed starter templates:

| Category     | Templates Available                   |
| ------------ | ------------------------------------- |
| Invoices     | Standard, Detailed, Freelance, SaaS   |
| Receipts     | Retail, E-commerce, Donation          |
| Reports      | Analytics, Financial, Performance     |
| Certificates | Achievement, Course Completion, Award |
| Tickets      | Event, Concert, Boarding Pass         |

See [Starter Templates](/templates/starter-templates) for the complete list.
