Documentation Index
Fetch the complete documentation index at: https://docs.fintelite.ai/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Templates define which fields to extract and how to extract them from documents processed by the Document Extraction service. When you attach a template to a verification, AnyCheck uses it to structure the output into the exact fields your application needs.Custom templates
Define your own schema to extract any fields from any document type.
Prebuilt templates
Ready-to-use templates for common Indonesian documents maintained by AnyCheck.
Auto-schema generation
Describe what you want to extract in plain text and the schema is generated automatically.
Reusable across verifications
Create a template once and attach it to any number of Document Extraction verifications.
Template Types
Custom Templates
Custom templates are created and maintained by your organization. You define the schema: the fields to extract, their types, and any special extraction instructions.Prebuilt Templates
Prebuilt templates are provided and maintained by AnyCheck for common document types (e.g., KTP, NPWP, SIUP). They are read-only and cannot be modified.Creating a Custom Template
Option 1: Define the schema manually
Specify the fields you want to extract and their types:instruction field lets you give the AI model context about where to focus on the document. The config field controls which AI model and parser to use. See Template Configuration below.
Option 2: Use auto-schema generation
Describe in plain text what you want to extract, and AnyCheck generates the schema automatically:POST /templates call.
Using a Template in a Verification
When creating a Document Extraction verification, pass the template ID in the configuration:Finding the Right Template
Use the form endpoint to browse available templates in a dropdown-friendly format (includes both custom and prebuilt):Managing Custom Templates
Update a template
You can update the name, description, instruction, schema, or config of a custom template. Prebuilt templates cannot be modified.Delete a template
Template Schema Reference
Theschema object follows a JSON Schema-like format. Each property supports:
| Field | Required | Description |
|---|---|---|
type | Yes | Data type: string, number, boolean, array, object |
description | Recommended | What this field represents; helps guide extraction |
required | No | Mark in the root required array if the field must be present |
The
instruction field at the template level provides context to the AI about the document as a whole (e.g., “this is a two-page document; all amounts are in IDR”). Per-field descriptions guide extraction of individual values.Template Configuration
Theconfig object in POST /templates controls how extraction is performed. You can use a preset or configure individual settings.
Preset modes (recommended)
The simplest way to control quality vs. speed:preset_mode | Speed | Accuracy | Cost | Best for |
|---|---|---|---|---|
FAST | Fastest | Good | Low | High-volume, simple documents |
BALANCED | Fast | Better | Medium | Most use cases |
PRECISE | Slower | Best | High | Complex or dense documents |
BUDGET | Fast | Good | Lowest | Cost-sensitive workloads |
Individual settings
For finer control, configure each setting separately:| Field | Values | Default | Description |
|---|---|---|---|
extraction_mode | FREYA, FREYA_PRO, ODIN, ODIN_PRO, NEXUS, NEXUS_PRO | FREYA | AI model used for extraction |
parser_mode | LITE, PLUS, PRO | LITE | Document parsing quality before AI extraction |
use_parser | true, false | false | Parse document structure before sending to AI |
use_chunk | true, false | false | Split large documents into chunks (requires use_parser: true) |
enable_citations | true, false | true | Include source location in extracted values |
When both
preset_mode and individual settings are provided, the preset applies first and individual settings override it.