Learn Fingerprints¶
Learn fingerprints, replaced by Intuitive AI. Keep existing integrations; do not build new ones.
Every call in this group
- Method
POSTtohttps://{tenant}/api/{Group}/{Action}, also for reads. - Header
TempIdentityToken: <token>. Create tokens in Configuration > Services > API Access. - Success HTTP 200 with
{ "Success": true, "MessageKey": ..., "Data": ... }. Always checkSuccess. - Failure HTTP 412 with
{ "Success": false, "Messages": [ { "MessageKey": ... } ] }. The spec lists failures as 400; the server sends 412. HTTP 401 means the token or its features; HTTP 422 means the body does not match the model. - C# samples Use the generated client
KL.APIClient. Generate the client from your tenant's spec (how). A non-200 status throwsKL.APIClient.Client.ApiException. - Guides API introduction, Authentication
Actions¶
| Action | Summary |
|---|---|
| AddImageAnchorToOcrRule | Add a new Rule to a fingerprint with a single Image Anchor Condition and a single Ocr Action. |
| AddRegexToOcrRule | Add a new Rule to a fingerprint with a single Regex Anchor Condition and a single Ocr Action. |
| AddStaticMetadataActionToDefaultRule | Add a new static metadata action to the existing default rule. |
| AddTrainingFile | Add training file to an existing Fingerprint |
| ChangeFingerprintContentType | Used to update the content type set by the Fingerprint on a match (in the default rule) |
| CreateNewFingerprint | Create a new fingerprint with no Rules except the Default Rule setting content type |
| DeleteFingerprint | Permanently removes a Fingerprint and all ascociated files. |
| ExportFingerprintDefinition | Export a Fingerprint definition. Note to import a Fingerprint requires both a Definition and the exported Fingerprint Files. |
| ExportFingerprintFiles | Export a Fingerprint's definition and training files. Note to import a Fingerprint requires both a Definition and the exported Fingerprint Files. |
| GetAllFingerprintInformation | Retrieve a list of metadata about every Fingerprint. |
| GetFingerprintInformation | Retrieve metadata about a single Fingerprint. |
| ImportFingerprint | Import a Fingerprint's definition and training files. |
| RemoveTrainingFiles | Removes all training files associated with a Fingerprint. This does not remove the model file |
| SetTags | Set the tags for a Fingerprint |
| SyncFingerprintsForProcessing | Cause the processing engine to update its cached list of fingerprints. |
AddImageAnchorToOcrRule¶
Add a new Rule to a fingerprint with a single Image Anchor Condition and a single Ocr Action.
- Token feature Manage Learn Fingerprints
- Content type application/json
- Status legacy. Keep existing integrations; do not build new ones.
Request¶
The configuration for the image anchor and ocr zones.
Schema: ImageAnchorToOcrInteractionDefinition. An object specifying the configuration of a Fingerprint Rule with a single Image Anchor Condition and a single Ocr Action
| Field | Type | Description |
|---|---|---|
FingerprintId |
string (uuid) | ID of the fingerprint |
ForceOverrideLock |
boolean | Allow this operation even if another user has the Fingerprint locked (will destroy the locked user session and cause any unsaved changes to be lost) |
PageNumberZeroBased |
integer | Page Number that the interaction should be created on (zero based) |
ImageAnchorConditionBoundingBox |
object | Bounding Box for the Image Anchor Region with points given as values between 0 and 1 |
OcrActionBoundingBox |
object | Bounding Box for the Ocr Extraction Region with points given as values between 0 and 1 |
OcrActionMetadataField |
string | Metadata Field Name to set when running this Ocr Action |
OcrActionRegexExpression |
string | Optional regex expression to filter the ocr'd text from this Action |
Response¶
Returns a success object.
Envelope: KLApiResponse.
Example¶
using KL.APIClient.Api;
using KL.APIClient.Client;
using KL.APIClient.Model;
var config = new Configuration { BasePath = "https://yourcompany.knowledgelake.io/api" };
config.AddApiKey("TempIdentityToken", Environment.GetEnvironmentVariable("KL_TOKEN"));
var api = new V1LearnAPIApi(config);
var response = await api.V1LearnAPIControllerAddImageAnchorToOcrRuleAsync(new ImageAnchorToOcrInteractionDefinition
{
FingerprintId = Guid.Parse("00000000-0000-0000-0000-000000000000"),
ForceOverrideLock = false,
PageNumberZeroBased = 0,
ImageAnchorConditionBoundingBox = new LearnBoundingBox
{
TopLeft = new LearnPercentagePoint
{
X = 0,
Y = 0,
},
TopRight = new LearnPercentagePoint
{
X = 0,
Y = 0,
},
BottomRight = new LearnPercentagePoint
{
X = 0,
Y = 0,
},
BottomLeft = new LearnPercentagePoint
{
X = 0,
Y = 0,
},
},
OcrActionBoundingBox = new LearnBoundingBox
{
TopLeft = new LearnPercentagePoint
{
X = 0,
Y = 0,
},
TopRight = new LearnPercentagePoint
{
X = 0,
Y = 0,
},
BottomRight = new LearnPercentagePoint
{
X = 0,
Y = 0,
},
BottomLeft = new LearnPercentagePoint
{
X = 0,
Y = 0,
},
},
OcrActionMetadataField = "string",
OcrActionRegexExpression = "string",
});
if (response.Success != true) throw new Exception(response.MessageKey);
Console.WriteLine(response);
curl -sS -X POST "https://yourcompany.knowledgelake.io/api/V1_LearnAPI/AddImageAnchorToOcrRule" \
-H "TempIdentityToken: $KL_TOKEN" \
-H "Content-Type: application/json" \
-d '{"FingerprintId": "00000000-0000-0000-0000-000000000000", "ForceOverrideLock": false, "PageNumberZeroBased": 0, "ImageAnchorConditionBoundingBox": null, "OcrActionBoundingBox": null, "OcrActionMetadataField": "string", "OcrActionRegexExpression": "string"}'
$body = @'
{
"FingerprintId": "00000000-0000-0000-0000-000000000000",
"ForceOverrideLock": false,
"PageNumberZeroBased": 0,
"ImageAnchorConditionBoundingBox": null,
"OcrActionBoundingBox": null,
"OcrActionMetadataField": "string",
"OcrActionRegexExpression": "string"
}
'@
$r = Invoke-RestMethod -Method Post -Uri "https://yourcompany.knowledgelake.io/api/V1_LearnAPI/AddImageAnchorToOcrRule" `
-Headers @{ TempIdentityToken = $env:KL_TOKEN } `
-ContentType "application/json" -Body $body
if (-not $r.Success) { throw $r.MessageKey }
$r.Data
import os, requests
r = requests.post("https://yourcompany.knowledgelake.io/api/V1_LearnAPI/AddImageAnchorToOcrRule",
headers={"TempIdentityToken": os.environ["KL_TOKEN"]},
json={
"FingerprintId": "00000000-0000-0000-0000-000000000000",
"ForceOverrideLock": false,
"PageNumberZeroBased": 0,
"ImageAnchorConditionBoundingBox": null,
"OcrActionBoundingBox": null,
"OcrActionMetadataField": "string",
"OcrActionRegexExpression": "string"
})
data = r.json()
if not data.get("Success"):
raise RuntimeError(data.get("MessageKey") or data.get("Messages"))
print(data["Data"])
const r = await fetch("https://yourcompany.knowledgelake.io/api/V1_LearnAPI/AddImageAnchorToOcrRule", {
method: "POST",
headers: { "TempIdentityToken": process.env.KL_TOKEN, "Content-Type": "application/json" },
body: JSON.stringify({
"FingerprintId": "00000000-0000-0000-0000-000000000000",
"ForceOverrideLock": false,
"PageNumberZeroBased": 0,
"ImageAnchorConditionBoundingBox": null,
"OcrActionBoundingBox": null,
"OcrActionMetadataField": "string",
"OcrActionRegexExpression": "string"
})
});
const data = await r.json();
if (!data.Success) throw new Error(data.MessageKey ?? JSON.stringify(data.Messages));
console.log(data.Data);
AddRegexToOcrRule¶
Add a new Rule to a fingerprint with a single Regex Anchor Condition and a single Ocr Action.
- Token feature Manage Learn Fingerprints
- Content type application/json
- Status legacy. Keep existing integrations; do not build new ones.
Request¶
The configuration for the regex and ocr zones.
Schema: RegexToOcrInteractionDefinition. An object specifying the configuration of a Fingerprint Rule with a single Regex Anchor Condition and a single Ocr Action
| Field | Type | Description |
|---|---|---|
FingerprintId |
string (uuid) | ID of the fingerprint |
ForceOverrideLock |
boolean | Allow this operation even if another user has the Fingerprint locked (will destroy the locked user session and cause any unsaved changes to be lost) |
PageNumberZeroBased |
integer | Page Number that the interaction should be created on (zero based) |
RegexConditionBoundingBox |
object | Bounding Box for the Regex Anchor Region with points given as values between 0 and 1 |
RegexConditionExpression |
string | Regex expression to use as the search criterea for the Regex Anchor Condition |
OcrActionBoundingBox |
object | Bounding Box for the Ocr Extraction Region with points given as values between 0 and 1 |
OcrActionMetadataField |
string | Metadata Field Name to set when running this Ocr Action |
OcrActionRegexExpression |
string | Optional regex expression to filter the ocr'd text from this Action |
Response¶
Returns a success object.
Envelope: KLApiResponse.
Example¶
using KL.APIClient.Api;
using KL.APIClient.Client;
using KL.APIClient.Model;
var config = new Configuration { BasePath = "https://yourcompany.knowledgelake.io/api" };
config.AddApiKey("TempIdentityToken", Environment.GetEnvironmentVariable("KL_TOKEN"));
var api = new V1LearnAPIApi(config);
var response = await api.V1LearnAPIControllerAddRegexToOcrRuleAsync(new RegexToOcrInteractionDefinition
{
FingerprintId = Guid.Parse("00000000-0000-0000-0000-000000000000"),
ForceOverrideLock = false,
PageNumberZeroBased = 0,
RegexConditionBoundingBox = new LearnBoundingBox
{
TopLeft = new LearnPercentagePoint
{
X = 0,
Y = 0,
},
TopRight = new LearnPercentagePoint
{
X = 0,
Y = 0,
},
BottomRight = new LearnPercentagePoint
{
X = 0,
Y = 0,
},
BottomLeft = new LearnPercentagePoint
{
X = 0,
Y = 0,
},
},
RegexConditionExpression = "string",
OcrActionBoundingBox = new LearnBoundingBox
{
TopLeft = new LearnPercentagePoint
{
X = 0,
Y = 0,
},
TopRight = new LearnPercentagePoint
{
X = 0,
Y = 0,
},
BottomRight = new LearnPercentagePoint
{
X = 0,
Y = 0,
},
BottomLeft = new LearnPercentagePoint
{
X = 0,
Y = 0,
},
},
OcrActionMetadataField = "string",
OcrActionRegexExpression = "string",
});
if (response.Success != true) throw new Exception(response.MessageKey);
Console.WriteLine(response);
curl -sS -X POST "https://yourcompany.knowledgelake.io/api/V1_LearnAPI/AddRegexToOcrRule" \
-H "TempIdentityToken: $KL_TOKEN" \
-H "Content-Type: application/json" \
-d '{"FingerprintId": "00000000-0000-0000-0000-000000000000", "ForceOverrideLock": false, "PageNumberZeroBased": 0, "RegexConditionBoundingBox": null, "RegexConditionExpression": "string", "OcrActionBoundingBox": null, "OcrActionMetadataField": "string", "OcrActionRegexExpression": "string"}'
$body = @'
{
"FingerprintId": "00000000-0000-0000-0000-000000000000",
"ForceOverrideLock": false,
"PageNumberZeroBased": 0,
"RegexConditionBoundingBox": null,
"RegexConditionExpression": "string",
"OcrActionBoundingBox": null,
"OcrActionMetadataField": "string",
"OcrActionRegexExpression": "string"
}
'@
$r = Invoke-RestMethod -Method Post -Uri "https://yourcompany.knowledgelake.io/api/V1_LearnAPI/AddRegexToOcrRule" `
-Headers @{ TempIdentityToken = $env:KL_TOKEN } `
-ContentType "application/json" -Body $body
if (-not $r.Success) { throw $r.MessageKey }
$r.Data
import os, requests
r = requests.post("https://yourcompany.knowledgelake.io/api/V1_LearnAPI/AddRegexToOcrRule",
headers={"TempIdentityToken": os.environ["KL_TOKEN"]},
json={
"FingerprintId": "00000000-0000-0000-0000-000000000000",
"ForceOverrideLock": false,
"PageNumberZeroBased": 0,
"RegexConditionBoundingBox": null,
"RegexConditionExpression": "string",
"OcrActionBoundingBox": null,
"OcrActionMetadataField": "string",
"OcrActionRegexExpression": "string"
})
data = r.json()
if not data.get("Success"):
raise RuntimeError(data.get("MessageKey") or data.get("Messages"))
print(data["Data"])
const r = await fetch("https://yourcompany.knowledgelake.io/api/V1_LearnAPI/AddRegexToOcrRule", {
method: "POST",
headers: { "TempIdentityToken": process.env.KL_TOKEN, "Content-Type": "application/json" },
body: JSON.stringify({
"FingerprintId": "00000000-0000-0000-0000-000000000000",
"ForceOverrideLock": false,
"PageNumberZeroBased": 0,
"RegexConditionBoundingBox": null,
"RegexConditionExpression": "string",
"OcrActionBoundingBox": null,
"OcrActionMetadataField": "string",
"OcrActionRegexExpression": "string"
})
});
const data = await r.json();
if (!data.Success) throw new Error(data.MessageKey ?? JSON.stringify(data.Messages));
console.log(data.Data);
AddStaticMetadataActionToDefaultRule¶
Add a new static metadata action to the existing default rule.
- Token feature Manage Learn Fingerprints
- Content type application/json
- Status legacy. Keep existing integrations; do not build new ones.
Request¶
The configuration for the static metadata action.
Schema: StaticMetadataActionDefinition. An object specifying the configuration of a Static Metadata action
| Field | Type | Description |
|---|---|---|
FingerprintId |
string (uuid) | ID of the fingerprint |
ForceOverrideLock |
boolean | Allow this operation even if another user has the Fingerprint locked (will destroy the locked user session and cause any unsaved changes to be lost) |
StaticMetadataActionMetadataField |
string | The metadata field that will be set by this action |
StaticMetadataActionMetadataValue |
string | The value that will be inserted into to the [StaticMetadataActionMetadataField] metadata key |
Response¶
Returns a success object.
Envelope: KLApiResponse.
Example¶
using KL.APIClient.Api;
using KL.APIClient.Client;
using KL.APIClient.Model;
var config = new Configuration { BasePath = "https://yourcompany.knowledgelake.io/api" };
config.AddApiKey("TempIdentityToken", Environment.GetEnvironmentVariable("KL_TOKEN"));
var api = new V1LearnAPIApi(config);
var response = await api.V1LearnAPIControllerAddStaticMetadataActionToDefaultRuleAsync(new StaticMetadataActionDefinition
{
FingerprintId = Guid.Parse("00000000-0000-0000-0000-000000000000"),
ForceOverrideLock = false,
StaticMetadataActionMetadataField = "string",
StaticMetadataActionMetadataValue = "string",
});
if (response.Success != true) throw new Exception(response.MessageKey);
Console.WriteLine(response);
curl -sS -X POST "https://yourcompany.knowledgelake.io/api/V1_LearnAPI/AddStaticMetadataActionToDefaultRule" \
-H "TempIdentityToken: $KL_TOKEN" \
-H "Content-Type: application/json" \
-d '{"FingerprintId": "00000000-0000-0000-0000-000000000000", "ForceOverrideLock": false, "StaticMetadataActionMetadataField": "string", "StaticMetadataActionMetadataValue": "string"}'
$body = @'
{
"FingerprintId": "00000000-0000-0000-0000-000000000000",
"ForceOverrideLock": false,
"StaticMetadataActionMetadataField": "string",
"StaticMetadataActionMetadataValue": "string"
}
'@
$r = Invoke-RestMethod -Method Post -Uri "https://yourcompany.knowledgelake.io/api/V1_LearnAPI/AddStaticMetadataActionToDefaultRule" `
-Headers @{ TempIdentityToken = $env:KL_TOKEN } `
-ContentType "application/json" -Body $body
if (-not $r.Success) { throw $r.MessageKey }
$r.Data
import os, requests
r = requests.post("https://yourcompany.knowledgelake.io/api/V1_LearnAPI/AddStaticMetadataActionToDefaultRule",
headers={"TempIdentityToken": os.environ["KL_TOKEN"]},
json={
"FingerprintId": "00000000-0000-0000-0000-000000000000",
"ForceOverrideLock": false,
"StaticMetadataActionMetadataField": "string",
"StaticMetadataActionMetadataValue": "string"
})
data = r.json()
if not data.get("Success"):
raise RuntimeError(data.get("MessageKey") or data.get("Messages"))
print(data["Data"])
const r = await fetch("https://yourcompany.knowledgelake.io/api/V1_LearnAPI/AddStaticMetadataActionToDefaultRule", {
method: "POST",
headers: { "TempIdentityToken": process.env.KL_TOKEN, "Content-Type": "application/json" },
body: JSON.stringify({
"FingerprintId": "00000000-0000-0000-0000-000000000000",
"ForceOverrideLock": false,
"StaticMetadataActionMetadataField": "string",
"StaticMetadataActionMetadataValue": "string"
})
});
const data = await r.json();
if (!data.Success) throw new Error(data.MessageKey ?? JSON.stringify(data.Messages));
console.log(data.Data);
AddTrainingFile¶
Add training file to an existing Fingerprint
- Token feature Manage Learn Fingerprints
- Content type multipart/form-data
- Status legacy. Keep existing integrations; do not build new ones.
Request¶
Form fields (multipart/form-data):
| Field | Type | Required | Description |
|---|---|---|---|
FingerprintTrainingImageFile |
file | No | The image file to use as the model file for the Fingerprint (.tiff and .pdf only) |
ModifyTrainingFiles |
string | No | Guid of the content type id to set for documents that match this fingerprint. EXAMPLE: |
Response¶
Returns a success object.
Envelope: KLApiResponse.
Example¶
using KL.APIClient.Api;
using KL.APIClient.Client;
using KL.APIClient.Model;
var config = new Configuration { BasePath = "https://yourcompany.knowledgelake.io/api" };
config.AddApiKey("TempIdentityToken", Environment.GetEnvironmentVariable("KL_TOKEN"));
var api = new V1LearnAPIApi(config);
var response = await api.V1LearnAPIControllerAddTrainingFileAsync(File.OpenRead("document.pdf"), "string");
if (response.Success != true) throw new Exception(response.MessageKey);
Console.WriteLine(response);
ChangeFingerprintContentType¶
Used to update the content type set by the Fingerprint on a match (in the default rule)
- Token feature Manage Learn Fingerprints
- Content type application/json
- Status legacy. Keep existing integrations; do not build new ones.
Request¶
Object representing the Fingerprint id, and the mapping to the new content type.
Schema: ChangeFingerprintContentTypeParameter. An object containing the Id of a new Content Type Id
| Field | Type | Description |
|---|---|---|
FingerprintId |
string (uuid) | ID of the fingerprint |
ContentTypeMapping |
object | Mapping defining the translation to the new content type |
ForceOverrideLock |
boolean | Allow this operation even if another user has the Fingerprint locked (will destroy the locked user session and cause any unsaved changes to be lost) |
Response¶
Returns a success object.
Envelope: KLApiResponse.
Example¶
using KL.APIClient.Api;
using KL.APIClient.Client;
using KL.APIClient.Model;
var config = new Configuration { BasePath = "https://yourcompany.knowledgelake.io/api" };
config.AddApiKey("TempIdentityToken", Environment.GetEnvironmentVariable("KL_TOKEN"));
var api = new V1LearnAPIApi(config);
var response = await api.V1LearnAPIControllerChangeFingerprintContentTypeAsync(new ChangeFingerprintContentTypeParameter
{
FingerprintId = Guid.Parse("00000000-0000-0000-0000-000000000000"),
ContentTypeMapping = new ContentTypeMapping
{
NewContentTypeId = Guid.Parse("00000000-0000-0000-0000-000000000000"),
},
ForceOverrideLock = false,
});
if (response.Success != true) throw new Exception(response.MessageKey);
Console.WriteLine(response);
$body = @'
{
"FingerprintId": "00000000-0000-0000-0000-000000000000",
"ContentTypeMapping": null,
"ForceOverrideLock": false
}
'@
$r = Invoke-RestMethod -Method Post -Uri "https://yourcompany.knowledgelake.io/api/V1_LearnAPI/ChangeFingerprintContentType" `
-Headers @{ TempIdentityToken = $env:KL_TOKEN } `
-ContentType "application/json" -Body $body
if (-not $r.Success) { throw $r.MessageKey }
$r.Data
import os, requests
r = requests.post("https://yourcompany.knowledgelake.io/api/V1_LearnAPI/ChangeFingerprintContentType",
headers={"TempIdentityToken": os.environ["KL_TOKEN"]},
json={
"FingerprintId": "00000000-0000-0000-0000-000000000000",
"ContentTypeMapping": null,
"ForceOverrideLock": false
})
data = r.json()
if not data.get("Success"):
raise RuntimeError(data.get("MessageKey") or data.get("Messages"))
print(data["Data"])
const r = await fetch("https://yourcompany.knowledgelake.io/api/V1_LearnAPI/ChangeFingerprintContentType", {
method: "POST",
headers: { "TempIdentityToken": process.env.KL_TOKEN, "Content-Type": "application/json" },
body: JSON.stringify({
"FingerprintId": "00000000-0000-0000-0000-000000000000",
"ContentTypeMapping": null,
"ForceOverrideLock": false
})
});
const data = await r.json();
if (!data.Success) throw new Error(data.MessageKey ?? JSON.stringify(data.Messages));
console.log(data.Data);
CreateNewFingerprint¶
Create a new fingerprint with no Rules except the Default Rule setting content type
- Token feature Manage Learn Fingerprints
- Content type multipart/form-data
- Status legacy. Keep existing integrations; do not build new ones.
Request¶
Form fields (multipart/form-data):
| Field | Type | Required | Description |
|---|---|---|---|
FingerprintModelImageFile |
file | No | The image file to use as the model file for the Fingerprint (.tiff/.tif and .pdf only) |
AddFingerprintInformation |
string | No | Object representing the Fingerprint information to add on creation |
Response¶
Returns a LearnFingerprintInformation object with metadata about a fingerprint.
Envelope: DataResponseLearnFingerprintInformation. Data is object.
{
"Success": true,
"MessageKey": null,
"Data": {
"Id": "00000000-0000-0000-0000-000000000000",
"Name": "Test Fingerprint 1",
"Tags": [
"fingerprintType1",
"fingerprintType2"
],
"LastModified": "2026-10-07T20:19:08.9205529+00:00",
"Modifier": "appsuser2_00000000-0000-0000-0000-000000000000",
"Creator": "appsuser1_00000000-0000-0000-0000-000000000000",
"Locked": false,
"LockedTime": null,
"LockedBy": "",
"ContentTypeId": "00000000-0000-0000-0000-000000000000",
"ContentTypeName": null
}
}
Example¶
using KL.APIClient.Api;
using KL.APIClient.Client;
using KL.APIClient.Model;
var config = new Configuration { BasePath = "https://yourcompany.knowledgelake.io/api" };
config.AddApiKey("TempIdentityToken", Environment.GetEnvironmentVariable("KL_TOKEN"));
var api = new V1LearnAPIApi(config);
var response = await api.V1LearnAPIControllerCreateNewFingerprintAsync(File.OpenRead("document.pdf"), "string");
if (response.Success != true) throw new Exception(response.MessageKey);
Console.WriteLine(response.Data);
DeleteFingerprint¶
Permanently removes a Fingerprint and all ascociated files.
- Token feature Manage Learn Fingerprints
- Content type application/json
- Status legacy. Keep existing integrations; do not build new ones.
Request¶
The id of the Fingerprint and a lock override.
Schema: ModifyTrainingFilesParameter. An object specifying the Fingerprint to remove training files from
| Field | Type | Description |
|---|---|---|
FingerprintId |
string (uuid) | ID of the fingerprint |
ForceOverrideLock |
boolean | Allow this operation even if another user has the Fingerprint locked (will destroy the locked user session and cause any unsaved changes to be lost) |
FileName |
string | Name of the training file, including extension |
mimeType |
string | MIME type of the training file |
Response¶
Returns a success object.
Envelope: KLApiResponse.
Example¶
using KL.APIClient.Api;
using KL.APIClient.Client;
using KL.APIClient.Model;
var config = new Configuration { BasePath = "https://yourcompany.knowledgelake.io/api" };
config.AddApiKey("TempIdentityToken", Environment.GetEnvironmentVariable("KL_TOKEN"));
var api = new V1LearnAPIApi(config);
var response = await api.V1LearnAPIControllerDeleteFingerprintAsync(new ModifyTrainingFilesParameter
{
FingerprintId = Guid.Parse("00000000-0000-0000-0000-000000000000"),
ForceOverrideLock = false,
FileName = "string",
MimeType = "string",
});
if (response.Success != true) throw new Exception(response.MessageKey);
Console.WriteLine(response);
curl -sS -X POST "https://yourcompany.knowledgelake.io/api/V1_LearnAPI/DeleteFingerprint" \
-H "TempIdentityToken: $KL_TOKEN" \
-H "Content-Type: application/json" \
-d '{"FingerprintId": "00000000-0000-0000-0000-000000000000", "ForceOverrideLock": false, "FileName": "string", "mimeType": "string"}'
$body = @'
{
"FingerprintId": "00000000-0000-0000-0000-000000000000",
"ForceOverrideLock": false,
"FileName": "string",
"mimeType": "string"
}
'@
$r = Invoke-RestMethod -Method Post -Uri "https://yourcompany.knowledgelake.io/api/V1_LearnAPI/DeleteFingerprint" `
-Headers @{ TempIdentityToken = $env:KL_TOKEN } `
-ContentType "application/json" -Body $body
if (-not $r.Success) { throw $r.MessageKey }
$r.Data
import os, requests
r = requests.post("https://yourcompany.knowledgelake.io/api/V1_LearnAPI/DeleteFingerprint",
headers={"TempIdentityToken": os.environ["KL_TOKEN"]},
json={
"FingerprintId": "00000000-0000-0000-0000-000000000000",
"ForceOverrideLock": false,
"FileName": "string",
"mimeType": "string"
})
data = r.json()
if not data.get("Success"):
raise RuntimeError(data.get("MessageKey") or data.get("Messages"))
print(data["Data"])
const r = await fetch("https://yourcompany.knowledgelake.io/api/V1_LearnAPI/DeleteFingerprint", {
method: "POST",
headers: { "TempIdentityToken": process.env.KL_TOKEN, "Content-Type": "application/json" },
body: JSON.stringify({
"FingerprintId": "00000000-0000-0000-0000-000000000000",
"ForceOverrideLock": false,
"FileName": "string",
"mimeType": "string"
})
});
const data = await r.json();
if (!data.Success) throw new Error(data.MessageKey ?? JSON.stringify(data.Messages));
console.log(data.Data);
ExportFingerprintDefinition¶
Export a Fingerprint definition. Note to import a Fingerprint requires both a Definition and the exported Fingerprint Files.
- Token feature Manage Learn Fingerprints
- Content type application/json
- Status legacy. Keep existing integrations; do not build new ones.
Request¶
The id of the Fingerprint.
Schema: FingerprintIdParameter. An object containing the Id of a Fingerprint
| Field | Type | Description |
|---|---|---|
FingerprintId |
string (uuid) | ID of the fingerprint |
Response¶
Returns the fingerprint definition file (.klfd)
Returns file.
Example¶
using KL.APIClient.Api;
using KL.APIClient.Client;
using KL.APIClient.Model;
var config = new Configuration { BasePath = "https://yourcompany.knowledgelake.io/api" };
config.AddApiKey("TempIdentityToken", Environment.GetEnvironmentVariable("KL_TOKEN"));
var api = new V1LearnAPIApi(config);
using var stream = await api.V1LearnAPIControllerExportFingerprintDefinitionAsync(new FingerprintIdParameter
{
FingerprintId = Guid.Parse("00000000-0000-0000-0000-000000000000"),
});
using var output = File.Create("download.bin");
await stream.CopyToAsync(output);
$body = @'
{
"FingerprintId": "00000000-0000-0000-0000-000000000000"
}
'@
$r = Invoke-RestMethod -Method Post -Uri "https://yourcompany.knowledgelake.io/api/V1_LearnAPI/ExportFingerprintDefinition" `
-Headers @{ TempIdentityToken = $env:KL_TOKEN } `
-ContentType "application/json" -Body $body
if (-not $r.Success) { throw $r.MessageKey }
$r.Data
import os, requests
r = requests.post("https://yourcompany.knowledgelake.io/api/V1_LearnAPI/ExportFingerprintDefinition",
headers={"TempIdentityToken": os.environ["KL_TOKEN"]},
json={
"FingerprintId": "00000000-0000-0000-0000-000000000000"
})
data = r.json()
if not data.get("Success"):
raise RuntimeError(data.get("MessageKey") or data.get("Messages"))
print(data["Data"])
const r = await fetch("https://yourcompany.knowledgelake.io/api/V1_LearnAPI/ExportFingerprintDefinition", {
method: "POST",
headers: { "TempIdentityToken": process.env.KL_TOKEN, "Content-Type": "application/json" },
body: JSON.stringify({
"FingerprintId": "00000000-0000-0000-0000-000000000000"
})
});
const data = await r.json();
if (!data.Success) throw new Error(data.MessageKey ?? JSON.stringify(data.Messages));
console.log(data.Data);
ExportFingerprintFiles¶
Export a Fingerprint's definition and training files. Note to import a Fingerprint requires both a Definition and the exported Fingerprint Files.
- Token feature Manage Learn Fingerprints
- Content type application/json
- Status legacy. Keep existing integrations; do not build new ones.
Request¶
The id of the Fingerprint.
Schema: FingerprintIdParameter. An object containing the Id of a Fingerprint
| Field | Type | Description |
|---|---|---|
FingerprintId |
string (uuid) | ID of the fingerprint |
Response¶
Returns the fingerprint files archive file (.klff)
Returns file.
Example¶
using KL.APIClient.Api;
using KL.APIClient.Client;
using KL.APIClient.Model;
var config = new Configuration { BasePath = "https://yourcompany.knowledgelake.io/api" };
config.AddApiKey("TempIdentityToken", Environment.GetEnvironmentVariable("KL_TOKEN"));
var api = new V1LearnAPIApi(config);
using var stream = await api.V1LearnAPIControllerExportFingerprintFilesAsync(new FingerprintIdParameter
{
FingerprintId = Guid.Parse("00000000-0000-0000-0000-000000000000"),
});
using var output = File.Create("download.bin");
await stream.CopyToAsync(output);
$body = @'
{
"FingerprintId": "00000000-0000-0000-0000-000000000000"
}
'@
$r = Invoke-RestMethod -Method Post -Uri "https://yourcompany.knowledgelake.io/api/V1_LearnAPI/ExportFingerprintFiles" `
-Headers @{ TempIdentityToken = $env:KL_TOKEN } `
-ContentType "application/json" -Body $body
if (-not $r.Success) { throw $r.MessageKey }
$r.Data
import os, requests
r = requests.post("https://yourcompany.knowledgelake.io/api/V1_LearnAPI/ExportFingerprintFiles",
headers={"TempIdentityToken": os.environ["KL_TOKEN"]},
json={
"FingerprintId": "00000000-0000-0000-0000-000000000000"
})
data = r.json()
if not data.get("Success"):
raise RuntimeError(data.get("MessageKey") or data.get("Messages"))
print(data["Data"])
const r = await fetch("https://yourcompany.knowledgelake.io/api/V1_LearnAPI/ExportFingerprintFiles", {
method: "POST",
headers: { "TempIdentityToken": process.env.KL_TOKEN, "Content-Type": "application/json" },
body: JSON.stringify({
"FingerprintId": "00000000-0000-0000-0000-000000000000"
})
});
const data = await r.json();
if (!data.Success) throw new Error(data.MessageKey ?? JSON.stringify(data.Messages));
console.log(data.Data);
GetAllFingerprintInformation¶
Retrieve a list of metadata about every Fingerprint.
- Token feature Manage Learn Fingerprints
- Content type application/json
- Status legacy. Keep existing integrations; do not build new ones.
Request¶
No body. Send {} or an empty body.
Response¶
Returns a list of LearnFingerprintInformation objects with metadata about every fingerprint.
Envelope: DataResponseLearnFingerprintInformationList. Data is array of LearnFingerprintInformation.
{
"Success": true,
"MessageKey": null,
"Data": [
{
"Id": "00000000-0000-0000-0000-000000000000",
"Name": "Test Fingerprint 1",
"Tags": [
"fingerprintType1",
"fingerprintType2"
],
"LastModified": "2026-10-07T20:19:08.9204469+00:00",
"Modifier": "appsuser2_00000000-0000-0000-0000-000000000000",
"Creator": "appsuser1_00000000-0000-0000-0000-000000000000",
"Locked": false,
"LockedTime": null,
"LockedBy": "",
"ContentTypeId": "00000000-0000-0000-0000-000000000000",
"ContentTypeName": null
}
]
}
Example¶
using KL.APIClient.Api;
using KL.APIClient.Client;
using KL.APIClient.Model;
var config = new Configuration { BasePath = "https://yourcompany.knowledgelake.io/api" };
config.AddApiKey("TempIdentityToken", Environment.GetEnvironmentVariable("KL_TOKEN"));
var api = new V1LearnAPIApi(config);
var response = await api.V1LearnAPIControllerGetAllFingerprintInformationAsync();
if (response.Success != true) throw new Exception(response.MessageKey);
Console.WriteLine(response.Data);
import os, requests
r = requests.post("https://yourcompany.knowledgelake.io/api/V1_LearnAPI/GetAllFingerprintInformation",
headers={"TempIdentityToken": os.environ["KL_TOKEN"]},
json={})
data = r.json()
if not data.get("Success"):
raise RuntimeError(data.get("MessageKey") or data.get("Messages"))
print(data["Data"])
const r = await fetch("https://yourcompany.knowledgelake.io/api/V1_LearnAPI/GetAllFingerprintInformation", {
method: "POST",
headers: { "TempIdentityToken": process.env.KL_TOKEN, "Content-Type": "application/json" },
body: JSON.stringify({})
});
const data = await r.json();
if (!data.Success) throw new Error(data.MessageKey ?? JSON.stringify(data.Messages));
console.log(data.Data);
GetFingerprintInformation¶
Retrieve metadata about a single Fingerprint.
- Token feature Manage Learn Fingerprints
- Content type application/json
- Status legacy. Keep existing integrations; do not build new ones.
Request¶
The id of the Fingerprint.
Schema: FingerprintIdParameter. An object containing the Id of a Fingerprint
| Field | Type | Description |
|---|---|---|
FingerprintId |
string (uuid) | ID of the fingerprint |
Response¶
Returns a LearnFingerprintInformation object with metadata about a fingerprint.
Envelope: DataResponseLearnFingerprintInformation. Data is object.
{
"Success": true,
"MessageKey": null,
"Data": {
"Id": "00000000-0000-0000-0000-000000000000",
"Name": "Test Fingerprint 1",
"Tags": [
"fingerprintType1",
"fingerprintType2"
],
"LastModified": "2026-10-07T20:19:08.9204228+00:00",
"Modifier": "appsuser2_00000000-0000-0000-0000-000000000000",
"Creator": "appsuser1_00000000-0000-0000-0000-000000000000",
"Locked": false,
"LockedTime": null,
"LockedBy": "",
"ContentTypeId": "00000000-0000-0000-0000-000000000000",
"ContentTypeName": null
}
}
Example¶
using KL.APIClient.Api;
using KL.APIClient.Client;
using KL.APIClient.Model;
var config = new Configuration { BasePath = "https://yourcompany.knowledgelake.io/api" };
config.AddApiKey("TempIdentityToken", Environment.GetEnvironmentVariable("KL_TOKEN"));
var api = new V1LearnAPIApi(config);
var response = await api.V1LearnAPIControllerGetFingerprintInformationAsync(new FingerprintIdParameter
{
FingerprintId = Guid.Parse("00000000-0000-0000-0000-000000000000"),
});
if (response.Success != true) throw new Exception(response.MessageKey);
Console.WriteLine(response.Data);
$body = @'
{
"FingerprintId": "00000000-0000-0000-0000-000000000000"
}
'@
$r = Invoke-RestMethod -Method Post -Uri "https://yourcompany.knowledgelake.io/api/V1_LearnAPI/GetFingerprintInformation" `
-Headers @{ TempIdentityToken = $env:KL_TOKEN } `
-ContentType "application/json" -Body $body
if (-not $r.Success) { throw $r.MessageKey }
$r.Data
import os, requests
r = requests.post("https://yourcompany.knowledgelake.io/api/V1_LearnAPI/GetFingerprintInformation",
headers={"TempIdentityToken": os.environ["KL_TOKEN"]},
json={
"FingerprintId": "00000000-0000-0000-0000-000000000000"
})
data = r.json()
if not data.get("Success"):
raise RuntimeError(data.get("MessageKey") or data.get("Messages"))
print(data["Data"])
const r = await fetch("https://yourcompany.knowledgelake.io/api/V1_LearnAPI/GetFingerprintInformation", {
method: "POST",
headers: { "TempIdentityToken": process.env.KL_TOKEN, "Content-Type": "application/json" },
body: JSON.stringify({
"FingerprintId": "00000000-0000-0000-0000-000000000000"
})
});
const data = await r.json();
if (!data.Success) throw new Error(data.MessageKey ?? JSON.stringify(data.Messages));
console.log(data.Data);
ImportFingerprint¶
Import a Fingerprint's definition and training files.
- Token feature Manage Learn Fingerprints
- Content type multipart/form-data
- Status legacy. Keep existing integrations; do not build new ones.
Request¶
Form fields (multipart/form-data):
| Field | Type | Required | Description |
|---|---|---|---|
FingerprintDefinitionFile |
file | No | The fingerprint definition file (.klfd) |
FingerprintFilesFile |
file | No | The fingerprint files archive (.klff) |
ContentTypeMapping |
string | No | An JSON-stringified object used to map content types during import. EXAMPLE: |
Response¶
Returns a LearnFingerprintInformation object with metadata about a fingerprint.
Envelope: DataResponseLearnFingerprintInformation. Data is object.
{
"Success": true,
"MessageKey": null,
"Data": {
"Id": "00000000-0000-0000-0000-000000000000",
"Name": "Test Fingerprint 1",
"Tags": [
"fingerprintType1",
"fingerprintType2"
],
"LastModified": "2026-10-07T20:19:08.9205183+00:00",
"Modifier": "appsuser2_00000000-0000-0000-0000-000000000000",
"Creator": "appsuser1_00000000-0000-0000-0000-000000000000",
"Locked": false,
"LockedTime": null,
"LockedBy": "",
"ContentTypeId": "00000000-0000-0000-0000-000000000000",
"ContentTypeName": null
}
}
Example¶
using KL.APIClient.Api;
using KL.APIClient.Client;
using KL.APIClient.Model;
var config = new Configuration { BasePath = "https://yourcompany.knowledgelake.io/api" };
config.AddApiKey("TempIdentityToken", Environment.GetEnvironmentVariable("KL_TOKEN"));
var api = new V1LearnAPIApi(config);
var response = await api.V1LearnAPIControllerImportFingerprintAsync(File.OpenRead("document.pdf"), File.OpenRead("document.pdf"), "string");
if (response.Success != true) throw new Exception(response.MessageKey);
Console.WriteLine(response.Data);
RemoveTrainingFiles¶
Removes all training files associated with a Fingerprint. This does not remove the model file
- Token feature Manage Learn Fingerprints
- Content type application/json
- Status legacy. Keep existing integrations; do not build new ones.
Request¶
The id of the Fingerprint and a lock override.
Schema: ModifyTrainingFilesParameter. An object specifying the Fingerprint to remove training files from
| Field | Type | Description |
|---|---|---|
FingerprintId |
string (uuid) | ID of the fingerprint |
ForceOverrideLock |
boolean | Allow this operation even if another user has the Fingerprint locked (will destroy the locked user session and cause any unsaved changes to be lost) |
FileName |
string | Name of the training file, including extension |
mimeType |
string | MIME type of the training file |
Response¶
Returns a success object.
Envelope: KLApiResponse.
Example¶
using KL.APIClient.Api;
using KL.APIClient.Client;
using KL.APIClient.Model;
var config = new Configuration { BasePath = "https://yourcompany.knowledgelake.io/api" };
config.AddApiKey("TempIdentityToken", Environment.GetEnvironmentVariable("KL_TOKEN"));
var api = new V1LearnAPIApi(config);
var response = await api.V1LearnAPIControllerRemoveTrainingFilesAsync(new ModifyTrainingFilesParameter
{
FingerprintId = Guid.Parse("00000000-0000-0000-0000-000000000000"),
ForceOverrideLock = false,
FileName = "string",
MimeType = "string",
});
if (response.Success != true) throw new Exception(response.MessageKey);
Console.WriteLine(response);
curl -sS -X POST "https://yourcompany.knowledgelake.io/api/V1_LearnAPI/RemoveTrainingFiles" \
-H "TempIdentityToken: $KL_TOKEN" \
-H "Content-Type: application/json" \
-d '{"FingerprintId": "00000000-0000-0000-0000-000000000000", "ForceOverrideLock": false, "FileName": "string", "mimeType": "string"}'
$body = @'
{
"FingerprintId": "00000000-0000-0000-0000-000000000000",
"ForceOverrideLock": false,
"FileName": "string",
"mimeType": "string"
}
'@
$r = Invoke-RestMethod -Method Post -Uri "https://yourcompany.knowledgelake.io/api/V1_LearnAPI/RemoveTrainingFiles" `
-Headers @{ TempIdentityToken = $env:KL_TOKEN } `
-ContentType "application/json" -Body $body
if (-not $r.Success) { throw $r.MessageKey }
$r.Data
import os, requests
r = requests.post("https://yourcompany.knowledgelake.io/api/V1_LearnAPI/RemoveTrainingFiles",
headers={"TempIdentityToken": os.environ["KL_TOKEN"]},
json={
"FingerprintId": "00000000-0000-0000-0000-000000000000",
"ForceOverrideLock": false,
"FileName": "string",
"mimeType": "string"
})
data = r.json()
if not data.get("Success"):
raise RuntimeError(data.get("MessageKey") or data.get("Messages"))
print(data["Data"])
const r = await fetch("https://yourcompany.knowledgelake.io/api/V1_LearnAPI/RemoveTrainingFiles", {
method: "POST",
headers: { "TempIdentityToken": process.env.KL_TOKEN, "Content-Type": "application/json" },
body: JSON.stringify({
"FingerprintId": "00000000-0000-0000-0000-000000000000",
"ForceOverrideLock": false,
"FileName": "string",
"mimeType": "string"
})
});
const data = await r.json();
if (!data.Success) throw new Error(data.MessageKey ?? JSON.stringify(data.Messages));
console.log(data.Data);
SetTags¶
Set the tags for a Fingerprint
- Token feature Manage Learn Fingerprints
- Content type application/json
- Status legacy. Keep existing integrations; do not build new ones.
Request¶
Object representing the tags and id of the Fingerprint to apply them to.
Schema: SetFingerprintTagsParameter. An object specifying tags to apply to a Fingerprint and the Fingerprint to apply it to
| Field | Type | Description |
|---|---|---|
FingerprintId |
string (uuid) | ID of the fingerprint |
Tags |
array of string | Tags to apply to the Fingerprint |
ForceOverrideLock |
boolean | Allow this operation even if another user has the Fingerprint locked (will destroy the locked user session and cause any unsaved changes to be lost) |
Response¶
Returns a success object.
Envelope: KLApiResponse.
Example¶
using KL.APIClient.Api;
using KL.APIClient.Client;
using KL.APIClient.Model;
var config = new Configuration { BasePath = "https://yourcompany.knowledgelake.io/api" };
config.AddApiKey("TempIdentityToken", Environment.GetEnvironmentVariable("KL_TOKEN"));
var api = new V1LearnAPIApi(config);
var response = await api.V1LearnAPIControllerSetTagsAsync(new SetFingerprintTagsParameter
{
FingerprintId = Guid.Parse("00000000-0000-0000-0000-000000000000"),
Tags = new List<string> { "string" },
ForceOverrideLock = false,
});
if (response.Success != true) throw new Exception(response.MessageKey);
Console.WriteLine(response);
$body = @'
{
"FingerprintId": "00000000-0000-0000-0000-000000000000",
"Tags": [
"string"
],
"ForceOverrideLock": false
}
'@
$r = Invoke-RestMethod -Method Post -Uri "https://yourcompany.knowledgelake.io/api/V1_LearnAPI/SetTags" `
-Headers @{ TempIdentityToken = $env:KL_TOKEN } `
-ContentType "application/json" -Body $body
if (-not $r.Success) { throw $r.MessageKey }
$r.Data
import os, requests
r = requests.post("https://yourcompany.knowledgelake.io/api/V1_LearnAPI/SetTags",
headers={"TempIdentityToken": os.environ["KL_TOKEN"]},
json={
"FingerprintId": "00000000-0000-0000-0000-000000000000",
"Tags": [
"string"
],
"ForceOverrideLock": false
})
data = r.json()
if not data.get("Success"):
raise RuntimeError(data.get("MessageKey") or data.get("Messages"))
print(data["Data"])
const r = await fetch("https://yourcompany.knowledgelake.io/api/V1_LearnAPI/SetTags", {
method: "POST",
headers: { "TempIdentityToken": process.env.KL_TOKEN, "Content-Type": "application/json" },
body: JSON.stringify({
"FingerprintId": "00000000-0000-0000-0000-000000000000",
"Tags": [
"string"
],
"ForceOverrideLock": false
})
});
const data = await r.json();
if (!data.Success) throw new Error(data.MessageKey ?? JSON.stringify(data.Messages));
console.log(data.Data);
SyncFingerprintsForProcessing¶
Cause the processing engine to update its cached list of fingerprints.
- Token feature Manage Learn Fingerprints
- Content type application/json
- Status legacy. Keep existing integrations; do not build new ones.
Request¶
No body. Send {} or an empty body.
Response¶
Returns a success object.
Envelope: KLApiResponse.
Example¶
using KL.APIClient.Api;
using KL.APIClient.Client;
using KL.APIClient.Model;
var config = new Configuration { BasePath = "https://yourcompany.knowledgelake.io/api" };
config.AddApiKey("TempIdentityToken", Environment.GetEnvironmentVariable("KL_TOKEN"));
var api = new V1LearnAPIApi(config);
var response = await api.V1LearnAPIControllerSyncFingerprintsForProcessingAsync();
if (response.Success != true) throw new Exception(response.MessageKey);
Console.WriteLine(response);
import os, requests
r = requests.post("https://yourcompany.knowledgelake.io/api/V1_LearnAPI/SyncFingerprintsForProcessing",
headers={"TempIdentityToken": os.environ["KL_TOKEN"]},
json={})
data = r.json()
if not data.get("Success"):
raise RuntimeError(data.get("MessageKey") or data.get("Messages"))
print(data["Data"])
const r = await fetch("https://yourcompany.knowledgelake.io/api/V1_LearnAPI/SyncFingerprintsForProcessing", {
method: "POST",
headers: { "TempIdentityToken": process.env.KL_TOKEN, "Content-Type": "application/json" },
body: JSON.stringify({})
});
const data = await r.json();
if (!data.Success) throw new Error(data.MessageKey ?? JSON.stringify(data.Messages));
console.log(data.Data);