---
title: "Create a case template"
method: POST
path: "/v1/cases/templates"
tags: ["Cases"]
---

# Create a case template

`POST /v1/cases/templates`

## Request

- Base URL: `https://api.talonic.com`
- URL: `https://api.talonic.com/v1/cases/templates`
- Auth: HTTP bearer

Create a template. Cases whose documents match its expected types
report completeness against it. Requires the `cases:write` scope; the
person behind the credential must also be allowed to change workspace
settings (`insufficient_role` otherwise). Send an `Idempotency-Key` to
make a retry safe.

## Headers

- `Idempotency-Key` string

## Request body

- CaseTemplateCreate
  - `name` string, required
  - `description` string
  - `expected_document_types` CaseTemplateDocumentType[], required
    - `doc_type_name` string, required
    - `doc_type_id` string, uuid
    - `required` boolean: A case is incomplete without this type.
  - `link_key_requirements` CaseTemplateLinkKey[]
    - `canonical_name` string, required
    - `category` string, required

## Response `201`

The created template.

- CaseTemplate
  - `id` string, uuid
  - `name` string
  - `description` string, nullable
  - `expected_document_types` CaseTemplateDocumentType[]
    - `doc_type_name` string, required
    - `doc_type_id` string, uuid
    - `required` boolean: A case is incomplete without this type.
  - `link_key_requirements` CaseTemplateLinkKey[]
    - `canonical_name` string, required
    - `category` string, required
  - `match_threshold` number
  - `auto_discovered` boolean
  - `created_at` string, date-time
  - `updated_at` string, date-time

## Other responses

- `400`: The request is invalid.
- `401`: Missing or invalid API key.
- `403`: The API key does not have the required scope.
- `409`: The request conflicts with the current resource state.
- `422`: The document could not be processed.
- `429`: Daily rate limit exceeded.

## Changes

- **2026-11-26** `622d429de7ea`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/talonic/apis/talonic-api/changes/v1/cases/templates/post.md)

---

[API](https://skmtc.dev/talonic/apis/talonic-api.md) - [All operations](https://skmtc.dev/talonic/apis/talonic-api/llms.txt) - [OpenAPI document](https://skmtc.dev/talonic/apis/talonic-api/revisions/9f6d53e2ab5e?raw)
