Korala AI Catalog API
The Catalog API from Korala AI — 3 operation(s) for catalog.
Operations 3
POST
/api/v1/catalog/forms/{versionId}/create-template
Create an org template from a catalog form version
#
The Catalog API from Korala AI — 3 operation(s) for catalog.
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-catalog-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 Catalog API
description: Public API for Korala document signing service
version: 1.0.0
contact: {}
servers:
- url: https://api.korala.ai
description: Production
tags:
- name: Catalog
paths:
/api/v1/catalog/forms:
get:
operationId: CatalogController_listForms_v1
parameters: []
responses:
'200':
description: ''
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/CatalogFormSummaryDto'
security:
- api-key: []
- bearer: []
summary: List standard forms available to clone
tags:
- Catalog
/api/v1/catalog/forms/{versionId}/fields:
get:
description: 'The signer roles and fields a clone of this version will have, so you can prepare your data before creating a template. Each field gives the canonical name you set values against, which role fills it, and any length or pattern it enforces. Positions and the PDF''s internal AcroForm names are not returned: you fill by canonical name.'
operationId: CatalogController_getFormFields_v1
parameters:
- name: versionId
required: true
in: path
schema:
type: string
responses:
'200':
description: ''
content:
application/json:
schema:
$ref: '#/components/schemas/CatalogFormFieldsDto'
'400':
description: Malformed UUID in path parameter (`versionId`).
'404':
description: No published version with that ID
security:
- api-key: []
- bearer: []
summary: List the fields of a catalog form version
tags:
- Catalog
/api/v1/catalog/forms/{versionId}/create-template:
post:
description: Copies the curated seed PDF into your organization and creates a template with the form's mapped fields and signer roles. Creating a template is free; usage is metered when you generate documents. Use the returned template with the normal generate/sign flow.
operationId: CatalogController_createTemplate_v1
parameters:
- name: versionId
required: true
in: path
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/CreateTemplateFromCatalogDto'
responses:
'201':
description: ''
content:
application/json:
schema:
$ref: '#/components/schemas/TemplateDto'
'400':
description: Malformed UUID in path parameter (`versionId`).
security:
- api-key: []
- bearer: []
summary: Create an org template from a catalog form version
tags:
- Catalog
components:
schemas:
GoogleProvenanceDto:
type: object
properties:
fileId:
type: string
name:
type: string
url:
type: string
mimeType:
type: string
driveVersion:
type: string
docsRevision:
type: string
tabCount:
type: number
skipEmptyPages:
type: boolean
description: Whether conversion suppresses automatic blank parity pages. Absent on older imports, which retain their original pagination.
fetchedAt:
type: string
locallyReplacedAt:
type: string
description: First local file replacement. When present, this provenance describes the original import, not the current template file. Google variable validation no longer applies; the saved pagination policy is retained.
sourceSha256:
type: string
description: SHA-256 of the stored source, after DOCX ZIP normalization.
providerSourceSha256:
type: string
description: SHA-256 of the original bytes downloaded from Google.
pdfSha256:
type: string
dialect:
type: string
enum:
- korala-simple-v1
required:
- fileId
- name
- url
- mimeType
- driveVersion
- fetchedAt
- sourceSha256
- pdfSha256
- dialect
DetectedMergeFieldDto:
type: object
properties:
name:
type: string
example: client_name
occurrences:
type: number
example: 3
required:
- name
- occurrences
TemplateType:
type: string
enum:
- pdf
- docx
- markdown
CatalogFormSummaryDto:
type: object
properties:
id:
type: string
slug:
type: string
example: irs-w9
title:
type: string
jurisdiction:
type:
- string
- 'null'
description:
type:
- string
- 'null'
publishedRevision:
type: string
description: The published version currently available for cloning
publishedVersionId:
type: string
description: ID of the published version to clone from
fieldCount:
type: number
description: Fields mapped on the published version.
signerRoleCount:
type: number
description: Signer roles the published version defines.
sourceUrl:
type:
- string
- 'null'
example: https://www.irs.gov/pub/irs-pdf/fw9.pdf
description: The publisher's own URL this version's PDF was taken from. Every version published from now on records one, so this is null only for a form published before provenance became a publish requirement.
sourceSha256:
type:
- string
- 'null'
description: SHA-256 of the exact PDF bytes Korala ships for this version. Download the form from sourceUrl, hash it, and compare to verify the catalog against its government source.
required:
- id
- slug
- title
- publishedRevision
- publishedVersionId
- fieldCount
- signerRoleCount
FieldType:
type: string
enum:
- signature
- initials
- date
- text
- checkbox
- dropdown
- radio
CatalogFormFieldDto:
type: object
properties:
canonicalName:
type: string
example: us_taxpayer_id
description: Merge-field name on the cloned template. This is the name you set values against.
label:
type: string
example: U.S. taxpayer identification number (required)
signerRole:
type: string
example: Beneficial Owner
description: Which signer role fills this field
fieldType:
allOf:
- $ref: '#/components/schemas/FieldType'
pageNumber:
type: number
description: 1-based page of the form
required:
type: boolean
options:
description: 'Dropdown fields only: the accepted values'
type: array
items:
type: string
groupKey:
type: string
description: Checkboxes that answer one question together, e.g. the thirteen entity-type boxes on a W-8. Set at most one per group.
groupRequired:
type: boolean
description: True when the group needs exactly one box set
maxLength:
type: number
description: Character limit the field enforces, usually a comb field with one printed box per character
inputMask:
type: string
example: '###-##-####'
description: 'Input mask where # represents one digit'
validationPattern:
type: string
example: ^\d{2}-?\d{7}$|^\d{3}-?\d{2}-?\d{4}$
description: Regex the value must match. Validate against it before you send, rather than finding out when a signer is stuck on the form.
validationMessage:
type: string
example: Enter a 9-digit SSN, ITIN, or EIN
description: What the signer is told when validationPattern rejects
dateFormat:
type: string
example: MM-DD-YYYY
description: 'Date fields only: the format the form prints beside its date boxes, and the format the field auto-fills in'
required:
- canonicalName
- label
- signerRole
- fieldType
- pageNumber
- required
TemplateDto:
type: object
properties:
collectionIds:
description: Collection memberships; omitted on lists unless includeCollections=true.
type: array
items:
type: string
format: uuid
markdown:
allOf:
- $ref: '#/components/schemas/MarkdownTemplateSourceDto'
googleSource:
description: Original Google import provenance, available on detail responses.
allOf:
- $ref: '#/components/schemas/GoogleProvenanceDto'
id:
type: string
name:
type: string
description:
type:
- string
- 'null'
templateType:
default: pdf
allOf:
- $ref: '#/components/schemas/TemplateType'
baseFileUrl:
type: string
isActive:
type: boolean
sandbox:
type: boolean
description: Created with a test-mode API key (sandbox template)
formFieldsDetected:
type:
- number
- 'null'
example: 23
description: How many interactive form fields the base PDF ships with, counted when the upload was confirmed. 0 for a flat PDF, null when the file was never scanned.
autoImportFormFields:
type: boolean
description: Whether those embedded fields were placed as template fields automatically when the upload was confirmed.
detectedMergeFields:
description: Auto-detected input fields from DOCX or Markdown (null for PDF templates)
type:
- array
- 'null'
items:
$ref: '#/components/schemas/DetectedMergeFieldDto'
catalogFormSlug:
type:
- string
- 'null'
description: Standard Forms catalog slug this was cloned from, e.g. "irs-w9" (null for uploaded templates)
catalogFormTitle:
type:
- string
- 'null'
description: Catalog form title at clone time, e.g. "IRS Form W-9 …"
catalogRevision:
type:
- string
- 'null'
description: Catalog form revision at clone time, e.g. "Rev. March 2024"
catalogVersionId:
type:
- string
- 'null'
description: ID of the catalog form version this was cloned from
fieldCount:
type: number
description: Fields the template places. On template lists only.
signerRoleCount:
type: number
description: Signer roles the template defines. On template lists only.
createdAt:
format: date-time
type: string
updatedAt:
format: date-time
type: string
required:
- id
- name
- templateType
- baseFileUrl
- isActive
- sandbox
- autoImportFormFields
- createdAt
- updatedAt
MarkdownTemplateSourceDto:
type: object
properties:
source:
type: string
sampleData:
type: object
additionalProperties: true
revision:
type: number
formatVersion:
type: number
enum:
- 1
pageSize:
type: string
enum:
- A4
- Letter
pageCount:
type: number
description: Pages the source renders to with its sample data, as of the last save. Absent on templates saved before this was recorded.
required:
- source
- sampleData
- revision
- formatVersion
- pageSize
CreateTemplateFromCatalogDto:
type: object
properties:
sandbox:
type: boolean
default: false
description: Dashboard mode. API keys always use their authenticated mode.
collectionIds:
maxItems: 100
description: Explicit destination collections. Omission or [] leaves the resource unassigned.
type: array
items:
type: string
format: uuid
name:
type: string
example: W-9 for Acme investors
description: Name for the created template (defaults to the form title)
CatalogFormFieldsDto:
type: object
properties:
versionId:
type: string
description: ID of the version these fields belong to
revision:
type: string
example: Rev. October 2021
signerRoles:
example:
- Beneficial Owner
description: Signer roles the clone will create, in order
type: array
items:
type: string
fields:
type: array
items:
$ref: '#/components/schemas/CatalogFormFieldDto'
required:
- versionId
- revision
- signerRoles
- fields
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