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

# Templates

> List templates, get details, and generate documents.

The Templates API gives you access to reusable document templates stored in your Lumin Workspace. Templates contain pre-defined fields and layouts, allowing you to generate personalized documents or signature requests without starting from scratch each time.

## Key concepts

* **Template** — a reusable document layout with placeholder fields (e.g., name, date, amount) that can be filled programmatically.
* **Sign Template** (`sign_` prefix), created from the [Lumin Sign site](https://www.luminpdf.com/app/sign), designed for eSignature workflows. Use with [Send Signature Request from Template](/tabs/api-reference/api/signature-requests/send-signature-request-from-template) to create signature requests.
* **AgreementGen Template** (`ag_` prefix), created from the [Lumin AgreementGen site](https://www.luminpdf.com/app/generate), designed for automated document generation via the [Agreements API](/tabs/api-reference/api/agreements/agreements) or embedding in signature requests. Use with [Send Signature Request from Template](/tabs/api-reference/api/signature-requests/send-signature-request-from-template) to create signature requests.
* **PDF Template** (`pdf_` prefix), created from the [Lumin site](https://www.luminpdf.com/app/pdf), designed for generating standalone PDF documents via [Generate Document from Template](/tabs/api-reference/api/templates/generate-document-from-template) or the Documents API.

## Typical workflow

1. **List** available templates in your Workspace to find the template you need.
2. **Get details** for a specific template to retrieve its fields, roles, and collections.
3. **Generate** a document or signature request by filling in the template fields with your data.

## Available endpoints

<CardGroup cols={2}>
  <Card title="List Templates" icon="list" href="/tabs/api-reference/api/templates/list-templates">
    Returns a paginated list of templates in a Lumin Workspace.
  </Card>

  <Card title="Get Template Details" icon="file-lines" href="/tabs/api-reference/api/templates/get-template-details">
    Returns essential template details for a specific template.
  </Card>

  <Card title="Generate Document from Template" icon="file-pdf" href="/tabs/api-reference/api/templates/generate-document-from-template">
    Creates a downloadable PDF document from an existing Lumin template.
  </Card>
</CardGroup>
