v1

latestOpenAPI 3.0.3Proprietary2026-07-13182655.4 KB
Contract Templates

Create a contract template

Creates a new contract template for the authenticated organization. Templates support dynamic placeholders using Twig-like syntax.

post/staffsign/contract_templates

Request body

namestring required

Template name

contentstring required

Template markup in HTML with dynamic placeholders. Supports {{ employer.firstName }}, {{ employee.email }} etc. Twig control structures ({% if %}, {% for %}) are not allowed.

descriptionstring nullable

Optional description of the template's purpose or use case

renderLogoboolean

Whether to render the organization logo in the contract PDF header. Defaults to true.

Response

Template created successfully

idstring uuid
namestring
descriptionstring nullable
contentstring

Template markup with dynamic placeholders (Twig syntax)

renderLogoboolean

Whether the organization logo is rendered in the contract PDF header.

isSystemTemplateboolean

Whether this is a platform-provided system template (read-only)

organizationIdstring uuid nullable

Organization that owns this template. Null for system templates.

statusstring

Localized status label

statusKey'contract_template_status.draft' | 'contract_template_status.active' | 'contract_template_status.archived'

Contract template status identifier

createdAtstring date-time
lastModifiedstring date-time
usedPlaceholdersstring[] nullable

List of all placeholder names used in the template content

requiredFieldsstring[] nullable

List of participant data fields required by this template's placeholders