Create a new template
2026-09, which is deprecated and stops working on October 1, 2027. To move your integration, see Upgrading to 2026-10.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.
AuthorizationBearer <token>Personal API key, e.g. Authorization: Bearer sajn_sk_.... Not scope-limited — acts as the issuing user.
Idempotency-Key?stringMakes 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.
length <= 255Body
application/json- body
Create template request
name*stringTemplate name/title
1 <= lengthinitialFields*array<>Initial fields to create with the template
[]200
application/json- response
id*stringUnique template identifier
name*stringTemplate name/title
workspaceId*|Workspace ID this template belongs to
organizationId*|Organization ID this template belongs to
createdById*stringUser ID of the template creator
isGlobal*booleanWhether this is a global template
templateMeta?|Template metadata with default settings
createdAt*stringDate and time when the template was created
date-timeupdatedAt*stringDate and time when the template was last updated
date-timecurl -X POST 'https://app.sajn.se/api/v1/templates' \ -H 'authorization: string' \ -H 'Content-Type: application/json' \ -d '{ "name": "string", "initialFields": []}'{ "id": "string", "name": "string", "workspaceId": "string", "organizationId": "string", "createdById": "string", "isGlobal": true, "templateMeta": { "signingOrder": "PARALLEL", "forceReadFullDocument": true, "showChatToSigners": true, "preferredLanguage": "sv", "value": "string", "signableAfterExpired": true, "sendPlainTextEmailOnly": true, "allowDelegation": true, "reminderIntervalDays": "string", "responsibleUserId": "string", "accessVerification": "NONE", "internalRecipients": [ "string" ], "visibility": "EVERYONE", "selectedUserIds": [ "string" ], "ssnDisplayMode": "FULL", "sameDeviceSigning": true, "documentCategoryId": "string" }, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z"}Was this page helpful?