Processing¶
Two current monitor queries, QueryForWorkItems and QueryForWorkItemHistories. The other actions are legacy (Process Designer).
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 |
|---|---|
| GetAllProcesses | Gets all configured processes |
| GetAllWorkitems | Gets all Workitems |
| GetProcess | Gets all configured processes |
| GetWorkItemMonitorData | Retrieves monitor data for all work items in the processing system |
| GetWorkitem | Gets a Workitem based on the id of provided |
| LockWorkItem | Locks an existing work item to the user associated with the API token used to invoke this endpoint. |
| NewWorkItem | Creates a new work item that represents a batch in the processing system. |
| QueryForWorkItemHistories | Retrieves event history for work items in the processing system |
| QueryForWorkItems | Queries the current work items in the processing system. |
| ReleaseHold | Removes the hold on an existing work item if it exists. |
| RemoveWorkItem | Removes an existing work item. |
| RestartWorkitem | Restarts the process of the workitem provided as a parameter |
| ResubmitWorkitem | Resubmits the workitem provided as a parameter to its current activity |
| SendWorkItemToProcess | Sends the workitem provided as a parameter to a specified process |
| StartWorkitem | Starts the workitem provided as a parameter |
| StopWorkitem | Stops the workitem provided as a parameter |
| UnlockWorkItem | Unlocks an existing work item. |
GetAllProcesses¶
Gets all configured processes
- Content type application/json
- Status legacy. Keep existing integrations; do not build new ones.
Request¶
No body. Send {} or an empty body.
Response¶
Gets all the currently defined processes.
Envelope: DataResponseProcessDTOList. Data is array of ProcessDTO.
{
"Success": true,
"MessageKey": null,
"Data": [
{
"Id": "00000000-0000-0000-0000-000000000000",
"Name": "Process name",
"Version": "1",
"CheckOutUserToken": "Checked out user Token",
"FirstActivityID": "00000000-0000-0000-0000-000000000000",
"Activities": null
},
{
"Id": "00000000-0000-0000-0000-000000000000",
"Name": "Process name",
"Version": "1",
"CheckOutUserToken": "Checked out user Token",
"FirstActivityID": "00000000-0000-0000-0000-000000000000",
"Activities": 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 V1ProcessingAPIApi(config);
var response = await api.V1ProcessingAPIControllerGetAllProcessesAsync();
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_ProcessingAPI/GetAllProcesses",
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_ProcessingAPI/GetAllProcesses", {
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);
GetAllWorkitems¶
Gets all Workitems
- Content type application/json
- Status legacy. Keep existing integrations; do not build new ones.
Request¶
No body. Send {} or an empty body.
Response¶
All the workitems available in the system
Envelope: DataResponseWorkItemDTOList. Data is array of WorkItemDTO.
{
"Success": true,
"MessageKey": null,
"Data": [
{
"BatchName": "Batch Name",
"HoldId": "00000000-0000-0000-0000-000000000000",
"ScheduledDeletion": "2026-10-07T20:19:08.9207571+00:00",
"UserLockTimeStamp": "2026-10-07T20:19:08.9207571+00:00",
"WorkerLockTimeStamp": "2026-10-07T20:19:08.9207572+00:00",
"UserToken": "admin_00000000-0000-0000-0000-000000000000",
"Suspended": false,
"LockWorkerId": null,
"DueDate": "2026-10-07T20:19:08.9207573+00:00",
"RoleId": "00000000-0000-0000-0000-000000000000",
"Status": "Active",
"ActivityActive": true,
"ActivityId": "00000000-0000-0000-0000-000000000000",
"ItemId": "00000000-0000-0000-0000-000000000000",
"HoldStatus": null,
"ScheduledHoldVerification": 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 V1ProcessingAPIApi(config);
var response = await api.V1ProcessingAPIControllerGetAllWorkitemsAsync();
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_ProcessingAPI/GetAllWorkitems",
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_ProcessingAPI/GetAllWorkitems", {
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);
GetProcess¶
Gets all configured processes
- Content type application/json
- Status legacy. Keep existing integrations; do not build new ones.
Request¶
Identifying information for the process.
Schema: ProcessIdentifierParameter. Identifying information for a process
| Field | Type | Description |
|---|---|---|
Name |
string | Name of the process as it exists in the processing system |
Id |
string (uuid) | ID of the process as it exists in the processing system |
Response¶
Sets the workitem provided to an stopped status so it cannot be worked
Envelope: DataResponseProcessDTO. Data is ProcessDTO.
{
"Success": true,
"MessageKey": null,
"Data": {
"Id": "00000000-0000-0000-0000-000000000000",
"Name": null,
"Version": "0",
"CheckOutUserToken": null,
"FirstActivityID": null,
"Activities": 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 V1ProcessingAPIApi(config);
var response = await api.V1ProcessingAPIControllerGetProcessAsync(new ProcessIdentifierParameter
{
Name = "string",
Id = Guid.Parse("00000000-0000-0000-0000-000000000000"),
});
if (response.Success != true) throw new Exception(response.MessageKey);
Console.WriteLine(response.Data);
$body = @'
{
"Name": "string",
"Id": "00000000-0000-0000-0000-000000000000"
}
'@
$r = Invoke-RestMethod -Method Post -Uri "https://yourcompany.knowledgelake.io/api/V1_ProcessingAPI/GetProcess" `
-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_ProcessingAPI/GetProcess",
headers={"TempIdentityToken": os.environ["KL_TOKEN"]},
json={
"Name": "string",
"Id": "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_ProcessingAPI/GetProcess", {
method: "POST",
headers: { "TempIdentityToken": process.env.KL_TOKEN, "Content-Type": "application/json" },
body: JSON.stringify({
"Name": "string",
"Id": "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);
GetWorkItemMonitorData¶
Retrieves monitor data for all work items in the processing system
- Content type application/json
- Status legacy. Keep existing integrations; do not build new ones.
Request¶
No body. Send {} or an empty body.
Response¶
Returns monitor data for all work items in the processing system
Envelope: DataResponseWorkItemMonitorDataDTO. Data is WorkItemMonitorDataDTO.
{
"Success": true,
"MessageKey": null,
"Data": {
"WorkItemData": [
{
"WorkItemId": "00000000-0000-0000-0000-000000000000",
"WorkItemName": "20201117-222444018",
"WorkItemStatus": "Active",
"ProcessName": "Test Process 1",
"ActivityName": "Upload To Destination",
"HoldId": "00000000-0000-0000-0000-000000000000",
"WorkItemUser": "bmk_93ae2a09ea3e06cebb195878ef147db546f2a653",
"LastUpdated": "2026-10-07T20:19:08.9207721+00:00"
}
],
"TotalItems": "5",
"ErrorItems": "100"
}
}
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 V1ProcessingAPIApi(config);
var response = await api.V1ProcessingAPIControllerGetWorkItemMonitorDataAsync();
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_ProcessingAPI/GetWorkItemMonitorData",
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_ProcessingAPI/GetWorkItemMonitorData", {
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);
GetWorkitem¶
Gets a Workitem based on the id of provided
- Content type application/json
- Status legacy. Keep existing integrations; do not build new ones.
Request¶
Identifying information for the work item.
Schema: WorkItemIdentifierParameter. Identifying information for a work item
| Field | Type | Description |
|---|---|---|
BatchId |
string (uuid) | ID of the work item |
Response¶
The workitem as idenitfied by the passed in parameter
Envelope: DataResponseWorkItemDTO. Data is WorkItemDTO.
{
"Success": true,
"MessageKey": null,
"Data": {
"BatchName": "Batch Name",
"HoldId": "00000000-0000-0000-0000-000000000000",
"ScheduledDeletion": "2026-10-07T20:19:08.9207477+00:00",
"UserLockTimeStamp": "2026-10-07T20:19:08.9207478+00:00",
"WorkerLockTimeStamp": "2026-10-07T20:19:08.9207479+00:00",
"UserToken": "admin_00000000-0000-0000-0000-000000000000",
"Suspended": false,
"LockWorkerId": null,
"DueDate": "2026-10-07T20:19:08.9207480+00:00",
"RoleId": "00000000-0000-0000-0000-000000000000",
"Status": "Active",
"ActivityActive": true,
"ActivityId": "00000000-0000-0000-0000-000000000000",
"ItemId": "00000000-0000-0000-0000-000000000000",
"HoldStatus": null,
"ScheduledHoldVerification": 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 V1ProcessingAPIApi(config);
var response = await api.V1ProcessingAPIControllerGetWorkitemAsync(new WorkItemIdentifierParameter
{
BatchId = Guid.Parse("00000000-0000-0000-0000-000000000000"),
});
if (response.Success != true) throw new Exception(response.MessageKey);
Console.WriteLine(response.Data);
$body = @'
{
"BatchId": "00000000-0000-0000-0000-000000000000"
}
'@
$r = Invoke-RestMethod -Method Post -Uri "https://yourcompany.knowledgelake.io/api/V1_ProcessingAPI/GetWorkitem" `
-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_ProcessingAPI/GetWorkitem",
headers={"TempIdentityToken": os.environ["KL_TOKEN"]},
json={
"BatchId": "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_ProcessingAPI/GetWorkitem", {
method: "POST",
headers: { "TempIdentityToken": process.env.KL_TOKEN, "Content-Type": "application/json" },
body: JSON.stringify({
"BatchId": "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);
LockWorkItem¶
Locks an existing work item to the user associated with the API token used to invoke this endpoint.
- Content type application/json
- Status legacy. Keep existing integrations; do not build new ones.
Request¶
Identifying information for the work item.
Schema: WorkItemIdentifierParameter. Identifying information for a work item
| Field | Type | Description |
|---|---|---|
BatchId |
string (uuid) | ID of the work item |
Response¶
The workitem as idenitfied by the passed in parameter
Envelope: DataResponseWorkItemDTO. Data is WorkItemDTO.
{
"Success": true,
"MessageKey": null,
"Data": {
"BatchName": "Batch Name",
"HoldId": "00000000-0000-0000-0000-000000000000",
"ScheduledDeletion": "2026-10-07T20:19:08.9207063+00:00",
"UserLockTimeStamp": "2026-10-07T20:19:08.9207064+00:00",
"WorkerLockTimeStamp": "2026-10-07T20:19:08.9207064+00:00",
"UserToken": "admin_00000000-0000-0000-0000-000000000000",
"Suspended": false,
"LockWorkerId": null,
"DueDate": "2026-10-07T20:19:08.9207066+00:00",
"RoleId": "00000000-0000-0000-0000-000000000000",
"Status": "Active",
"ActivityActive": true,
"ActivityId": "00000000-0000-0000-0000-000000000000",
"ItemId": "00000000-0000-0000-0000-000000000000",
"HoldStatus": null,
"ScheduledHoldVerification": 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 V1ProcessingAPIApi(config);
var response = await api.V1ProcessingAPIControllerLockWorkItemAsync(new WorkItemIdentifierParameter
{
BatchId = Guid.Parse("00000000-0000-0000-0000-000000000000"),
});
if (response.Success != true) throw new Exception(response.MessageKey);
Console.WriteLine(response.Data);
$body = @'
{
"BatchId": "00000000-0000-0000-0000-000000000000"
}
'@
$r = Invoke-RestMethod -Method Post -Uri "https://yourcompany.knowledgelake.io/api/V1_ProcessingAPI/LockWorkItem" `
-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_ProcessingAPI/LockWorkItem",
headers={"TempIdentityToken": os.environ["KL_TOKEN"]},
json={
"BatchId": "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_ProcessingAPI/LockWorkItem", {
method: "POST",
headers: { "TempIdentityToken": process.env.KL_TOKEN, "Content-Type": "application/json" },
body: JSON.stringify({
"BatchId": "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);
NewWorkItem¶
Creates a new work item that represents a batch in the processing system.
- Content type application/json
- Status legacy. Keep existing integrations; do not build new ones.
Request¶
Identifying information for the work item.
Schema: WorkItemNamedParameter. Identifying information for a work item
| Field | Type | Description |
|---|---|---|
BatchId |
string (uuid) | ID of the workitem as it exists in the processing system |
BatchName |
string | Optional name of the workitem as it exists in the processing system |
Response¶
The workitem as idenitfied by the passed in parameter
Envelope: DataResponseWorkItemDTO. Data is WorkItemDTO.
{
"Success": true,
"MessageKey": null,
"Data": {
"BatchName": "Batch Name",
"HoldId": "00000000-0000-0000-0000-000000000000",
"ScheduledDeletion": "2026-10-07T20:19:08.9206854+00:00",
"UserLockTimeStamp": "2026-10-07T20:19:08.9206856+00:00",
"WorkerLockTimeStamp": "2026-10-07T20:19:08.9206857+00:00",
"UserToken": "admin_00000000-0000-0000-0000-000000000000",
"Suspended": false,
"LockWorkerId": null,
"DueDate": "2026-10-07T20:19:08.9206869+00:00",
"RoleId": "00000000-0000-0000-0000-000000000000",
"Status": "Active",
"ActivityActive": true,
"ActivityId": "00000000-0000-0000-0000-000000000000",
"ItemId": "00000000-0000-0000-0000-000000000000",
"HoldStatus": null,
"ScheduledHoldVerification": 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 V1ProcessingAPIApi(config);
var response = await api.V1ProcessingAPIControllerNewWorkItemAsync(new WorkItemNamedParameter
{
BatchId = Guid.Parse("00000000-0000-0000-0000-000000000000"),
BatchName = "string",
});
if (response.Success != true) throw new Exception(response.MessageKey);
Console.WriteLine(response.Data);
$body = @'
{
"BatchId": "00000000-0000-0000-0000-000000000000",
"BatchName": "string"
}
'@
$r = Invoke-RestMethod -Method Post -Uri "https://yourcompany.knowledgelake.io/api/V1_ProcessingAPI/NewWorkItem" `
-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_ProcessingAPI/NewWorkItem",
headers={"TempIdentityToken": os.environ["KL_TOKEN"]},
json={
"BatchId": "00000000-0000-0000-0000-000000000000",
"BatchName": "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_ProcessingAPI/NewWorkItem", {
method: "POST",
headers: { "TempIdentityToken": process.env.KL_TOKEN, "Content-Type": "application/json" },
body: JSON.stringify({
"BatchId": "00000000-0000-0000-0000-000000000000",
"BatchName": "string"
})
});
const data = await r.json();
if (!data.Success) throw new Error(data.MessageKey ?? JSON.stringify(data.Messages));
console.log(data.Data);
QueryForWorkItemHistories¶
Retrieves event history for work items in the processing system
- Token feature Read Batches
- Content type application/json
Request¶
Optional filters for work item event history.
Schema: WorkItemHistoryQueryParameter. Pass an object with workitem properties to filter event history results
| Field | Type | Description |
|---|---|---|
WorkItemId |
string (uuid) | (Optional) ID of the work item to filter by |
EntryDateOnOrAfter |
string (date-time) | (Optional) Filter to only return events that occurred on or after this datetime. |
Status |
object | (Optional) The status of the work item |
OrderBy |
object | (Optional - Default is EntryDate) The column the results are sorted by. An unset value sorts by EntryDate. |
Direction |
object | (Optional - Default is Ascending) The direction the results are sorted in. Any value other than Descending sorts Ascending. |
Skip |
integer | (Optional - Default is 0) The number of items to skip before returning results. A negative value is clamped to 0 rather than rejected. |
Take |
integer | (Optional - Default is 20) Max number of items to return. Zero or a negative value falls back to 20; a value above the 1000 maximum is clamped to 1000 rather than rejected. |
Response¶
Returns a list of event history records for matching work items
Envelope: DataResponseBatchMonitorWorkItemDataDTO. Data is array of WorkitemHistoryQueryResult.
{
"Success": true,
"MessageKey": null,
"Data": [
{
"WorkitemId": "4704ba05-f83b-46fb-27b8-91b0a3522cc1",
"Level": "Error",
"EntryDate": "2026-10-07T20:19:08.9208213+00:00",
"Process": "Your Process",
"Step": "Index Your Documents",
"EventDescription": "processing.workitem.error",
"Properties": []
}
]
}
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 V1ProcessingAPIApi(config);
var response = await api.V1ProcessingAPIControllerQueryForWorkItemHistoriesAsync(new WorkItemHistoryQueryParameter
{
Status = ProcessingWorkitemStatus.New,
OrderBy = WorkItemHistoryOrderBy.EntryDate,
Direction = SortDirection.Ascending,
WorkItemId = Guid.Parse("00000000-0000-0000-0000-000000000000"),
EntryDateOnOrAfter = DateTime.Parse("2026-01-01T00:00:00Z"),
Skip = 0,
Take = 0,
});
if (response.Success != true) throw new Exception(response.MessageKey);
Console.WriteLine(response.Data);
curl -sS -X POST "https://yourcompany.knowledgelake.io/api/V1_ProcessingAPI/QueryForWorkItemHistories" \
-H "TempIdentityToken: $KL_TOKEN" \
-H "Content-Type: application/json" \
-d '{"WorkItemId": "00000000-0000-0000-0000-000000000000", "EntryDateOnOrAfter": "2026-01-01T00:00:00Z", "Status": null, "OrderBy": null, "Direction": null, "Skip": 0, "Take": 0}'
$body = @'
{
"WorkItemId": "00000000-0000-0000-0000-000000000000",
"EntryDateOnOrAfter": "2026-01-01T00:00:00Z",
"Status": null,
"OrderBy": null,
"Direction": null,
"Skip": 0,
"Take": 0
}
'@
$r = Invoke-RestMethod -Method Post -Uri "https://yourcompany.knowledgelake.io/api/V1_ProcessingAPI/QueryForWorkItemHistories" `
-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_ProcessingAPI/QueryForWorkItemHistories",
headers={"TempIdentityToken": os.environ["KL_TOKEN"]},
json={
"WorkItemId": "00000000-0000-0000-0000-000000000000",
"EntryDateOnOrAfter": "2026-01-01T00:00:00Z",
"Status": null,
"OrderBy": null,
"Direction": null,
"Skip": 0,
"Take": 0
})
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_ProcessingAPI/QueryForWorkItemHistories", {
method: "POST",
headers: { "TempIdentityToken": process.env.KL_TOKEN, "Content-Type": "application/json" },
body: JSON.stringify({
"WorkItemId": "00000000-0000-0000-0000-000000000000",
"EntryDateOnOrAfter": "2026-01-01T00:00:00Z",
"Status": null,
"OrderBy": null,
"Direction": null,
"Skip": 0,
"Take": 0
})
});
const data = await r.json();
if (!data.Success) throw new Error(data.MessageKey ?? JSON.stringify(data.Messages));
console.log(data.Data);
QueryForWorkItems¶
Queries the current work items in the processing system.
- Token feature Read Batches
- Content type application/json
Request¶
Optional filters used to narrow the work item query.
Schema: WorkItemQueryParameter. Pass an object with work item properties to filter the work item query results. All properties are optional.
| Field | Type | Description |
|---|---|---|
WorkitemName |
string | (Optional) Filter to work items whose name matches this value. The comparison is case-insensitive. |
WorkitemId |
string (uuid) | (Optional) Filter to the single work item with this ID |
Status |
object | (Optional) Filter to work items currently in this status |
LastUpdatedOnOrAfter |
string (date-time) | (Optional) Filter to work items last updated on or after this datetime. |
OrderBy |
object | (Optional - Default is WorkItemStatus) The column the results are sorted by. An unset value sorts by WorkItemStatus. |
Direction |
object | (Optional - Default is Ascending) The direction the results are sorted in. Any value other than Descending sorts Ascending. |
PageSize |
integer | (Optional - Default is 20) Max size of the result list. Zero or a negative value falls back to 20; a value above the 1000 maximum is clamped to 1000 rather than rejected. |
PageIndex |
integer | (Optional - Default is 0) The page division (starts at 0). A negative value is clamped to 0 rather than rejected. |
Response¶
Returns a list of work items matching the supplied query filters
Envelope: DataResponseWorkitemQueryResultList. Data is array of WorkitemQueryResult.
{
"Success": true,
"MessageKey": null,
"Data": [
{
"WorkItemId": "4704ba05-f83b-46fb-27b8-91b0a3522cc1",
"HoldId": null,
"LastUpdated": "2026-10-07T20:19:08.9208005+00:00",
"WorkItemName": "20201117-222444018",
"Status": "Active",
"Process": "Invoice Capture",
"Step": "Index Documents",
"UserToken": "bmk_93ae2a09ea3e06cebb195878ef147db546f2a653",
"Properties": []
}
]
}
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 V1ProcessingAPIApi(config);
var response = await api.V1ProcessingAPIControllerQueryForWorkItemsAsync(new WorkItemQueryParameter
{
Status = ProcessingWorkitemStatus.New,
OrderBy = WorkitemOrderBy.WorkitemName,
Direction = SortDirection.Ascending,
WorkitemName = "string",
WorkitemId = Guid.Parse("00000000-0000-0000-0000-000000000000"),
LastUpdatedOnOrAfter = DateTime.Parse("2026-01-01T00:00:00Z"),
PageSize = 0,
PageIndex = 0,
});
if (response.Success != true) throw new Exception(response.MessageKey);
Console.WriteLine(response.Data);
curl -sS -X POST "https://yourcompany.knowledgelake.io/api/V1_ProcessingAPI/QueryForWorkItems" \
-H "TempIdentityToken: $KL_TOKEN" \
-H "Content-Type: application/json" \
-d '{"WorkitemName": "string", "WorkitemId": "00000000-0000-0000-0000-000000000000", "Status": null, "LastUpdatedOnOrAfter": "2026-01-01T00:00:00Z", "OrderBy": null, "Direction": null, "PageSize": 0, "PageIndex": 0}'
$body = @'
{
"WorkitemName": "string",
"WorkitemId": "00000000-0000-0000-0000-000000000000",
"Status": null,
"LastUpdatedOnOrAfter": "2026-01-01T00:00:00Z",
"OrderBy": null,
"Direction": null,
"PageSize": 0,
"PageIndex": 0
}
'@
$r = Invoke-RestMethod -Method Post -Uri "https://yourcompany.knowledgelake.io/api/V1_ProcessingAPI/QueryForWorkItems" `
-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_ProcessingAPI/QueryForWorkItems",
headers={"TempIdentityToken": os.environ["KL_TOKEN"]},
json={
"WorkitemName": "string",
"WorkitemId": "00000000-0000-0000-0000-000000000000",
"Status": null,
"LastUpdatedOnOrAfter": "2026-01-01T00:00:00Z",
"OrderBy": null,
"Direction": null,
"PageSize": 0,
"PageIndex": 0
})
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_ProcessingAPI/QueryForWorkItems", {
method: "POST",
headers: { "TempIdentityToken": process.env.KL_TOKEN, "Content-Type": "application/json" },
body: JSON.stringify({
"WorkitemName": "string",
"WorkitemId": "00000000-0000-0000-0000-000000000000",
"Status": null,
"LastUpdatedOnOrAfter": "2026-01-01T00:00:00Z",
"OrderBy": null,
"Direction": null,
"PageSize": 0,
"PageIndex": 0
})
});
const data = await r.json();
if (!data.Success) throw new Error(data.MessageKey ?? JSON.stringify(data.Messages));
console.log(data.Data);
ReleaseHold¶
Removes the hold on an existing work item if it exists.
- Content type application/json
- Status legacy. Keep existing integrations; do not build new ones.
Request¶
Identifying information for the work item.
Schema: WorkItemIdentifierParameter. Identifying information for a work item
| Field | Type | Description |
|---|---|---|
BatchId |
string (uuid) | ID of the work item |
Response¶
The workitem as idenitfied by the passed in parameter
Envelope: DataResponseWorkItemDTO. Data is WorkItemDTO.
{
"Success": true,
"MessageKey": null,
"Data": {
"BatchName": "Batch Name",
"HoldId": "00000000-0000-0000-0000-000000000000",
"ScheduledDeletion": "2026-10-07T20:19:08.9207354+00:00",
"UserLockTimeStamp": "2026-10-07T20:19:08.9207355+00:00",
"WorkerLockTimeStamp": "2026-10-07T20:19:08.9207356+00:00",
"UserToken": "admin_00000000-0000-0000-0000-000000000000",
"Suspended": false,
"LockWorkerId": null,
"DueDate": "2026-10-07T20:19:08.9207357+00:00",
"RoleId": "00000000-0000-0000-0000-000000000000",
"Status": "Active",
"ActivityActive": true,
"ActivityId": "00000000-0000-0000-0000-000000000000",
"ItemId": "00000000-0000-0000-0000-000000000000",
"HoldStatus": null,
"ScheduledHoldVerification": 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 V1ProcessingAPIApi(config);
var response = await api.V1ProcessingAPIControllerReleaseHoldAsync(new WorkItemIdentifierParameter
{
BatchId = Guid.Parse("00000000-0000-0000-0000-000000000000"),
});
if (response.Success != true) throw new Exception(response.MessageKey);
Console.WriteLine(response.Data);
$body = @'
{
"BatchId": "00000000-0000-0000-0000-000000000000"
}
'@
$r = Invoke-RestMethod -Method Post -Uri "https://yourcompany.knowledgelake.io/api/V1_ProcessingAPI/ReleaseHold" `
-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_ProcessingAPI/ReleaseHold",
headers={"TempIdentityToken": os.environ["KL_TOKEN"]},
json={
"BatchId": "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_ProcessingAPI/ReleaseHold", {
method: "POST",
headers: { "TempIdentityToken": process.env.KL_TOKEN, "Content-Type": "application/json" },
body: JSON.stringify({
"BatchId": "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);
RemoveWorkItem¶
Removes an existing work item.
- Content type application/json
- Status legacy. Keep existing integrations; do not build new ones.
Request¶
Identifying information for the work item.
Schema: WorkItemIdentifierParameter. Identifying information for a work item
| Field | Type | Description |
|---|---|---|
BatchId |
string (uuid) | ID of the work item |
Response¶
The work item was successfully removed from the processing system.
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 V1ProcessingAPIApi(config);
var response = await api.V1ProcessingAPIControllerRemoveWorkItemAsync(new WorkItemIdentifierParameter
{
BatchId = Guid.Parse("00000000-0000-0000-0000-000000000000"),
});
if (response.Success != true) throw new Exception(response.MessageKey);
Console.WriteLine(response);
$body = @'
{
"BatchId": "00000000-0000-0000-0000-000000000000"
}
'@
$r = Invoke-RestMethod -Method Post -Uri "https://yourcompany.knowledgelake.io/api/V1_ProcessingAPI/RemoveWorkItem" `
-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_ProcessingAPI/RemoveWorkItem",
headers={"TempIdentityToken": os.environ["KL_TOKEN"]},
json={
"BatchId": "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_ProcessingAPI/RemoveWorkItem", {
method: "POST",
headers: { "TempIdentityToken": process.env.KL_TOKEN, "Content-Type": "application/json" },
body: JSON.stringify({
"BatchId": "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);
RestartWorkitem¶
Restarts the process of the workitem provided as a parameter
- Content type application/json
- Status legacy. Keep existing integrations; do not build new ones.
Request¶
Identifying information for the work item.
Schema: WorkItemDTO. An object representation of a work item
| Field | Type | Description |
|---|---|---|
BatchName |
string | Name of the work item |
HoldId |
string (uuid) | ID of the hold on the work item, if a hold exists |
ScheduledDeletion |
string (date-time) | Scheduled deletion datetime of the work item |
UserLockTimeStamp |
string (date-time) | Datetime that an identity obtained a lock on the work item, if a lock exists |
WorkerLockTimeStamp |
string (date-time) | Datetime that a worker obtained a lock on the work item, if a lock exists |
UserToken |
string | User token of the identity with a lock on the work item, if a lock exists |
Suspended |
boolean | Indicator of whether the batch was suspended |
LockWorkerId |
integer | Identifier of the worker with a lock on the work item, if a lock exists |
DueDate |
string (date-time) | Internal property intended to manage the prioritization of work items for processing |
RoleId |
string (uuid) | ID of the role associated with the worker/activity that the work item occupies |
Status |
object | Status of the work item |
ActivityActive |
boolean | Indicator of whether the work item is currently in an active activity |
ActivityId |
string (uuid) | ID of the activity that the work item currently occupies |
ItemId |
string (uuid) | ID of the work item |
HoldStatus |
object | Status of a hold on the work item |
ScheduledHoldVerification |
string (date-time) | Datetime of the next evaluation of the hold status of the work item |
Response¶
The workitem as idenitfied by the passed in parameter
Envelope: DataResponseWorkItemDTO. Data is WorkItemDTO.
{
"Success": true,
"MessageKey": null,
"Data": {
"BatchName": "Batch Name",
"HoldId": "00000000-0000-0000-0000-000000000000",
"ScheduledDeletion": "2026-10-07T20:19:08.9209032+00:00",
"UserLockTimeStamp": "2026-10-07T20:19:08.9209032+00:00",
"WorkerLockTimeStamp": "2026-10-07T20:19:08.9209033+00:00",
"UserToken": "admin_00000000-0000-0000-0000-000000000000",
"Suspended": false,
"LockWorkerId": null,
"DueDate": "2026-10-07T20:19:08.9209035+00:00",
"RoleId": "00000000-0000-0000-0000-000000000000",
"Status": "Active",
"ActivityActive": true,
"ActivityId": "00000000-0000-0000-0000-000000000000",
"ItemId": "00000000-0000-0000-0000-000000000000",
"HoldStatus": null,
"ScheduledHoldVerification": 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 V1ProcessingAPIApi(config);
var response = await api.V1ProcessingAPIControllerRestartWorkitemAsync(new WorkItemDTO
{
Status = WorkItemDTOStatus.New,
HoldStatus = WorkItemHoldStatus.None,
BatchName = "string",
HoldId = Guid.Parse("00000000-0000-0000-0000-000000000000"),
ScheduledDeletion = DateTime.Parse("2026-01-01T00:00:00Z"),
UserLockTimeStamp = DateTime.Parse("2026-01-01T00:00:00Z"),
WorkerLockTimeStamp = DateTime.Parse("2026-01-01T00:00:00Z"),
UserToken = "string",
// More properties: see WorkItemDTO on the Schemas page
});
if (response.Success != true) throw new Exception(response.MessageKey);
Console.WriteLine(response.Data);
curl -sS -X POST "https://yourcompany.knowledgelake.io/api/V1_ProcessingAPI/RestartWorkitem" \
-H "TempIdentityToken: $KL_TOKEN" \
-H "Content-Type: application/json" \
-d '{"BatchName": "string", "HoldId": "00000000-0000-0000-0000-000000000000", "ScheduledDeletion": "2026-01-01T00:00:00Z", "UserLockTimeStamp": "2026-01-01T00:00:00Z", "WorkerLockTimeStamp": "2026-01-01T00:00:00Z", "UserToken": "string", "Suspended": false, "LockWorkerId": 0, "DueDate": "2026-01-01T00:00:00Z", "RoleId": "00000000-0000-0000-0000-000000000000", "Status": null, "ActivityActive": false, "ActivityId": "00000000-0000-0000-0000-000000000000", "ItemId": "00000000-0000-0000-0000-000000000000", "HoldStatus": null, "ScheduledHoldVerification": "2026-01-01T00:00:00Z"}'
$body = @'
{
"BatchName": "string",
"HoldId": "00000000-0000-0000-0000-000000000000",
"ScheduledDeletion": "2026-01-01T00:00:00Z",
"UserLockTimeStamp": "2026-01-01T00:00:00Z",
"WorkerLockTimeStamp": "2026-01-01T00:00:00Z",
"UserToken": "string",
"Suspended": false,
"LockWorkerId": 0,
"DueDate": "2026-01-01T00:00:00Z",
"RoleId": "00000000-0000-0000-0000-000000000000",
"Status": null,
"ActivityActive": false,
"ActivityId": "00000000-0000-0000-0000-000000000000",
"ItemId": "00000000-0000-0000-0000-000000000000",
"HoldStatus": null,
"ScheduledHoldVerification": "2026-01-01T00:00:00Z"
}
'@
$r = Invoke-RestMethod -Method Post -Uri "https://yourcompany.knowledgelake.io/api/V1_ProcessingAPI/RestartWorkitem" `
-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_ProcessingAPI/RestartWorkitem",
headers={"TempIdentityToken": os.environ["KL_TOKEN"]},
json={
"BatchName": "string",
"HoldId": "00000000-0000-0000-0000-000000000000",
"ScheduledDeletion": "2026-01-01T00:00:00Z",
"UserLockTimeStamp": "2026-01-01T00:00:00Z",
"WorkerLockTimeStamp": "2026-01-01T00:00:00Z",
"UserToken": "string",
"Suspended": false,
"LockWorkerId": 0,
"DueDate": "2026-01-01T00:00:00Z",
"RoleId": "00000000-0000-0000-0000-000000000000",
"Status": null,
"ActivityActive": false,
"ActivityId": "00000000-0000-0000-0000-000000000000",
"ItemId": "00000000-0000-0000-0000-000000000000",
"HoldStatus": null,
"ScheduledHoldVerification": "2026-01-01T00:00:00Z"
})
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_ProcessingAPI/RestartWorkitem", {
method: "POST",
headers: { "TempIdentityToken": process.env.KL_TOKEN, "Content-Type": "application/json" },
body: JSON.stringify({
"BatchName": "string",
"HoldId": "00000000-0000-0000-0000-000000000000",
"ScheduledDeletion": "2026-01-01T00:00:00Z",
"UserLockTimeStamp": "2026-01-01T00:00:00Z",
"WorkerLockTimeStamp": "2026-01-01T00:00:00Z",
"UserToken": "string",
"Suspended": false,
"LockWorkerId": 0,
"DueDate": "2026-01-01T00:00:00Z",
"RoleId": "00000000-0000-0000-0000-000000000000",
"Status": null,
"ActivityActive": false,
"ActivityId": "00000000-0000-0000-0000-000000000000",
"ItemId": "00000000-0000-0000-0000-000000000000",
"HoldStatus": null,
"ScheduledHoldVerification": "2026-01-01T00:00:00Z"
})
});
const data = await r.json();
if (!data.Success) throw new Error(data.MessageKey ?? JSON.stringify(data.Messages));
console.log(data.Data);
ResubmitWorkitem¶
Resubmits the workitem provided as a parameter to its current activity
- Content type application/json
- Status legacy. Keep existing integrations; do not build new ones.
Request¶
Identifying information for the work item.
Schema: WorkItemDTO. An object representation of a work item
| Field | Type | Description |
|---|---|---|
BatchName |
string | Name of the work item |
HoldId |
string (uuid) | ID of the hold on the work item, if a hold exists |
ScheduledDeletion |
string (date-time) | Scheduled deletion datetime of the work item |
UserLockTimeStamp |
string (date-time) | Datetime that an identity obtained a lock on the work item, if a lock exists |
WorkerLockTimeStamp |
string (date-time) | Datetime that a worker obtained a lock on the work item, if a lock exists |
UserToken |
string | User token of the identity with a lock on the work item, if a lock exists |
Suspended |
boolean | Indicator of whether the batch was suspended |
LockWorkerId |
integer | Identifier of the worker with a lock on the work item, if a lock exists |
DueDate |
string (date-time) | Internal property intended to manage the prioritization of work items for processing |
RoleId |
string (uuid) | ID of the role associated with the worker/activity that the work item occupies |
Status |
object | Status of the work item |
ActivityActive |
boolean | Indicator of whether the work item is currently in an active activity |
ActivityId |
string (uuid) | ID of the activity that the work item currently occupies |
ItemId |
string (uuid) | ID of the work item |
HoldStatus |
object | Status of a hold on the work item |
ScheduledHoldVerification |
string (date-time) | Datetime of the next evaluation of the hold status of the work item |
Response¶
The workitem as idenitfied by the passed in parameter
Envelope: DataResponseWorkItemDTO. Data is WorkItemDTO.
{
"Success": true,
"MessageKey": null,
"Data": {
"BatchName": "Batch Name",
"HoldId": "00000000-0000-0000-0000-000000000000",
"ScheduledDeletion": "2026-10-07T20:19:08.9208808+00:00",
"UserLockTimeStamp": "2026-10-07T20:19:08.9208809+00:00",
"WorkerLockTimeStamp": "2026-10-07T20:19:08.9208809+00:00",
"UserToken": "admin_00000000-0000-0000-0000-000000000000",
"Suspended": false,
"LockWorkerId": null,
"DueDate": "2026-10-07T20:19:08.9208811+00:00",
"RoleId": "00000000-0000-0000-0000-000000000000",
"Status": "Active",
"ActivityActive": true,
"ActivityId": "00000000-0000-0000-0000-000000000000",
"ItemId": "00000000-0000-0000-0000-000000000000",
"HoldStatus": null,
"ScheduledHoldVerification": 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 V1ProcessingAPIApi(config);
var response = await api.V1ProcessingAPIControllerResubmitWorkitemAsync(new WorkItemDTO
{
Status = WorkItemDTOStatus.New,
HoldStatus = WorkItemHoldStatus.None,
BatchName = "string",
HoldId = Guid.Parse("00000000-0000-0000-0000-000000000000"),
ScheduledDeletion = DateTime.Parse("2026-01-01T00:00:00Z"),
UserLockTimeStamp = DateTime.Parse("2026-01-01T00:00:00Z"),
WorkerLockTimeStamp = DateTime.Parse("2026-01-01T00:00:00Z"),
UserToken = "string",
// More properties: see WorkItemDTO on the Schemas page
});
if (response.Success != true) throw new Exception(response.MessageKey);
Console.WriteLine(response.Data);
curl -sS -X POST "https://yourcompany.knowledgelake.io/api/V1_ProcessingAPI/ResubmitWorkitem" \
-H "TempIdentityToken: $KL_TOKEN" \
-H "Content-Type: application/json" \
-d '{"BatchName": "string", "HoldId": "00000000-0000-0000-0000-000000000000", "ScheduledDeletion": "2026-01-01T00:00:00Z", "UserLockTimeStamp": "2026-01-01T00:00:00Z", "WorkerLockTimeStamp": "2026-01-01T00:00:00Z", "UserToken": "string", "Suspended": false, "LockWorkerId": 0, "DueDate": "2026-01-01T00:00:00Z", "RoleId": "00000000-0000-0000-0000-000000000000", "Status": null, "ActivityActive": false, "ActivityId": "00000000-0000-0000-0000-000000000000", "ItemId": "00000000-0000-0000-0000-000000000000", "HoldStatus": null, "ScheduledHoldVerification": "2026-01-01T00:00:00Z"}'
$body = @'
{
"BatchName": "string",
"HoldId": "00000000-0000-0000-0000-000000000000",
"ScheduledDeletion": "2026-01-01T00:00:00Z",
"UserLockTimeStamp": "2026-01-01T00:00:00Z",
"WorkerLockTimeStamp": "2026-01-01T00:00:00Z",
"UserToken": "string",
"Suspended": false,
"LockWorkerId": 0,
"DueDate": "2026-01-01T00:00:00Z",
"RoleId": "00000000-0000-0000-0000-000000000000",
"Status": null,
"ActivityActive": false,
"ActivityId": "00000000-0000-0000-0000-000000000000",
"ItemId": "00000000-0000-0000-0000-000000000000",
"HoldStatus": null,
"ScheduledHoldVerification": "2026-01-01T00:00:00Z"
}
'@
$r = Invoke-RestMethod -Method Post -Uri "https://yourcompany.knowledgelake.io/api/V1_ProcessingAPI/ResubmitWorkitem" `
-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_ProcessingAPI/ResubmitWorkitem",
headers={"TempIdentityToken": os.environ["KL_TOKEN"]},
json={
"BatchName": "string",
"HoldId": "00000000-0000-0000-0000-000000000000",
"ScheduledDeletion": "2026-01-01T00:00:00Z",
"UserLockTimeStamp": "2026-01-01T00:00:00Z",
"WorkerLockTimeStamp": "2026-01-01T00:00:00Z",
"UserToken": "string",
"Suspended": false,
"LockWorkerId": 0,
"DueDate": "2026-01-01T00:00:00Z",
"RoleId": "00000000-0000-0000-0000-000000000000",
"Status": null,
"ActivityActive": false,
"ActivityId": "00000000-0000-0000-0000-000000000000",
"ItemId": "00000000-0000-0000-0000-000000000000",
"HoldStatus": null,
"ScheduledHoldVerification": "2026-01-01T00:00:00Z"
})
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_ProcessingAPI/ResubmitWorkitem", {
method: "POST",
headers: { "TempIdentityToken": process.env.KL_TOKEN, "Content-Type": "application/json" },
body: JSON.stringify({
"BatchName": "string",
"HoldId": "00000000-0000-0000-0000-000000000000",
"ScheduledDeletion": "2026-01-01T00:00:00Z",
"UserLockTimeStamp": "2026-01-01T00:00:00Z",
"WorkerLockTimeStamp": "2026-01-01T00:00:00Z",
"UserToken": "string",
"Suspended": false,
"LockWorkerId": 0,
"DueDate": "2026-01-01T00:00:00Z",
"RoleId": "00000000-0000-0000-0000-000000000000",
"Status": null,
"ActivityActive": false,
"ActivityId": "00000000-0000-0000-0000-000000000000",
"ItemId": "00000000-0000-0000-0000-000000000000",
"HoldStatus": null,
"ScheduledHoldVerification": "2026-01-01T00:00:00Z"
})
});
const data = await r.json();
if (!data.Success) throw new Error(data.MessageKey ?? JSON.stringify(data.Messages));
console.log(data.Data);
SendWorkItemToProcess¶
Sends the workitem provided as a parameter to a specified process
- Content type application/json
- Status legacy. Keep existing integrations; do not build new ones.
Request¶
Identifying information for the work item.
Schema: SendBatchToProcessDTO. A grouping object for workitem and process objects
| Field | Type | Description |
|---|---|---|
WorkItem |
object | Workitem under operation |
Process |
object | Process to send the workitem to |
Response¶
The workitem as idenitfied by the passed in parameter
Envelope: DataResponseWorkItemDTO. Data is WorkItemDTO.
{
"Success": true,
"MessageKey": null,
"Data": {
"BatchName": "Batch Name",
"HoldId": "00000000-0000-0000-0000-000000000000",
"ScheduledDeletion": "2026-10-07T20:19:08.9209608+00:00",
"UserLockTimeStamp": "2026-10-07T20:19:08.9209609+00:00",
"WorkerLockTimeStamp": "2026-10-07T20:19:08.9209610+00:00",
"UserToken": "admin_00000000-0000-0000-0000-000000000000",
"Suspended": false,
"LockWorkerId": null,
"DueDate": "2026-10-07T20:19:08.9209613+00:00",
"RoleId": "00000000-0000-0000-0000-000000000000",
"Status": "Active",
"ActivityActive": true,
"ActivityId": "00000000-0000-0000-0000-000000000000",
"ItemId": "00000000-0000-0000-0000-000000000000",
"HoldStatus": null,
"ScheduledHoldVerification": 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 V1ProcessingAPIApi(config);
var response = await api.V1ProcessingAPIControllerSendWorkItemToProcessAsync(new SendBatchToProcessDTO
{
WorkItem = new WorkItemDTO
{
Status = WorkItemDTOStatus.New,
HoldStatus = WorkItemHoldStatus.None,
BatchName = "string",
HoldId = Guid.Parse("00000000-0000-0000-0000-000000000000"),
ScheduledDeletion = DateTime.Parse("2026-01-01T00:00:00Z"),
UserLockTimeStamp = DateTime.Parse("2026-01-01T00:00:00Z"),
WorkerLockTimeStamp = DateTime.Parse("2026-01-01T00:00:00Z"),
UserToken = "string",
// More properties: see WorkItemDTO on the Schemas page
},
Process = new ProcessDTO
{
Id = Guid.Parse("00000000-0000-0000-0000-000000000000"),
Name = "string",
VarVersion = 0,
CheckOutUserToken = "string",
FirstActivityID = Guid.Parse("00000000-0000-0000-0000-000000000000"),
Activities = new List<ActivityDTO> { new ActivityDTO() },
},
});
if (response.Success != true) throw new Exception(response.MessageKey);
Console.WriteLine(response.Data);
$body = @'
{
"WorkItem": null,
"Process": null
}
'@
$r = Invoke-RestMethod -Method Post -Uri "https://yourcompany.knowledgelake.io/api/V1_ProcessingAPI/SendWorkItemToProcess" `
-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_ProcessingAPI/SendWorkItemToProcess",
headers={"TempIdentityToken": os.environ["KL_TOKEN"]},
json={
"WorkItem": null,
"Process": null
})
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_ProcessingAPI/SendWorkItemToProcess", {
method: "POST",
headers: { "TempIdentityToken": process.env.KL_TOKEN, "Content-Type": "application/json" },
body: JSON.stringify({
"WorkItem": null,
"Process": null
})
});
const data = await r.json();
if (!data.Success) throw new Error(data.MessageKey ?? JSON.stringify(data.Messages));
console.log(data.Data);
StartWorkitem¶
Starts the workitem provided as a parameter
- Content type application/json
- Status legacy. Keep existing integrations; do not build new ones.
Request¶
The work item to start.
Schema: WorkItemDTO. An object representation of a work item
| Field | Type | Description |
|---|---|---|
BatchName |
string | Name of the work item |
HoldId |
string (uuid) | ID of the hold on the work item, if a hold exists |
ScheduledDeletion |
string (date-time) | Scheduled deletion datetime of the work item |
UserLockTimeStamp |
string (date-time) | Datetime that an identity obtained a lock on the work item, if a lock exists |
WorkerLockTimeStamp |
string (date-time) | Datetime that a worker obtained a lock on the work item, if a lock exists |
UserToken |
string | User token of the identity with a lock on the work item, if a lock exists |
Suspended |
boolean | Indicator of whether the batch was suspended |
LockWorkerId |
integer | Identifier of the worker with a lock on the work item, if a lock exists |
DueDate |
string (date-time) | Internal property intended to manage the prioritization of work items for processing |
RoleId |
string (uuid) | ID of the role associated with the worker/activity that the work item occupies |
Status |
object | Status of the work item |
ActivityActive |
boolean | Indicator of whether the work item is currently in an active activity |
ActivityId |
string (uuid) | ID of the activity that the work item currently occupies |
ItemId |
string (uuid) | ID of the work item |
HoldStatus |
object | Status of a hold on the work item |
ScheduledHoldVerification |
string (date-time) | Datetime of the next evaluation of the hold status of the work item |
Response¶
The workitem as idenitfied by the passed in parameter
Envelope: DataResponseWorkItemDTO. Data is WorkItemDTO.
{
"Success": true,
"MessageKey": null,
"Data": {
"BatchName": "Batch Name",
"HoldId": "00000000-0000-0000-0000-000000000000",
"ScheduledDeletion": "2026-10-07T20:19:08.9208389+00:00",
"UserLockTimeStamp": "2026-10-07T20:19:08.9208390+00:00",
"WorkerLockTimeStamp": "2026-10-07T20:19:08.9208391+00:00",
"UserToken": "admin_00000000-0000-0000-0000-000000000000",
"Suspended": false,
"LockWorkerId": null,
"DueDate": "2026-10-07T20:19:08.9208393+00:00",
"RoleId": "00000000-0000-0000-0000-000000000000",
"Status": "Active",
"ActivityActive": true,
"ActivityId": "00000000-0000-0000-0000-000000000000",
"ItemId": "00000000-0000-0000-0000-000000000000",
"HoldStatus": null,
"ScheduledHoldVerification": 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 V1ProcessingAPIApi(config);
var response = await api.V1ProcessingAPIControllerStartWorkitemAsync(new WorkItemDTO
{
Status = WorkItemDTOStatus.New,
HoldStatus = WorkItemHoldStatus.None,
BatchName = "string",
HoldId = Guid.Parse("00000000-0000-0000-0000-000000000000"),
ScheduledDeletion = DateTime.Parse("2026-01-01T00:00:00Z"),
UserLockTimeStamp = DateTime.Parse("2026-01-01T00:00:00Z"),
WorkerLockTimeStamp = DateTime.Parse("2026-01-01T00:00:00Z"),
UserToken = "string",
// More properties: see WorkItemDTO on the Schemas page
});
if (response.Success != true) throw new Exception(response.MessageKey);
Console.WriteLine(response.Data);
curl -sS -X POST "https://yourcompany.knowledgelake.io/api/V1_ProcessingAPI/StartWorkitem" \
-H "TempIdentityToken: $KL_TOKEN" \
-H "Content-Type: application/json" \
-d '{"BatchName": "string", "HoldId": "00000000-0000-0000-0000-000000000000", "ScheduledDeletion": "2026-01-01T00:00:00Z", "UserLockTimeStamp": "2026-01-01T00:00:00Z", "WorkerLockTimeStamp": "2026-01-01T00:00:00Z", "UserToken": "string", "Suspended": false, "LockWorkerId": 0, "DueDate": "2026-01-01T00:00:00Z", "RoleId": "00000000-0000-0000-0000-000000000000", "Status": null, "ActivityActive": false, "ActivityId": "00000000-0000-0000-0000-000000000000", "ItemId": "00000000-0000-0000-0000-000000000000", "HoldStatus": null, "ScheduledHoldVerification": "2026-01-01T00:00:00Z"}'
$body = @'
{
"BatchName": "string",
"HoldId": "00000000-0000-0000-0000-000000000000",
"ScheduledDeletion": "2026-01-01T00:00:00Z",
"UserLockTimeStamp": "2026-01-01T00:00:00Z",
"WorkerLockTimeStamp": "2026-01-01T00:00:00Z",
"UserToken": "string",
"Suspended": false,
"LockWorkerId": 0,
"DueDate": "2026-01-01T00:00:00Z",
"RoleId": "00000000-0000-0000-0000-000000000000",
"Status": null,
"ActivityActive": false,
"ActivityId": "00000000-0000-0000-0000-000000000000",
"ItemId": "00000000-0000-0000-0000-000000000000",
"HoldStatus": null,
"ScheduledHoldVerification": "2026-01-01T00:00:00Z"
}
'@
$r = Invoke-RestMethod -Method Post -Uri "https://yourcompany.knowledgelake.io/api/V1_ProcessingAPI/StartWorkitem" `
-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_ProcessingAPI/StartWorkitem",
headers={"TempIdentityToken": os.environ["KL_TOKEN"]},
json={
"BatchName": "string",
"HoldId": "00000000-0000-0000-0000-000000000000",
"ScheduledDeletion": "2026-01-01T00:00:00Z",
"UserLockTimeStamp": "2026-01-01T00:00:00Z",
"WorkerLockTimeStamp": "2026-01-01T00:00:00Z",
"UserToken": "string",
"Suspended": false,
"LockWorkerId": 0,
"DueDate": "2026-01-01T00:00:00Z",
"RoleId": "00000000-0000-0000-0000-000000000000",
"Status": null,
"ActivityActive": false,
"ActivityId": "00000000-0000-0000-0000-000000000000",
"ItemId": "00000000-0000-0000-0000-000000000000",
"HoldStatus": null,
"ScheduledHoldVerification": "2026-01-01T00:00:00Z"
})
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_ProcessingAPI/StartWorkitem", {
method: "POST",
headers: { "TempIdentityToken": process.env.KL_TOKEN, "Content-Type": "application/json" },
body: JSON.stringify({
"BatchName": "string",
"HoldId": "00000000-0000-0000-0000-000000000000",
"ScheduledDeletion": "2026-01-01T00:00:00Z",
"UserLockTimeStamp": "2026-01-01T00:00:00Z",
"WorkerLockTimeStamp": "2026-01-01T00:00:00Z",
"UserToken": "string",
"Suspended": false,
"LockWorkerId": 0,
"DueDate": "2026-01-01T00:00:00Z",
"RoleId": "00000000-0000-0000-0000-000000000000",
"Status": null,
"ActivityActive": false,
"ActivityId": "00000000-0000-0000-0000-000000000000",
"ItemId": "00000000-0000-0000-0000-000000000000",
"HoldStatus": null,
"ScheduledHoldVerification": "2026-01-01T00:00:00Z"
})
});
const data = await r.json();
if (!data.Success) throw new Error(data.MessageKey ?? JSON.stringify(data.Messages));
console.log(data.Data);
StopWorkitem¶
Stops the workitem provided as a parameter
- Content type application/json
- Status legacy. Keep existing integrations; do not build new ones.
Request¶
Identifying information for the work item.
Schema: WorkItemDTO. An object representation of a work item
| Field | Type | Description |
|---|---|---|
BatchName |
string | Name of the work item |
HoldId |
string (uuid) | ID of the hold on the work item, if a hold exists |
ScheduledDeletion |
string (date-time) | Scheduled deletion datetime of the work item |
UserLockTimeStamp |
string (date-time) | Datetime that an identity obtained a lock on the work item, if a lock exists |
WorkerLockTimeStamp |
string (date-time) | Datetime that a worker obtained a lock on the work item, if a lock exists |
UserToken |
string | User token of the identity with a lock on the work item, if a lock exists |
Suspended |
boolean | Indicator of whether the batch was suspended |
LockWorkerId |
integer | Identifier of the worker with a lock on the work item, if a lock exists |
DueDate |
string (date-time) | Internal property intended to manage the prioritization of work items for processing |
RoleId |
string (uuid) | ID of the role associated with the worker/activity that the work item occupies |
Status |
object | Status of the work item |
ActivityActive |
boolean | Indicator of whether the work item is currently in an active activity |
ActivityId |
string (uuid) | ID of the activity that the work item currently occupies |
ItemId |
string (uuid) | ID of the work item |
HoldStatus |
object | Status of a hold on the work item |
ScheduledHoldVerification |
string (date-time) | Datetime of the next evaluation of the hold status of the work item |
Response¶
The workitem as idenitfied by the passed in parameter
Envelope: DataResponseWorkItemDTO. Data is WorkItemDTO.
{
"Success": true,
"MessageKey": null,
"Data": {
"BatchName": "Batch Name",
"HoldId": "00000000-0000-0000-0000-000000000000",
"ScheduledDeletion": "2026-10-07T20:19:08.9208603+00:00",
"UserLockTimeStamp": "2026-10-07T20:19:08.9208604+00:00",
"WorkerLockTimeStamp": "2026-10-07T20:19:08.9208605+00:00",
"UserToken": "admin_00000000-0000-0000-0000-000000000000",
"Suspended": false,
"LockWorkerId": null,
"DueDate": "2026-10-07T20:19:08.9208607+00:00",
"RoleId": "00000000-0000-0000-0000-000000000000",
"Status": "Active",
"ActivityActive": true,
"ActivityId": "00000000-0000-0000-0000-000000000000",
"ItemId": "00000000-0000-0000-0000-000000000000",
"HoldStatus": null,
"ScheduledHoldVerification": 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 V1ProcessingAPIApi(config);
var response = await api.V1ProcessingAPIControllerStopWorkitemAsync(new WorkItemDTO
{
Status = WorkItemDTOStatus.New,
HoldStatus = WorkItemHoldStatus.None,
BatchName = "string",
HoldId = Guid.Parse("00000000-0000-0000-0000-000000000000"),
ScheduledDeletion = DateTime.Parse("2026-01-01T00:00:00Z"),
UserLockTimeStamp = DateTime.Parse("2026-01-01T00:00:00Z"),
WorkerLockTimeStamp = DateTime.Parse("2026-01-01T00:00:00Z"),
UserToken = "string",
// More properties: see WorkItemDTO on the Schemas page
});
if (response.Success != true) throw new Exception(response.MessageKey);
Console.WriteLine(response.Data);
curl -sS -X POST "https://yourcompany.knowledgelake.io/api/V1_ProcessingAPI/StopWorkitem" \
-H "TempIdentityToken: $KL_TOKEN" \
-H "Content-Type: application/json" \
-d '{"BatchName": "string", "HoldId": "00000000-0000-0000-0000-000000000000", "ScheduledDeletion": "2026-01-01T00:00:00Z", "UserLockTimeStamp": "2026-01-01T00:00:00Z", "WorkerLockTimeStamp": "2026-01-01T00:00:00Z", "UserToken": "string", "Suspended": false, "LockWorkerId": 0, "DueDate": "2026-01-01T00:00:00Z", "RoleId": "00000000-0000-0000-0000-000000000000", "Status": null, "ActivityActive": false, "ActivityId": "00000000-0000-0000-0000-000000000000", "ItemId": "00000000-0000-0000-0000-000000000000", "HoldStatus": null, "ScheduledHoldVerification": "2026-01-01T00:00:00Z"}'
$body = @'
{
"BatchName": "string",
"HoldId": "00000000-0000-0000-0000-000000000000",
"ScheduledDeletion": "2026-01-01T00:00:00Z",
"UserLockTimeStamp": "2026-01-01T00:00:00Z",
"WorkerLockTimeStamp": "2026-01-01T00:00:00Z",
"UserToken": "string",
"Suspended": false,
"LockWorkerId": 0,
"DueDate": "2026-01-01T00:00:00Z",
"RoleId": "00000000-0000-0000-0000-000000000000",
"Status": null,
"ActivityActive": false,
"ActivityId": "00000000-0000-0000-0000-000000000000",
"ItemId": "00000000-0000-0000-0000-000000000000",
"HoldStatus": null,
"ScheduledHoldVerification": "2026-01-01T00:00:00Z"
}
'@
$r = Invoke-RestMethod -Method Post -Uri "https://yourcompany.knowledgelake.io/api/V1_ProcessingAPI/StopWorkitem" `
-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_ProcessingAPI/StopWorkitem",
headers={"TempIdentityToken": os.environ["KL_TOKEN"]},
json={
"BatchName": "string",
"HoldId": "00000000-0000-0000-0000-000000000000",
"ScheduledDeletion": "2026-01-01T00:00:00Z",
"UserLockTimeStamp": "2026-01-01T00:00:00Z",
"WorkerLockTimeStamp": "2026-01-01T00:00:00Z",
"UserToken": "string",
"Suspended": false,
"LockWorkerId": 0,
"DueDate": "2026-01-01T00:00:00Z",
"RoleId": "00000000-0000-0000-0000-000000000000",
"Status": null,
"ActivityActive": false,
"ActivityId": "00000000-0000-0000-0000-000000000000",
"ItemId": "00000000-0000-0000-0000-000000000000",
"HoldStatus": null,
"ScheduledHoldVerification": "2026-01-01T00:00:00Z"
})
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_ProcessingAPI/StopWorkitem", {
method: "POST",
headers: { "TempIdentityToken": process.env.KL_TOKEN, "Content-Type": "application/json" },
body: JSON.stringify({
"BatchName": "string",
"HoldId": "00000000-0000-0000-0000-000000000000",
"ScheduledDeletion": "2026-01-01T00:00:00Z",
"UserLockTimeStamp": "2026-01-01T00:00:00Z",
"WorkerLockTimeStamp": "2026-01-01T00:00:00Z",
"UserToken": "string",
"Suspended": false,
"LockWorkerId": 0,
"DueDate": "2026-01-01T00:00:00Z",
"RoleId": "00000000-0000-0000-0000-000000000000",
"Status": null,
"ActivityActive": false,
"ActivityId": "00000000-0000-0000-0000-000000000000",
"ItemId": "00000000-0000-0000-0000-000000000000",
"HoldStatus": null,
"ScheduledHoldVerification": "2026-01-01T00:00:00Z"
})
});
const data = await r.json();
if (!data.Success) throw new Error(data.MessageKey ?? JSON.stringify(data.Messages));
console.log(data.Data);
UnlockWorkItem¶
Unlocks an existing work item.
- Content type application/json
- Status legacy. Keep existing integrations; do not build new ones.
Request¶
Identifying information for the work item.
Schema: WorkItemIdentifierParameter. Identifying information for a work item
| Field | Type | Description |
|---|---|---|
BatchId |
string (uuid) | ID of the work item |
Response¶
The workitem as idenitfied by the passed in parameter
Envelope: DataResponseWorkItemDTO. Data is WorkItemDTO.
{
"Success": true,
"MessageKey": null,
"Data": {
"BatchName": "Batch Name",
"HoldId": "00000000-0000-0000-0000-000000000000",
"ScheduledDeletion": "2026-10-07T20:19:08.9207176+00:00",
"UserLockTimeStamp": "2026-10-07T20:19:08.9207176+00:00",
"WorkerLockTimeStamp": "2026-10-07T20:19:08.9207177+00:00",
"UserToken": "admin_00000000-0000-0000-0000-000000000000",
"Suspended": false,
"LockWorkerId": null,
"DueDate": "2026-10-07T20:19:08.9207178+00:00",
"RoleId": "00000000-0000-0000-0000-000000000000",
"Status": "Active",
"ActivityActive": true,
"ActivityId": "00000000-0000-0000-0000-000000000000",
"ItemId": "00000000-0000-0000-0000-000000000000",
"HoldStatus": null,
"ScheduledHoldVerification": 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 V1ProcessingAPIApi(config);
var response = await api.V1ProcessingAPIControllerUnlockWorkItemAsync(new WorkItemIdentifierParameter
{
BatchId = Guid.Parse("00000000-0000-0000-0000-000000000000"),
});
if (response.Success != true) throw new Exception(response.MessageKey);
Console.WriteLine(response.Data);
$body = @'
{
"BatchId": "00000000-0000-0000-0000-000000000000"
}
'@
$r = Invoke-RestMethod -Method Post -Uri "https://yourcompany.knowledgelake.io/api/V1_ProcessingAPI/UnlockWorkItem" `
-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_ProcessingAPI/UnlockWorkItem",
headers={"TempIdentityToken": os.environ["KL_TOKEN"]},
json={
"BatchId": "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_ProcessingAPI/UnlockWorkItem", {
method: "POST",
headers: { "TempIdentityToken": process.env.KL_TOKEN, "Content-Type": "application/json" },
body: JSON.stringify({
"BatchId": "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);