Korala AI Template Preparation API
The Template Preparation API from Korala AI — 1 operation(s) for template preparation.
The Template Preparation API from Korala AI — 1 operation(s) for template preparation.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/korala-ai:korala-ai-template-preparation-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Korala Public Template Preparation API
description: Public API for Korala document signing service
version: 1.0.0
contact: {}
servers:
- url: https://api.korala.ai
description: Production
tags:
- name: Template Preparation
paths:
/api/v1/template-preparation-sessions:
post:
description: Call from your server. Without templateId, creates an inactive PDF template with configured signer roles. With templateId, opens a scoped editing draft of an existing PDF in the key mode and publishes to the original ID on save. Browser access can only prepare that template. In review mode your backend supplies the locked field definitions. API credentials must never reach the browser.
operationId: TemplatePreparationSessionsController_create_v1
parameters: []
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/CreateTemplatePreparationDto'
responses:
'201':
description: ''
content:
application/json:
schema:
$ref: '#/components/schemas/TemplatePreparationSessionDto'
security:
- api-key: []
summary: Create a one-hour, single-template preparation session
tags:
- Template Preparation
components:
schemas:
CreateSignerRoleDto:
type: object
properties:
name:
type: string
example: Client
signingOrder:
type: number
example: 1
required:
- name
DocxVariableCatalogEntryDto:
type: object
properties:
key:
type: string
name:
type: string
description:
type: string
type:
type: string
enum:
- string
- number
- date
- boolean
example:
oneOf:
- type: string
- type: number
- type: boolean
required:
type: boolean
required:
- key
- type
- required
TemplatePreparationMode:
type: string
enum:
- full
- review
FieldType:
type: string
enum:
- signature
- initials
- date
- text
- checkbox
- dropdown
- radio
TemplatePreparationSessionDto:
type: object
properties:
token:
type: string
templateId:
type: string
embedUrl:
type: string
expiresAt:
type: string
required:
- token
- templateId
- embedUrl
- expiresAt
CreateTemplatePreparationDto:
type: object
properties:
templateType:
type: string
enum:
- pdf
- docx
default: pdf
variableCatalog:
description: Allowed variable catalog for DOCX preparation. Entries contain key, name, description, type, example, and required.
type: array
items:
$ref: '#/components/schemas/DocxVariableCatalogEntryDto'
signerRoles:
description: Backend-defined signer roles. Names must be unique. When reopening, names and signing orders must match the existing template.
type: array
items:
$ref: '#/components/schemas/CreateSignerRoleDto'
fields:
description: Required in review mode. Your backend defines the immutable fields; the browser can adjust geometry and remove explicitly removable repeated text placements.
type: array
items:
$ref: '#/components/schemas/TemplatePreparationFieldDto'
mode:
default: full
description: Review locks the fields supplied by your backend; users can move and resize them, and remove repeated text placements when the backend permits it.
allOf:
- $ref: '#/components/schemas/TemplatePreparationMode'
templateId:
type: string
description: Existing uploaded PDF template to edit. Must have signer roles and match the API key mode.
name:
type: string
example: Agreement
description: Required for a new template; optional when editing templateId.
roleName:
type: string
default: Signer
parentOrigin:
type: string
example: https://app.example.com
description: Exact origin of the embedding application.
required:
- parentOrigin
TemplatePreparationFieldDto:
type: object
properties:
valueKey:
type: string
description: Links repeated text fields for the same signer. Signer edits or clears one occurrence to update every field with this valueKey. Independent of the merge variable used for prefills.
options:
example:
- CA
- NY
description: Allowed values for dropdown fields. The signer picks one; fills with a value outside this list are rejected.
type: array
items:
type: string
groupKey:
type: string
example: fed_tax_class
description: Semantic group key. Checkbox members sharing a groupKey are mutually exclusive (checking one clears the others) even with distinct PDF fill targets — e.g. a W-9 federal tax classification.
groupRequired:
type: boolean
example: true
description: Require at least one member of this field's group to be selected before signing can complete.
removable:
type: boolean
default: false
description: Allow removing this repeated text placement. Requires a valueKey shared by multiple definitions for the same signer. At least one placement and one required placement (when configured) must remain.
fieldType:
allOf:
- $ref: '#/components/schemas/FieldType'
signerRoleName:
type: string
description: Owning role name. Required when the session has multiple signer roles.
label:
type: string
mergeFieldName:
type: string
description: Unique stable field key chosen by your backend.
required:
type: boolean
signingDate:
type: boolean
description: Automatically use the signing date. Date fields only.
required:
- fieldType
- label
- mergeFieldName
- required
securitySchemes:
preparation-token:
scheme: bearer
bearerFormat: JWT
type: http
description: One-hour, single-template preparation session token. Not a dashboard or OAuth token.
api-key:
type: apiKey
in: header
name: X-API-Key
timestamp:
type: apiKey
in: header
name: X-Timestamp
signature:
type: apiKey
in: header
name: X-Signature