Korala AI Template Field Detection API

The Template Field Detection API from Korala AI — 6 operation(s) for template field detection.

GitHub OpenAPI

Operations 6

POST /api/v1/templates/{templateId}/field-detection Trigger AI field detection for a template #
GET /api/v1/templates/{templateId}/field-detection/status Get field detection job status #
GET /api/v1/templates/{templateId}/field-detection/proposed Get proposed fields from AI detection #
PATCH /api/v1/templates/{templateId}/field-detection/proposed/{fieldId}/accept Accept a proposed field #
PATCH /api/v1/templates/{templateId}/field-detection/proposed/{fieldId}/reject Reject a proposed field #
POST /api/v1/templates/{templateId}/field-detection/proposed/accept-all Accept all proposed fields above confidence threshold #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/korala-ai:korala-ai-template-field-detection-api"
All apis
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.

Get an API 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 Specification

korala-ai-template-field-detection-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Korala Public Template Field Detection 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 Field Detection
paths:
  /api/v1/templates/{templateId}/field-detection:
    post:
      operationId: TemplateFieldDetectionController_triggerDetection_v1
      parameters:
      - name: templateId
        required: true
        in: path
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TriggerFieldDetectionDto'
      responses:
        '201':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FieldDetectionJobDto'
        '400':
          description: Malformed UUID in path parameter (`templateId`).
      security:
      - api-key: []
      - bearer: []
      summary: Trigger AI field detection for a template
      tags:
      - Template Field Detection
  /api/v1/templates/{templateId}/field-detection/status:
    get:
      operationId: TemplateFieldDetectionController_getStatus_v1
      parameters:
      - name: templateId
        required: true
        in: path
        schema:
          type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FieldDetectionJobDto'
        '400':
          description: Malformed UUID in path parameter (`templateId`).
      security:
      - api-key: []
      - bearer: []
      summary: Get field detection job status
      tags:
      - Template Field Detection
  /api/v1/templates/{templateId}/field-detection/proposed:
    get:
      operationId: TemplateFieldDetectionController_getProposedFields_v1
      parameters:
      - name: templateId
        required: true
        in: path
        schema:
          type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ProposedFieldDto'
        '400':
          description: Malformed UUID in path parameter (`templateId`).
      security:
      - api-key: []
      - bearer: []
      summary: Get proposed fields from AI detection
      tags:
      - Template Field Detection
  /api/v1/templates/{templateId}/field-detection/proposed/{fieldId}/accept:
    patch:
      operationId: TemplateFieldDetectionController_acceptField_v1
      parameters:
      - name: templateId
        required: true
        in: path
        schema:
          type: string
      - name: fieldId
        required: true
        in: path
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AcceptTemplateProposedFieldDto'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProposedFieldDto'
        '400':
          description: Malformed UUID in path parameter (`templateId`, `fieldId`).
      security:
      - api-key: []
      - bearer: []
      summary: Accept a proposed field
      tags:
      - Template Field Detection
  /api/v1/templates/{templateId}/field-detection/proposed/{fieldId}/reject:
    patch:
      operationId: TemplateFieldDetectionController_rejectField_v1
      parameters:
      - name: templateId
        required: true
        in: path
        schema:
          type: string
      - name: fieldId
        required: true
        in: path
        schema:
          type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProposedFieldDto'
        '400':
          description: Malformed UUID in path parameter (`templateId`, `fieldId`).
      security:
      - api-key: []
      - bearer: []
      summary: Reject a proposed field
      tags:
      - Template Field Detection
  /api/v1/templates/{templateId}/field-detection/proposed/accept-all:
    post:
      operationId: TemplateFieldDetectionController_acceptAllFields_v1
      parameters:
      - name: templateId
        required: true
        in: path
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AcceptAllTemplateProposedFieldsDto'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AcceptAllResultDto'
        '400':
          description: Malformed UUID in path parameter (`templateId`).
      security:
      - api-key: []
      - bearer: []
      summary: Accept all proposed fields above confidence threshold
      tags:
      - Template Field Detection
components:
  schemas:
    AcceptAllResultDto:
      type: object
      properties:
        accepted:
          type: number
          description: Number of fields accepted
        rejected:
          type: number
          description: Number of fields rejected
      required:
      - accepted
      - rejected
    AcceptTemplateProposedFieldDto:
      type: object
      properties:
        signerRoleId:
          type: string
          description: Signer role ID to assign the field to
        required:
          type: boolean
          description: Whether the signer must fill the accepted field(s). Defaults to true; radio-group options are always optional.
        groupRequired:
          type: boolean
          description: Mark the accepted option(s) as a choose-one group requiring at least one selection before signing.
    ProposedFieldDto:
      type: object
      properties:
        id:
          type: string
          description: Proposed field ID
        documentId:
          type: string
          description: Document ID (if detecting for a document)
        templateId:
          type: string
          description: Template ID (if detecting for a template)
        jobId:
          type: string
          description: Parent job ID
        fieldType:
          description: Type of field detected
          allOf:
          - $ref: '#/components/schemas/FieldType'
        pageNumber:
          type: number
          description: Page number where field was detected
        xPosition:
          type: number
          description: X position in PDF coordinates
        yPosition:
          type: number
          description: Y position in PDF coordinates
        width:
          type: number
          description: Field width in PDF coordinates
        height:
          type: number
          description: Field height in PDF coordinates
        confidence:
          type: number
          description: Confidence score 0-100
        detectionReason:
          type: string
          description: Reason for detection
        contextText:
          type: string
          description: Surrounding text context
        acroFieldName:
          type: string
          description: Embedded AcroForm field this proposal came from (fillable PDFs). Accepted fields keep the link, so values fill the PDF form field at completion.
        acroOptionValue:
          type: string
          description: 'For radio-group AcroForm fields: the option this proposal selects.'
        options:
          description: Allowed values for dropdown fields
          type: array
          items:
            type: string
        maxLength:
          type: number
          description: Character limit read from the embedded form field (comb boxes)
        groupKey:
          type: string
          description: Semantic group key (radio options share the AcroForm field name); members are mutually exclusive when accepted
        fontSize:
          type: number
          example: 9
          description: Point size the embedded form field draws its value at; absent when the form auto-sizes the text
        textColor:
          type: string
          example: '#000080'
          description: 'Text color of the embedded form field, as #rrggbb'
        textAlign:
          description: Horizontal alignment of the value inside the field box
          allOf:
          - $ref: '#/components/schemas/TextAlign'
        fontFamily:
          type: string
          example: Helvetica-Bold
          description: Base font the embedded form field draws its value in
        multiline:
          type: boolean
          description: Whether the embedded form field is multiline
        status:
          description: Review status of the proposed field
          allOf:
          - $ref: '#/components/schemas/ProposedFieldStatus'
        acceptedFieldId:
          type: string
          description: ID of the accepted field (if accepted)
        reviewedAt:
          format: date-time
          type: string
          description: When the field was reviewed
        createdAt:
          format: date-time
          type: string
          description: Creation timestamp
        updatedAt:
          format: date-time
          type: string
          description: Last update timestamp
      required:
      - id
      - jobId
      - fieldType
      - pageNumber
      - xPosition
      - yPosition
      - width
      - height
      - confidence
      - status
      - createdAt
      - updatedAt
    TriggerFieldDetectionDto:
      type: object
      properties:
        minConfidence:
          type: number
          description: Minimum confidence threshold (0-100)
    FieldType:
      type: string
      enum:
      - signature
      - initials
      - date
      - text
      - checkbox
      - dropdown
      - radio
    AcceptAllTemplateProposedFieldsDto:
      type: object
      properties:
        signerRoleId:
          type: string
          description: Signer role ID to assign all fields to
        minConfidence:
          type: number
          description: Minimum confidence to accept (defaults to 70)
        required:
          type: boolean
          description: Whether the signer must fill the accepted field(s). Defaults to true; radio-group options are always optional.
        groupRequired:
          type: boolean
          description: Mark the accepted option(s) as a choose-one group requiring at least one selection before signing.
    TextAlign:
      type: string
      enum:
      - left
      - center
      - right
      description: Horizontal alignment of the value inside the field box
    ProposedFieldStatus:
      type: string
      enum:
      - pending
      - accepted
      - rejected
      - modified
      description: Review status of the proposed field
    FieldDetectionJobDto:
      type: object
      properties:
        id:
          type: string
          description: Job ID
        documentId:
          type: string
          description: Document ID (if detecting for a document)
        templateId:
          type: string
          description: Template ID (if detecting for a template)
        status:
          description: Current status of the field detection job
          allOf:
          - $ref: '#/components/schemas/FieldDetectionStatus'
        ocrProcessingMs:
          type: number
          description: OCR processing time in milliseconds
        aiProcessingMs:
          type: number
          description: AI processing time in milliseconds
        proposedFieldCount:
          type: number
          description: Number of proposed fields detected
        errorMessage:
          type: string
          description: Error message if job failed
        createdAt:
          format: date-time
          type: string
          description: Job creation timestamp
        updatedAt:
          format: date-time
          type: string
          description: Job last update timestamp
      required:
      - id
      - status
      - createdAt
      - updatedAt
    FieldDetectionStatus:
      type: string
      enum:
      - queued
      - ocr_processing
      - ai_processing
      - completed
      - failed
      description: Current status of the field detection job
  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