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.
curl --request POST \
--url https://api.case.dev/format/v1/templates \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"type": "caption",
"content": "<string>",
"description": "<string>",
"styles": {},
"variables": [
"<string>"
],
"tags": [
"<string>"
]
}
'{
"id": "tmpl_abc123",
"name": "Legal Brief Caption",
"type": "caption",
"variables": [
"caseNumber",
"court",
"plaintiff",
"defendant"
],
"createdAt": "2024-01-15T10:30:00Z"
}API key starting with sk_case_
Template name
Template type
caption, signature, letterhead, certificate, footer, custom Template content with {{variable}} placeholders
Template description
CSS styles for the template
Template variables (auto-detected if not provided)
Template tags for organization
Was this page helpful?
curl --request POST \
--url https://api.case.dev/format/v1/templates \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"type": "caption",
"content": "<string>",
"description": "<string>",
"styles": {},
"variables": [
"<string>"
],
"tags": [
"<string>"
]
}
'{
"id": "tmpl_abc123",
"name": "Legal Brief Caption",
"type": "caption",
"variables": [
"caseNumber",
"court",
"plaintiff",
"defendant"
],
"createdAt": "2024-01-15T10:30:00Z"
}