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.
Documentation Index
Fetch the complete documentation index at: https://docs.sajn.se/llms.txt
Use this file to discover all available pages before exploring further.
Headers
Bearer token for API authentication
Body
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

