---
title: "Create format template"
method: POST
path: "/format/v1/templates"
tags: ["Format"]
---

# Create format template

`POST /format/v1/templates`

Create a new format template for document formatting. Templates support variables using `{{variable}}` syntax and can be used for captions, signatures, letterheads, certificates, footers, or custom formatting needs.

## Request body

- object
  - `name` string, required — Template name
  - `description` string — Template description
  - `type` 'caption' | 'signature' | 'letterhead' | 'certificate' | 'footer' | 'custom', required — Template type
  - `content` string, required — Template content with {{variable}} placeholders
  - `styles` object — CSS styles for the template
  - `variables` string[] — Template variables (auto-detected if not provided)
  - `tags` string[] — Template tags for organization

## Response `200`

Template created successfully

- object
  - `id` string — Template ID
  - `name` string — Template name
  - `type` string — Template type
  - `variables` string[] — Detected template variables
  - `createdAt` string, date-time — Creation timestamp

## Other responses

- `400` — Invalid request - missing required fields or invalid type
- `401` — Authentication required - invalid or missing API key

---

[API](https://skmtc.net/casemark/apis/case-dev-api.md) · [All operations](https://skmtc.net/casemark/apis/case-dev-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/casemark/case-dev-api/revisions/5b7e64e6d6f9/schema)
