Create a new template
Create a new template in your workspace.
Required Fields:
name- Template name
Optional Fields:
initialFields- Array of fields to create with the template. Each field hastype,position, andfieldMeta.
Usage: After creating a template, add default parties via POST /api/v1/templates/:id/parties and tags via POST /api/v1/templates/:id/tags. Then create documents from it using POST /api/v1/documents with templateId.
Authorizations
Personal API key, e.g. Authorization: Bearer sajn_sk_.... Not scope-limited — acts as the issuing user.
Headers
Bearer token for API authentication
Makes retries safe. A retry with the same key and the same request replays the stored response for 24 hours (header Idempotent-Replayed: true); the same key with a different request returns 400.
255Body
Body
Response
200
Unique template identifier
Template name/title
Workspace ID this template belongs to
Organization ID this template belongs to
User ID of the template creator
Whether this is a global template
Date and time when the template was created
Date and time when the template was last updated
Template metadata with default settings

