# Preview Template

Render a template with sample data and return the resulting HTML.
Useful for previewing how a template will look before activating it.

Endpoint: POST /templates/{templateId}/preview
Version: 1.0.0
Security: OAuth2

## Security:

  - `OAuth2` (unknown)
    oauth2

## Path parameters:

  - `templateId` (string, required)
    Template identifier

## Request fields (application/json):

  - `entityId` (integer, required)
    Merchant/tenant identifier for tenant isolation

  - `sampleData` (object)
    Key-value data to populate the template variables.
If omitted, the service generates representative sample data
based on the template type.

## Response 200:

  - `200` (unknown)
    Rendered HTML preview

