# Korala AI Templates API

**Canonical:** https://apis.io/apis/korala-ai/korala-ai-templates-api/  
**Provider:** Korala AI — https://apis.io/providers/korala-ai/  
**Base URL:** https://api.korala.ai  
**Documentation:** https://docs.korala.ai/api-reference

Korala AI Templates API is one of 20 APIs that [Korala AI](https://apis.io/providers/korala-ai/) publishes on the [APIs.io](https://apis.io/) network, described by a machine-readable OpenAPI specification. This API exposes 1 JSON Schema definition. Tagged areas include Templates. The published artifact set on APIs.io includes an OpenAPI specification and 1 JSON Schema.

The Templates API from Korala AI — 24 operation(s) for templates.

## Operations (31)

| Method | Path | Summary |
|---|---|---|
| POST | `/api/v1/templates/markdown/preview` | Validate Markdown/Liquid and preview a PDF without saving or sending |
| POST | `/api/v1/templates/markdown` | Create a Markdown template and its source-defined signer roles and fields |
| PATCH | `/api/v1/templates/{id}/markdown` | Save a new Markdown source revision and refresh the PDF and signing fields |
| POST | `/api/v1/templates/upload-url` | Get presigned URL for template upload |
| POST | `/api/v1/templates/{id}/confirm` | Confirm template upload and set metadata |
| POST | `/api/v1/templates/{id}/replace-file` | Get presigned URL to replace template file |
| POST | `/api/v1/templates/{id}/confirm-replace` | Confirm template file replacement |
| POST | `/api/v1/templates/{id}/duplicate` | Duplicate a template |
| GET | `/api/v1/templates` | List all templates |
| GET | `/api/v1/templates/{id}/versions/{versionId}` | Retrieve an immutable approved PDF or DOCX snapshot and its source |
| GET | `/api/v1/templates/{id}` | Get template with details |
| PATCH | `/api/v1/templates/{id}` | Update template metadata |
| DELETE | `/api/v1/templates/{id}` | Delete a template |
| GET | `/api/v1/templates/{id}/docx-preparation` | Open a DOCX source for text-based template preparation |
| POST | `/api/v1/templates/{id}/docx-preparation` | Validate and atomically publish a prepared DOCX and its bookmark-based fields |
| GET | `/api/v1/templates/{id}/merge-fields` | Get detected merge fields for a DOCX template |
| POST | `/api/v1/templates/{id}/signer-roles` | Add a signer role to the template |
| GET | `/api/v1/templates/{id}/signer-roles` | Get all signer roles for a template |
| PATCH | `/api/v1/templates/{id}/signer-roles/{roleId}` | Update a signer role |
| DELETE | `/api/v1/templates/{id}/signer-roles/{roleId}` | Delete a signer role |
| POST | `/api/v1/templates/{id}/fields` | Add a field to the template |
| GET | `/api/v1/templates/{id}/fields` | Get all fields for a template |
| GET | `/api/v1/templates/{id}/bookmarks` | List Word bookmarks available for bookmark placement |
| GET | `/api/v1/templates/{id}/form-fields` | List embedded AcroForm fields of the base PDF |
| GET | `/api/v1/templates/{id}/form-fields/parties` | How the template fields divide between the parties it names |
| POST | `/api/v1/templates/{id}/form-fields/parties/assign` | Move each party's fields to the role that fills them |
| POST | `/api/v1/templates/{id}/form-fields/import` | Create template fields from the base PDF's embedded form |
| PATCH | `/api/v1/templates/{id}/fields/{fieldId}` | Update a template field |
| DELETE | `/api/v1/templates/{id}/fields/{fieldId}` | Delete a template field |
| POST | `/api/v1/templates/{id}/create-document` | Create a document from this template |
| POST | `/api/v1/templates/{id}/generate` | Generate a PDF from template with filled values (no signing) |

## Machine-readable artifacts (2)

- **OpenAPI** — https://artifacts.apis.io/korala-ai/openapi/korala-ai-templates-api-openapi.yml
- **JSONSchema** — https://artifacts.apis.io/korala-ai/json-schema/korala-ai-create-template-field-dto-schema.json

## Other Korala AI APIs (12)

- [Korala AI Billing API](https://apis.io/apis/korala-ai/korala-ai-billing-api/)
- [Korala AI Catalog API](https://apis.io/apis/korala-ai/korala-ai-catalog-api/)
- [Korala AI Collections API](https://apis.io/apis/korala-ai/korala-ai-collections-api/)
- [Korala AI Documents API](https://apis.io/apis/korala-ai/korala-ai-documents-api/)
- [Korala AI Field Detection API](https://apis.io/apis/korala-ai/korala-ai-field-detection-api/)
- [Korala AI Google Workspace API](https://apis.io/apis/korala-ai/korala-ai-google-workspace-api/)
- [Korala AI Public Workflows API](https://apis.io/apis/korala-ai/korala-ai-public-workflows-api/)
- [Korala AI Risk API](https://apis.io/apis/korala-ai/korala-ai-risk-api/)
- [Korala AI Screening API](https://apis.io/apis/korala-ai/korala-ai-screening-api/)
- [Korala AI Session Access API](https://apis.io/apis/korala-ai/korala-ai-session-access-api/)
- [Korala AI Session Configurations API](https://apis.io/apis/korala-ai/korala-ai-session-configurations-api/)
- [Korala AI Sessions API](https://apis.io/apis/korala-ai/korala-ai-sessions-api/)

## Tags

Templates

## Use this from code or an agent

- **REST, no key:** `GET https://apis.io/api/v1/providers/korala-ai` returns the provider's full profile as JSON.
- **MCP:** `https://apis.io/mcp` (Streamable HTTP) — search the catalog, read any provider, compare providers, check agent readiness.
- **Free API key** for catalog-wide search, ratings and comparisons: sign in with GitHub, Google or LinkedIn at https://apis.io/developer/account/ (plans: https://apis.io/developer/plans/).

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/korala-ai/korala-ai-templates-api/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/korala-ai/.
