How a Kompis works
- Its job is plain words. A change of job is a new version; a run under way keeps the version it started with.
- It acts with a role, never above its creator’s. It may decide a case only when it is allowed to and only within its decision rules, which are checked when it decides.
- What it may not do alone becomes a proposal for a person to confirm. A proposal waits 24 hours, then does nothing.
- It pauses itself at its actions a day (200 by default), at its monthly token budget, after three failed runs in a row, or when the workspace’s Kompisar budget is reached. One switch pauses the whole team.
- It finds what the team taught it by searching the team memory before it works. A pinned entry is read on every run.
The Kompis object
idThe Kompis’s id, starting with
kmp_.jobIts job in plain words, the current version.
versionsholds every earlier one, with who wrote it.roleThe role it acts with:
analyst,admin,developerorviewer.statusdraft,active,pausedorarchived;paused_reasonsays why it paused.triggersThe events and schedules that start it, each with its filters, such as
{"document_type": "payslip,bank_statement", "tag_kind": "fraud"}.decision_rulesWith
may_decide: the outcomes it may set, whether every document must be Trusted and every requirement met, and the largest amount.limitsactions_per_dayandmonthly_token_budget.monthIts runs, actions, tokens and cost this month.
The team
{
"id": "kmp_4Tq8Rn2",
"object": "kompis",
"name": "Payslip triage",
"description": "Makes sure a person sees every flagged payslip and bank statement the same day.",
"job": "When a payslip or a bank statement is checked with a fraud finding, give its case to the fraud lead and note the findings in plain words. If there is no case yet, flag the document for review.",
"job_version": 2,
"versions": [
{
"version": 1,
"job": "When a payslip is checked with a fraud finding, give its case to the fraud lead.",
"at": "2026-10-16T09:00:00Z",
"by": "Maria Lind"
},
{
"version": 2,
"job": "When a payslip or a bank statement is checked with a fraud finding, give its case to the fraud lead and note the findings in plain words. If there is no case yet, flag the document for review.",
"at": "2026-11-02T13:20:00Z",
"by": "Maria Lind"
}
],
"color": "orange",
"role": "analyst",
"owner_id": "mem_9Wd2Hc5",
"owner_name": "Maria Lind",
"status": "active",
"paused_reason": null,
"triggers": [
{
"id": "ktr_1Hs6Wd3",
"on": "document.checked",
"filters": {
"document_type": "payslip,bank_statement",
"tag_kind": "fraud"
},
"schedule": null,
"label": "A payslip or bank statement is checked with a fraud finding"
}
],
"may_decide": false,
"decision_rules": {
"outcomes": [
"approved"
],
"all_documents_trusted": true,
"all_requirements_met": true,
"max_amount": null
},
"message_templates": [],
"policy_ids": [],
"limits": {
"actions_per_day": 200,
"monthly_token_budget": 2000000
},
"created_at": "2026-10-16T09:00:00Z",
"updated_at": "2026-11-02T13:20:00Z",
"activity": "Waiting for the next flagged payslip",
"last_run": {
"id": "krun_9Bc3Lx7",
"at": "2026-11-26T09:42:05Z",
"status": "completed",
"result": "done",
"summary": "Gave BW-4463 to Elif Kaya and noted the payslip's two findings."
},
"next_at": null,
"month": {
"runs": 31,
"actions": 58,
"tokens": 214880,
"cost": 2.15
},
"pending_proposals": 0
}GET/v1/kompisar
Every Kompis of the workspace with its job, triggers, state, last run, and its runs and token cost this month.
- Who may
- Owner, Admin, Analyst and Viewer; Developer in test mode
- CLI
kontiga kompisar list [--status <draft|active|paused|archived>]- MCP tool
list_kompisar- Returns
- The Kompisar, each with what it is doing now and its use this month.
Parameters
statusOnly Kompisar in this state. One of
draft,active,paused,archived.
curl -X GET "https://api.kontiga.com/v1/kompisar?status=active" \
-H "Authorization: Bearer $KONTIGA_API_KEY"GET /v1/kompisar
{
"items": [
{
"id": "kmp_4Tq8Rn2",
"object": "kompis",
"name": "Payslip triage",
"color": "orange",
"role": "analyst",
"status": "active",
"activity": "Waiting for the next flagged payslip",
"month": {
"runs": 31,
"actions": 58,
"tokens": 214880,
"cost": 2.15
}
},
{
"id": "kmp_7Wn2Cs5",
"object": "kompis",
"name": "Chaser",
"color": "teal",
"role": "analyst",
"status": "active",
"activity": "Asleep until Fri 08:00",
"month": {
"runs": 64,
"actions": 41,
"tokens": 188420,
"cost": 1.88
}
},
{
"id": "kmp_2Dk9Hv1",
"object": "kompis",
"name": "Duplicate hunter",
"color": "moss",
"role": "analyst",
"status": "paused",
"paused_reason": "failures",
"activity": "Paused after three failed runs in a row",
"month": {
"runs": 9,
"actions": 4,
"tokens": 61200,
"cost": 0.61
}
}
],
"next_cursor": null
}GET/v1/kompisar/{kompis_id}
One Kompis: its job and every earlier version of it, its triggers, role, decision rules, templates, limits and what it is doing now.
- Who may
- Owner, Admin, Analyst and Viewer; Developer in test mode
- CLI
kontiga kompisar get <kompis_id>- MCP tool
get_kompis- Returns
- The Kompis as it stands.
Parameters
kompis_idRequiredThe Kompis to read. In the path.
curl -X GET https://api.kontiga.com/v1/kompisar/kmp_4Tq8Rn2 \
-H "Authorization: Bearer $KONTIGA_API_KEY"GET /v1/kompisar/{kompis_id}
{
"id": "kmp_4Tq8Rn2",
"object": "kompis",
"name": "Payslip triage",
"description": "Makes sure a person sees every flagged payslip and bank statement the same day.",
"job": "When a payslip or a bank statement is checked with a fraud finding, give its case to the fraud lead and note the findings in plain words. If there is no case yet, flag the document for review.",
"job_version": 2,
"versions": [
{
"version": 1,
"job": "When a payslip is checked with a fraud finding, give its case to the fraud lead.",
"at": "2026-10-16T09:00:00Z",
"by": "Maria Lind"
},
{
"version": 2,
"job": "When a payslip or a bank statement is checked with a fraud finding, give its case to the fraud lead and note the findings in plain words. If there is no case yet, flag the document for review.",
"at": "2026-11-02T13:20:00Z",
"by": "Maria Lind"
}
],
"color": "orange",
"role": "analyst",
"owner_id": "mem_9Wd2Hc5",
"owner_name": "Maria Lind",
"status": "active",
"paused_reason": null,
"triggers": [
{
"id": "ktr_1Hs6Wd3",
"on": "document.checked",
"filters": {
"document_type": "payslip,bank_statement",
"tag_kind": "fraud"
},
"schedule": null,
"label": "A payslip or bank statement is checked with a fraud finding"
}
],
"may_decide": false,
"decision_rules": {
"outcomes": [
"approved"
],
"all_documents_trusted": true,
"all_requirements_met": true,
"max_amount": null
},
"message_templates": [],
"policy_ids": [],
"limits": {
"actions_per_day": 200,
"monthly_token_budget": 2000000
},
"created_at": "2026-10-16T09:00:00Z",
"updated_at": "2026-11-02T13:20:00Z",
"activity": "Waiting for the next flagged payslip",
"last_run": {
"id": "krun_9Bc3Lx7",
"at": "2026-11-26T09:42:05Z",
"status": "completed",
"result": "done",
"summary": "Gave BW-4463 to Elif Kaya and noted the payslip's two findings."
},
"next_at": null,
"month": {
"runs": 31,
"actions": 58,
"tokens": 214880,
"cost": 2.15
},
"pending_proposals": 0
}GET/v1/kompisar/team
The team’s pause switch, its monthly token budget, its runs, actions, tokens and cost this month, and how many Kompisar are working or waiting for you.
- Who may
- Owner, Admin, Analyst and Viewer; Developer in test mode
- CLI
kontiga kompisar team- MCP tool
get_kompis_team- Returns
- The team’s switch, budget and use this month, with the sample price per token.
No parameters.
curl -X GET https://api.kontiga.com/v1/kompisar/team \
-H "Authorization: Bearer $KONTIGA_API_KEY"GET /v1/kompisar/team
{
"object": "kompisar_team",
"paused": false,
"paused_by": null,
"paused_at": null,
"monthly_token_budget": 14000000,
"month": {
"runs": 162,
"actions": 241,
"tokens": 739009,
"cost": 7.4
},
"counts": {
"total": 7,
"active": 5,
"paused": 1,
"draft": 1,
"working": 1,
"waiting": 2
},
"price_per_million_tokens": 10,
"currency": "USD",
"prices_are_samples": true
}GET/v1/kompisar/catalog
The events and schedules that can start a Kompis, the brand kit’s templates it may send, the roles it may act with and the ready jobs to start from.
- Who may
- Owner, Admin, Analyst and Viewer; Developer in test mode
- CLI
kontiga kompisar catalog- MCP tool
get_kompis_catalog- Returns
- Every trigger with its filters, every template, every role and every ready job.
No parameters.
curl -X GET https://api.kontiga.com/v1/kompisar/catalog \
-H "Authorization: Bearer $KONTIGA_API_KEY"GET /v1/kompisar/catalog
{
"object": "kompis_catalog",
"triggers": [
{
"on": "document.checked",
"group": "documents",
"label": "A document is checked",
"filters": [
{
"key": "document_type",
"label": "Type of document"
},
{
"key": "verdict",
"label": "Verdict"
},
{
"key": "tag_kind",
"label": "Has"
}
]
},
{
"on": "request.sent",
"group": "requests",
"label": "A request is sent",
"filters": []
},
{
"on": "schedule",
"group": "time",
"label": "On a schedule",
"filters": []
}
],
"templates": [
{
"id": "tpl_reminder",
"name": "Reminder: documents still missing",
"body": "We are still waiting for a few documents. Open your link to upload them; it takes a couple of minutes."
},
{
"id": "tpl_ask_again",
"name": "Ask again for a document, with the reason",
"body": "Thank you for your document. We need it again: {reason}. Open your link to upload a new one."
}
],
"roles": [
{
"value": "analyst",
"label": "Analyst",
"can": "Reads and works cases, people, documents and requests, and decides cases within its rules"
},
{
"value": "viewer",
"label": "Viewer",
"can": "Reads everything and changes nothing; it can still tell your team"
}
],
"ready_jobs": [
{
"name": "Chaser",
"description": "Gets the missing documents in without anyone chasing by hand."
},
{
"name": "Morning digest",
"description": "Tells the team what needs attention before the day starts."
}
]
}POST/v1/kompisar
A new Kompis from a name, a one-line description and its job in plain words, with its role, triggers, limits and, if it decides cases, the rules it decides within. Once started it acts on its own within its role.
- Who may
- Owner and Admin
- CLI
kontiga kompisar create --name <name> --job <text> --role <analyst|admin|developer|viewer> [--description <text>] [--color <orange|teal|cobalt|gold|raspberry|sky|moss>] [--triggers <json>] [--may-decide] [--decision-rules <json>] [--message-templates <template_id,...>] [--policy-ids <policy_id,...>] [--actions-per-day <n>] [--monthly-token-budget <tokens>] [--start <true|false>]- MCP tool
create_kompis- Returns
- The Kompis, active or a draft.
Parameters
nameRequiredIts name, as the team sees it. At most 40 characters.
descriptionOne line: what it is for. At most 160 characters.
jobRequiredIts job in plain words: when it acts, what it does, and when it hands over. At most 2,000 characters.
colorIts colour on avatars and in lists. One of
orange,teal,cobalt,gold,raspberry,sky,moss.roleRequiredThe role it acts with, never above yours. One of
analyst,admin,developer,viewer.triggersWhat starts it: each an event of the catalogue as
onwith itsfilters, oron: "schedule"with aschedule(daysandat, orevery_hours, at least 15 minutes apart).may_decideWhether it may decide cases, within
decision_rules.decision_rulesoutcomesit may set,all_documents_trusted,all_requirements_met, andmax_amountin the workspace’s currency ornull.message_templatesThe brand kit’s templates it may send end customers on its own, by id such as
tpl_reminder. At most 10 items.policy_idsThe policies it consults. At most 5 items.
actions_per_dayActions a day before it pauses until the next day. At least 1, at most 5,000.
monthly_token_budgetTokens a month before it pauses until the next month or a raised budget. At least 10,000, at most 500,000,000.
startStart it at once.
falsekeeps it a draft.
curl -X POST https://api.kontiga.com/v1/kompisar \
-H "Authorization: Bearer $KONTIGA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Payslip triage",
"description": "Makes sure a person sees every flagged payslip and bank statement the same day.",
"job": "When a payslip or a bank statement is checked with a fraud finding, give its case to the fraud lead and note the findings in plain words. If there is no case yet, flag the document for review.",
"color": "orange",
"role": "analyst",
"triggers": [
{
"on": "document.checked",
"filters": {
"document_type": "payslip,bank_statement",
"tag_kind": "fraud"
}
}
]
}'POST /v1/kompisar
{
"id": "kmp_4Tq8Rn2",
"object": "kompis",
"name": "Payslip triage",
"description": "Makes sure a person sees every flagged payslip and bank statement the same day.",
"job": "When a payslip or a bank statement is checked with a fraud finding, give its case to the fraud lead and note the findings in plain words. If there is no case yet, flag the document for review.",
"job_version": 2,
"versions": [
{
"version": 1,
"job": "When a payslip is checked with a fraud finding, give its case to the fraud lead.",
"at": "2026-10-16T09:00:00Z",
"by": "Maria Lind"
},
{
"version": 2,
"job": "When a payslip or a bank statement is checked with a fraud finding, give its case to the fraud lead and note the findings in plain words. If there is no case yet, flag the document for review.",
"at": "2026-11-02T13:20:00Z",
"by": "Maria Lind"
}
],
"color": "orange",
"role": "analyst",
"owner_id": "mem_9Wd2Hc5",
"owner_name": "Maria Lind",
"status": "active",
"paused_reason": null,
"triggers": [
{
"id": "ktr_1Hs6Wd3",
"on": "document.checked",
"filters": {
"document_type": "payslip,bank_statement",
"tag_kind": "fraud"
},
"schedule": null,
"label": "A payslip or bank statement is checked with a fraud finding"
}
],
"may_decide": false,
"decision_rules": {
"outcomes": [
"approved"
],
"all_documents_trusted": true,
"all_requirements_met": true,
"max_amount": null
},
"message_templates": [],
"policy_ids": [],
"limits": {
"actions_per_day": 200,
"monthly_token_budget": 2000000
},
"created_at": "2026-10-16T09:00:00Z",
"updated_at": "2026-11-02T13:20:00Z",
"activity": "Waiting for the next flagged payslip",
"last_run": {
"id": "krun_9Bc3Lx7",
"at": "2026-11-26T09:42:05Z",
"status": "completed",
"result": "done",
"summary": "Gave BW-4463 to Elif Kaya and noted the payslip's two findings."
},
"next_at": null,
"month": {
"runs": 31,
"actions": 58,
"tokens": 214880,
"cost": 2.15
},
"pending_proposals": 0
}PATCH/v1/kompisar/{kompis_id}
Change a Kompis’s name, colour, role, triggers, decision rules, templates or limits. A run under way keeps the settings it started with.
- Who may
- Owner and Admin
- CLI
kontiga kompisar update <kompis_id> [--name <name>] [--description <text>] [--color <orange|teal|cobalt|gold|raspberry|sky|moss>] [--role <analyst|admin|developer|viewer>] [--triggers <json>] [--may-decide <true|false>] [--decision-rules <json>] [--message-templates <template_id,...>] [--policy-ids <policy_id,...>] [--actions-per-day <n>] [--monthly-token-budget <tokens>]- MCP tool
update_kompis- Returns
- The Kompis as it now stands.
Parameters
kompis_idRequiredThe Kompis to change. In the path.
nameIts new name. At most 40 characters.
descriptionIts new one-line description. At most 160 characters.
colorIts colour. One of
orange,teal,cobalt,gold,raspberry,sky,moss.roleThe role it acts with, never above yours. One of
analyst,admin,developer,viewer.triggersWhat starts it. The whole list is given. At most 10 items.
may_decideWhether it may decide cases.
decision_rulesThe rules it decides within.
message_templatesThe templates it may send on its own. At most 10 items.
policy_idsThe policies it consults. At most 5 items.
actions_per_dayActions a day before it pauses. At least 1, at most 5,000.
monthly_token_budgetTokens a month before it pauses. At least 10,000, at most 500,000,000.
curl -X PATCH https://api.kontiga.com/v1/kompisar/kmp_4Tq8Rn2 \
-H "Authorization: Bearer $KONTIGA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"actions_per_day": 100
}'PATCH /v1/kompisar/{kompis_id}
{
"id": "kmp_4Tq8Rn2",
"object": "kompis",
"name": "Payslip triage",
"limits": {
"actions_per_day": 100,
"monthly_token_budget": 2000000
},
"updated_at": "2026-11-26T09:48:00Z"
}POST/v1/kompisar/{kompis_id}/instructions
Its job in plain words, rewritten or added to. It becomes the next version of the job; a run under way keeps the version it started with.
- Who may
- Owner and Admin
- CLI
kontiga kompisar instruct <kompis_id> --job <text>- MCP tool
instruct_kompis- Returns
- The Kompis with its new version of the job.
Parameters
kompis_idRequiredThe Kompis. In the path.
jobRequiredIts whole job in plain words, rewritten or added to. At most 2,000 characters.
curl -X POST https://api.kontiga.com/v1/kompisar/kmp_4Tq8Rn2/instructions \
-H "Authorization: Bearer $KONTIGA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"job": "When a payslip or a bank statement is checked with a fraud finding, give its case to the fraud lead and note the findings in plain words. If there is no case yet, flag the document for review. On a case over 50,000, give it to Jonas Eriksen instead."
}'POST /v1/kompisar/{kompis_id}/instructions
{
"id": "kmp_4Tq8Rn2",
"object": "kompis",
"name": "Payslip triage",
"job": "When a payslip or a bank statement is checked with a fraud finding, give its case to the fraud lead and note the findings in plain words. If there is no case yet, flag the document for review. On a case over 50,000, give it to Jonas Eriksen instead.",
"job_version": 3
}POST/v1/kompisar/{kompis_id}/activate
A draft starts acting on its own, within its role, on the next event or schedule that starts it.
- Who may
- Owner and Admin
- CLI
kontiga kompisar activate <kompis_id>- MCP tool
activate_kompis- Returns
- The Kompis, active.
Parameters
kompis_idRequiredThe draft to start. In the path.
curl -X POST https://api.kontiga.com/v1/kompisar/kmp_6Ys1Rb3/activate \
-H "Authorization: Bearer $KONTIGA_API_KEY"POST /v1/kompisar/{kompis_id}/activate
{
"id": "kmp_6Ys1Rb3",
"object": "kompis",
"name": "Policy watcher",
"status": "active"
}POST/v1/kompisar/{kompis_id}/pause
It starts no run until it is resumed. A run under way stops after its current step; its timers and proposals wait, and events that arrive meanwhile are skipped.
- Who may
- Owner, Admin and Analyst; Developer in test mode
- CLI
kontiga kompisar pause <kompis_id>- MCP tool
pause_kompis- Returns
- The Kompis, paused.
Parameters
kompis_idRequiredThe Kompis to pause. In the path.
curl -X POST https://api.kontiga.com/v1/kompisar/kmp_4Tq8Rn2/pause \
-H "Authorization: Bearer $KONTIGA_API_KEY"POST /v1/kompisar/{kompis_id}/pause
{
"id": "kmp_4Tq8Rn2",
"object": "kompis",
"name": "Payslip triage",
"status": "paused",
"paused_reason": "member",
"paused_at": "2026-11-26T09:49:00Z",
"paused_by": "Maria Lind"
}POST/v1/kompisar/{kompis_id}/resume
A paused Kompis acts again on the next event or schedule. What was skipped meanwhile stays skipped; run it by hand if it still matters.
- Who may
- Owner and Admin
- CLI
kontiga kompisar resume <kompis_id>- MCP tool
resume_kompis- Returns
- The Kompis, active again.
Parameters
kompis_idRequiredThe paused Kompis. In the path.
curl -X POST https://api.kontiga.com/v1/kompisar/kmp_4Tq8Rn2/resume \
-H "Authorization: Bearer $KONTIGA_API_KEY"POST /v1/kompisar/{kompis_id}/resume
{
"id": "kmp_4Tq8Rn2",
"object": "kompis",
"name": "Payslip triage",
"status": "active",
"paused_reason": null,
"paused_at": null,
"paused_by": null
}POST/v1/kompisar/{kompis_id}/archive
It stops for good and leaves the team. Its runs and the memory entries it wrote are kept.
- Who may
- Owner and Admin
- CLI
kontiga kompisar archive <kompis_id>- MCP tool
archive_kompis- Returns
- The Kompis, archived.
Parameters
kompis_idRequiredThe Kompis to archive. In the path.
curl -X POST https://api.kontiga.com/v1/kompisar/kmp_2Dk9Hv1/archive \
-H "Authorization: Bearer $KONTIGA_API_KEY"POST /v1/kompisar/{kompis_id}/archive
{
"id": "kmp_2Dk9Hv1",
"object": "kompis",
"name": "Duplicate hunter",
"status": "archived"
}POST/v1/kompisar/pause
Every Kompis stops starting runs at once, whatever its own switch says. Timers and proposals wait.
- Who may
- Owner, Admin and Analyst; Developer in test mode
- CLI
kontiga kompisar pause-team- MCP tool
pause_kompis_team- Returns
- The team, paused.
No parameters.
curl -X POST https://api.kontiga.com/v1/kompisar/pause \
-H "Authorization: Bearer $KONTIGA_API_KEY"POST /v1/kompisar/pause
{
"object": "kompisar_team",
"paused": true,
"paused_by": "Maria Lind",
"paused_at": "2026-11-26T09:50:00Z"
}POST/v1/kompisar/resume
The team switch is off again: each Kompis acts as its own switch says.
- Who may
- Owner and Admin
- CLI
kontiga kompisar resume-team- MCP tool
resume_kompis_team- Returns
- The team, running again.
No parameters.
curl -X POST https://api.kontiga.com/v1/kompisar/resume \
-H "Authorization: Bearer $KONTIGA_API_KEY"POST /v1/kompisar/resume
{
"object": "kompisar_team",
"paused": false,
"paused_by": null,
"paused_at": null
}Runs
A run is one go at the job: what started it, its subject, each step with the registry call it made, the memory it read and wrote, its proposals, its tokens and its cost. A Kompis can hand over to another; a chain stops after three.
POST/v1/kompisar/{kompis_id}/runs
Start a run by hand, on a case, a person, a document or a request, or with nothing named so it looks for its own work. It acts within its role and is charged by its tokens.
- Who may
- Owner, Admin and Analyst; Developer in test mode
- CLI
kontiga kompisar run <kompis_id> [--subject-id <case_id|person_id|document_id|request_id>]- MCP tool
run_kompis- Returns
- The run, queued (202): read it again for its steps.
Parameters
kompis_idRequiredThe Kompis to run. In the path.
subject_idWhat to run it on: a case (
case_), a person (per_), a document (doc_) or a request (rqs_). Left out, it looks for its own work.
curl -X POST https://api.kontiga.com/v1/kompisar/kmp_4Tq8Rn2/runs \
-H "Authorization: Bearer $KONTIGA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"subject_id": "case_7Kq2Xw9"
}'POST /v1/kompisar/{kompis_id}/runs
{
"id": "krun_5Tm8Wq3",
"object": "kompis_run",
"kompis_id": "kmp_4Tq8Rn2",
"mode": "live",
"sandbox": false,
"trigger": {
"kind": "manual",
"label": "Run by hand",
"by": "Maria Lind"
},
"subject": {
"kind": "case",
"id": "case_7Kq2Xw9",
"label": "APP-20418"
},
"status": "queued",
"steps": []
}POST/v1/kompisar/{kompis_id}/test_runs
A sandbox run in test mode: it reads and plans as it would, every change switched off, and shows what it would have done. Never charged.
- Who may
- Owner, Admin and Analyst; Developer in test mode
- CLI
kontiga kompisar test-run <kompis_id> [--subject-id <case_id|person_id|document_id|request_id>]- MCP tool
test_run_kompis- Returns
- The sandbox run, queued: nothing it plans is carried out.
Parameters
kompis_idRequiredThe Kompis to try. In the path.
subject_idWhat to run it on, as for a run.
curl -X POST https://api.kontiga.com/v1/kompisar/kmp_4Tq8Rn2/test_runs \
-H "Authorization: Bearer $KONTIGA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"subject_id": "case_7Kq2Xw9"
}'POST /v1/kompisar/{kompis_id}/test_runs
{
"id": "krun_6Nd2Bv8",
"object": "kompis_run",
"kompis_id": "kmp_4Tq8Rn2",
"mode": "test",
"sandbox": true,
"trigger": {
"kind": "manual",
"label": "Sandbox run",
"by": "Maria Lind"
},
"subject": {
"kind": "case",
"id": "case_7Kq2Xw9",
"label": "APP-20418"
},
"status": "queued",
"steps": [],
"billed": false
}GET/v1/kompis_runs
Runs of the team or of one Kompis, newest first: what started each, its subject, its result, its tokens and cost.
- Who may
- Owner, Admin, Analyst and Viewer; Developer in test mode
- CLI
kontiga kompis-runs list [--kompis-id <kompis_id>] [--status <queued|running|waiting|completed|failed|cancelled|skipped>] [--limit <n>]- MCP tool
list_kompis_runs- Returns
- The runs, each with its steps, proposals, tokens and cost.
Parameters
kompis_idOnly this Kompis’s runs.
statusOnly runs in this state. One of
queued,running,waiting,completed,failed,cancelled,skipped.limitHow many to answer, newest first. At least 1, at most 200.
curl -X GET "https://api.kontiga.com/v1/kompis_runs?kompis_id=kmp_4Tq8Rn2&limit=20" \
-H "Authorization: Bearer $KONTIGA_API_KEY"GET /v1/kompis_runs
{
"items": [
{
"id": "krun_9Bc3Lx7",
"object": "kompis_run",
"kompis_name": "Payslip triage",
"status": "completed",
"result": "done",
"subject": {
"kind": "case",
"id": "case_9Rw2Kc4",
"label": "BW-4463"
},
"started_at": "2026-11-26T09:42:01Z",
"summary": "Gave BW-4463 to Elif Kaya and noted the payslip's two findings.",
"tokens": {
"input": 4630,
"output": 1230
},
"cost": 0.06
},
{
"id": "krun_3Wf6Ty9",
"object": "kompis_run",
"kompis_name": "Payslip triage",
"status": "completed",
"result": "no_change",
"subject": {
"kind": "document",
"id": "doc_8Hn1Xk4",
"label": "Payslip, September 2026"
},
"started_at": "2026-11-25T16:15:30Z",
"summary": "The finding was answered already; nothing to do.",
"tokens": {
"input": 2210,
"output": 180
},
"cost": 0.02
}
],
"next_cursor": "eyJpZCI6ImtydW5fM1dmNlR5OSJ9"
}GET/v1/kompis_runs/{run_id}
One run: what started it, the version of the job it ran, each step with the action it called, the memory it read and wrote, its proposals, tokens and cost.
- Who may
- Owner, Admin, Analyst and Viewer; Developer in test mode
- CLI
kontiga kompis-runs get <run_id>- MCP tool
get_kompis_run- Returns
- The run as it stands.
Parameters
run_idRequiredThe run to read. In the path.
curl -X GET https://api.kontiga.com/v1/kompis_runs/krun_9Bc3Lx7 \
-H "Authorization: Bearer $KONTIGA_API_KEY"GET /v1/kompis_runs/{run_id}
{
"id": "krun_9Bc3Lx7",
"object": "kompis_run",
"kompis_id": "kmp_4Tq8Rn2",
"kompis_name": "Payslip triage",
"mode": "live",
"sandbox": false,
"trigger": {
"kind": "event",
"label": "A payslip is checked with a fraud finding",
"event": "document.checked",
"event_id": "evt_6Fh2Xq2",
"by": null
},
"subject": {
"kind": "case",
"id": "case_9Rw2Kc4",
"label": "BW-4463",
"href": "/console/cases/case_9Rw2Kc4"
},
"status": "completed",
"result": "done",
"job_version": 2,
"started_at": "2026-11-26T09:42:01Z",
"ended_at": "2026-11-26T09:42:05Z",
"summary": "Gave BW-4463 to Elif Kaya and noted the payslip's two findings.",
"steps": [
{
"id": "kst_1",
"at": "2026-11-26T09:42:01Z",
"kind": "read",
"tool": "cases.get",
"title": "Read BW-4463",
"detail": null,
"outcome": "done",
"tokens": 3120
},
{
"id": "kst_2",
"at": "2026-11-26T09:42:02Z",
"kind": "search",
"tool": "search_memory",
"title": "Looked up who leads fraud review",
"detail": "Elif Kaya takes payslip fraud on weekdays.",
"outcome": "done",
"tokens": 840
},
{
"id": "kst_3",
"at": "2026-11-26T09:42:04Z",
"kind": "action",
"tool": "cases.assign",
"title": "Gave BW-4463 to Elif Kaya",
"detail": null,
"outcome": "done",
"tokens": 610
},
{
"id": "kst_4",
"at": "2026-11-26T09:42:05Z",
"kind": "action",
"tool": "notes.create",
"title": "Noted the payslip's findings",
"detail": "The net pay was changed after the payslip was issued.",
"outcome": "done",
"tokens": 1290
}
],
"proposal_ids": [],
"memory_read": [
"kmem_3Lq7Pd1"
],
"memory_written": [],
"tokens": {
"input": 4630,
"output": 1230
},
"cost": 0.06,
"billed": true,
"failure": null,
"depth": 0
}POST/v1/kompis_runs/{run_id}/cancel
A queued run never starts; a running one stops after its current step. What it already did stays done and listed.
- Who may
- Owner, Admin and Analyst; Developer in test mode
- CLI
kontiga kompis-runs cancel <run_id>- MCP tool
cancel_kompis_run- Returns
- The run, stopped.
Parameters
run_idRequiredThe run to stop. In the path.
curl -X POST https://api.kontiga.com/v1/kompis_runs/krun_5Tm8Wq3/cancel \
-H "Authorization: Bearer $KONTIGA_API_KEY"POST /v1/kompis_runs/{run_id}/cancel
{
"id": "krun_5Tm8Wq3",
"object": "kompis_run",
"kompis_id": "kmp_4Tq8Rn2",
"status": "cancelled",
"result": null,
"ended_at": "2026-11-26T09:51:10Z",
"summary": "Stopped by Maria Lind before it started."
}Proposals and timers
GET/v1/kompis_proposals
The actions Kompisar proposed that a person must confirm: free text to an end customer, a decision on a screening match, anything they may not do alone.
- Who may
- Owner, Admin, Analyst and Viewer; Developer in test mode
- CLI
kontiga kompis-proposals list [--kompis-id <kompis_id>] [--status <pending|confirmed|rejected|expired>]- MCP tool
list_kompis_proposals- Returns
- The proposals, newest first, each with what it would do and why it needs a person.
Parameters
kompis_idOnly this Kompis’s proposals.
statusOnly proposals in this state. One of
pending,confirmed,rejected,expired.
curl -X GET "https://api.kontiga.com/v1/kompis_proposals?status=pending" \
-H "Authorization: Bearer $KONTIGA_API_KEY"GET /v1/kompis_proposals
{
"items": [
{
"id": "kprp_8Vs3Hn6",
"object": "kompis_proposal",
"run_id": "krun_7Gq1Zd5",
"kompis_id": "kmp_7Wn2Cs5",
"kompis_name": "Chaser",
"tool": "requests.remind",
"params": {
"request_id": "rqs_4Mb9Kt2",
"note": "Your October payslip is the last thing we need. A photo of the paper copy is fine."
},
"title": "Remind Lotte de Vries, with a note",
"detail": "An email to Lotte de Vries: the reminder with a fresh link, and the note \"Your October payslip is the last thing we need. A photo of the paper copy is fine.\"",
"why": "Free text to an end customer needs a person.",
"subject": {
"kind": "request",
"id": "rqs_4Mb9Kt2",
"label": "Lotte de Vries, Personal loan",
"href": "/console/requests/rqs_4Mb9Kt2"
},
"status": "pending",
"created_at": "2026-11-26T08:00:12Z",
"expires_at": "2026-11-27T08:00:12Z",
"decided_by": null,
"decided_at": null
}
],
"next_cursor": null
}POST/v1/kompis_proposals/{proposal_id}/confirm
Run the proposed action exactly as proposed, as you, within your own role. The run it came from then finishes.
- Who may
- Owner, Admin and Analyst; Developer in test mode
- CLI
kontiga kompis-proposals confirm <proposal_id>- MCP tool
confirm_kompis_proposal- Returns
- The proposal, confirmed and carried out.
Parameters
proposal_idRequiredThe proposal to carry out, exactly as proposed. In the path.
curl -X POST https://api.kontiga.com/v1/kompis_proposals/kprp_8Vs3Hn6/confirm \
-H "Authorization: Bearer $KONTIGA_API_KEY"POST /v1/kompis_proposals/{proposal_id}/confirm
{
"id": "kprp_8Vs3Hn6",
"object": "kompis_proposal",
"run_id": "krun_7Gq1Zd5",
"kompis_id": "kmp_7Wn2Cs5",
"kompis_name": "Chaser",
"tool": "requests.remind",
"params": {
"request_id": "rqs_4Mb9Kt2",
"note": "Your October payslip is the last thing we need. A photo of the paper copy is fine."
},
"title": "Remind Lotte de Vries, with a note",
"detail": "An email to Lotte de Vries: the reminder with a fresh link, and the note \"Your October payslip is the last thing we need. A photo of the paper copy is fine.\"",
"why": "Free text to an end customer needs a person.",
"subject": {
"kind": "request",
"id": "rqs_4Mb9Kt2",
"label": "Lotte de Vries, Personal loan",
"href": "/console/requests/rqs_4Mb9Kt2"
},
"status": "confirmed",
"created_at": "2026-11-26T08:00:12Z",
"expires_at": "2026-11-27T08:00:12Z",
"decided_by": "Maria Lind",
"decided_at": "2026-11-26T09:52:40Z"
}POST/v1/kompis_proposals/{proposal_id}/reject
The proposed action is not run. The Kompis’s run finishes with nothing changed by it.
- Who may
- Owner, Admin and Analyst; Developer in test mode
- CLI
kontiga kompis-proposals reject <proposal_id>- MCP tool
reject_kompis_proposal- Returns
- The proposal, rejected.
Parameters
proposal_idRequiredThe proposal to turn down. In the path.
curl -X POST https://api.kontiga.com/v1/kompis_proposals/kprp_8Vs3Hn6/reject \
-H "Authorization: Bearer $KONTIGA_API_KEY"POST /v1/kompis_proposals/{proposal_id}/reject
{
"id": "kprp_8Vs3Hn6",
"object": "kompis_proposal",
"run_id": "krun_7Gq1Zd5",
"kompis_id": "kmp_7Wn2Cs5",
"kompis_name": "Chaser",
"tool": "requests.remind",
"params": {
"request_id": "rqs_4Mb9Kt2",
"note": "Your October payslip is the last thing we need. A photo of the paper copy is fine."
},
"title": "Remind Lotte de Vries, with a note",
"detail": "An email to Lotte de Vries: the reminder with a fresh link, and the note \"Your October payslip is the last thing we need. A photo of the paper copy is fine.\"",
"why": "Free text to an end customer needs a person.",
"subject": {
"kind": "request",
"id": "rqs_4Mb9Kt2",
"label": "Lotte de Vries, Personal loan",
"href": "/console/requests/rqs_4Mb9Kt2"
},
"status": "rejected",
"created_at": "2026-11-26T08:00:12Z",
"expires_at": "2026-11-27T08:00:12Z",
"decided_by": "Maria Lind",
"decided_at": "2026-11-26T09:52:40Z"
}GET/v1/kompis_timers
The timers Kompisar set themselves and their next scheduled runs: when, on what, why, and what cancels each.
- Who may
- Owner, Admin, Analyst and Viewer; Developer in test mode
- CLI
kontiga kompis-timers list [--kompis-id <kompis_id>] [--status <scheduled|fired|cancelled>]- MCP tool
list_kompis_timers- Returns
- The timers and schedules, soonest first.
Parameters
kompis_idOnly this Kompis’s timers and schedules.
statusOnly timers in this state. One of
scheduled,fired,cancelled.
curl -X GET "https://api.kontiga.com/v1/kompis_timers?status=scheduled" \
-H "Authorization: Bearer $KONTIGA_API_KEY"GET /v1/kompis_timers
{
"items": [
{
"id": "ktmr_2Kd7Pw4",
"object": "kompis_timer",
"kompis_id": "kmp_7Wn2Cs5",
"kompis_name": "Chaser",
"kind": "timer",
"at": "2026-11-28T08:00:00Z",
"why": "Check again whether Lotte de Vries sent her October payslip.",
"cancel_when": "the request is completed",
"subject": {
"kind": "request",
"id": "rqs_4Mb9Kt2",
"label": "Lotte de Vries, Personal loan",
"href": "/console/requests/rqs_4Mb9Kt2"
},
"status": "scheduled",
"created_at": "2026-11-26T08:00:12Z",
"run_id": "krun_7Gq1Zd5"
},
{
"id": "ktmr_6Hc1Rv8",
"object": "kompis_timer",
"kompis_id": "kmp_3Pb6Nk9",
"kompis_name": "Morning digest",
"kind": "schedule",
"at": "2026-11-27T07:00:00Z",
"why": "Weekdays at 08:00, Amsterdam time.",
"cancel_when": null,
"subject": null,
"status": "scheduled"
}
],
"next_cursor": null
}POST/v1/kompis_timers/{timer_id}/cancel
The timer never fires. A schedule is changed on the Kompis itself.
- Who may
- Owner, Admin and Analyst; Developer in test mode
- CLI
kontiga kompis-timers cancel <timer_id>- MCP tool
cancel_kompis_timer- Returns
- The timer, cancelled.
Parameters
timer_idRequiredThe timer to cancel. In the path.
curl -X POST https://api.kontiga.com/v1/kompis_timers/ktmr_2Kd7Pw4/cancel \
-H "Authorization: Bearer $KONTIGA_API_KEY"POST /v1/kompis_timers/{timer_id}/cancel
{
"id": "ktmr_2Kd7Pw4",
"object": "kompis_timer",
"kompis_id": "kmp_7Wn2Cs5",
"kompis_name": "Chaser",
"kind": "timer",
"at": "2026-11-28T08:00:00Z",
"why": "Check again whether Lotte de Vries sent her October payslip.",
"cancel_when": "the request is completed",
"subject": {
"kind": "request",
"id": "rqs_4Mb9Kt2",
"label": "Lotte de Vries, Personal loan",
"href": "/console/requests/rqs_4Mb9Kt2"
},
"status": "cancelled",
"created_at": "2026-11-26T08:00:12Z",
"run_id": "krun_7Gq1Zd5"
}The team memory
One memory for the whole team: what the Kompisar learned and how your team wants the work done, each entry with who wrote it and when. A Kompis searches it before it works and never reads it whole. An edit is a new version; a past run keeps the version it read.
GET/v1/kompis_memory
Everything the Kompisar remember, as one memory for the whole team: what they learned and how your team wants the work done, each entry with who wrote it and when.
- Who may
- Owner, Admin, Analyst and Viewer; Developer in test mode
- CLI
kontiga kompis-memory list [--kompis-id <kompis_id>] [--pinned <true|false>] [--limit <n>]- MCP tool
list_kompis_memory- Returns
- The entries, pinned first, then newest.
Parameters
kompis_idOnly entries this Kompis wrote.
pinnedOnly pinned entries, or only the others.
limitHow many to answer, pinned first, then newest. At least 1, at most 200.
curl -X GET "https://api.kontiga.com/v1/kompis_memory?limit=50" \
-H "Authorization: Bearer $KONTIGA_API_KEY"GET /v1/kompis_memory
{
"items": [
{
"id": "kmem_3Lq7Pd1",
"object": "memory_entry",
"text": "Elif Kaya takes payslip fraud on weekdays; Jonas Eriksen on weekends.",
"writer": {
"kind": "member",
"id": "mem_9Wd2Hc5",
"name": "Maria Lind",
"color": null
},
"run_id": null,
"pinned": true,
"version": 1,
"status": "active",
"created_at": "2026-11-02T13:24:00Z",
"updated_at": "2026-11-02T13:24:00Z",
"edited_by": null
},
{
"id": "kmem_8Fw2Ys6",
"object": "memory_entry",
"text": "Brightwater's payroll provider prints the net pay in bold on every payslip; bold alone is not a finding.",
"writer": {
"kind": "kompis",
"id": "kmp_4Tq8Rn2",
"name": "Payslip triage",
"color": "orange"
},
"run_id": "krun_1Xd4Hb7",
"pinned": false,
"version": 1,
"status": "active",
"created_at": "2026-11-19T10:02:00Z",
"updated_at": "2026-11-19T10:02:00Z",
"edited_by": null
}
],
"next_cursor": null
}GET/v1/kompis_memory/search
The entries closest in meaning to a question, as a Kompis finds them before it works: over the whole team or one Kompis’s own.
- Who may
- Owner, Admin, Analyst and Viewer; Developer in test mode
- CLI
kontiga kompis-memory search <q> [--kompis-id <kompis_id>] [--limit <n>]- MCP tool
search_kompis_memory- Returns
- The closest entries, each with how close it is.
Parameters
qRequiredA question in plain words. At most 300 characters.
kompis_idSearch only this Kompis’s own entries.
limitHow many to answer, closest first. At least 1, at most 50.
curl -X GET "https://api.kontiga.com/v1/kompis_memory/search?q=who+takes+payslip+fraud" \
-H "Authorization: Bearer $KONTIGA_API_KEY"GET /v1/kompis_memory/search
{
"items": [
{
"id": "kmem_3Lq7Pd1",
"object": "memory_entry",
"text": "Elif Kaya takes payslip fraud on weekdays; Jonas Eriksen on weekends.",
"writer": {
"kind": "member",
"id": "mem_9Wd2Hc5",
"name": "Maria Lind",
"color": null
},
"run_id": null,
"pinned": true,
"version": 1,
"status": "active",
"created_at": "2026-11-02T13:24:00Z",
"updated_at": "2026-11-02T13:24:00Z",
"edited_by": null,
"relevance": 0.91
},
{
"id": "kmem_5Ra9Lc2",
"object": "memory_entry",
"text": "Send fraud cases over 50,000 to Jonas Eriksen, whoever is on duty.",
"writer": {
"kind": "member",
"id": "mem_9Wd2Hc5",
"name": "Maria Lind",
"color": null
},
"pinned": false,
"version": 2,
"status": "active",
"relevance": 0.74
}
],
"next_cursor": null
}POST/v1/kompis_memory
Teach the team something: a preference or a rule of thumb every Kompis finds when it searches. A pinned entry is read on every run.
- Who may
- Owner, Admin and Analyst; Developer in test mode
- CLI
kontiga kompis-memory add --text <text> [--pinned]- MCP tool
add_kompis_memory- Returns
- The entry, written by you.
Parameters
textRequiredWhat to teach the team, in plain words. At most 600 characters.
pinnedRead it on every run, not only when a search finds it.
curl -X POST https://api.kontiga.com/v1/kompis_memory \
-H "Authorization: Bearer $KONTIGA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"text": "Never remind a party on a Sunday."
}'POST /v1/kompis_memory
{
"id": "kmem_7Tn3Wk5",
"object": "memory_entry",
"text": "Never remind a party on a Sunday.",
"writer": {
"kind": "member",
"id": "mem_9Wd2Hc5",
"name": "Maria Lind",
"color": null
},
"run_id": null,
"pinned": false,
"version": 1,
"status": "active",
"created_at": "2026-11-26T09:54:00Z",
"updated_at": "2026-11-26T09:54:00Z",
"edited_by": null
}PATCH/v1/kompis_memory/{entry_id}
Correct what an entry says. The edit is a new version: the next run reads it, and a past run keeps the version it read.
- Who may
- Owner, Admin and Analyst; Developer in test mode
- CLI
kontiga kompis-memory update <entry_id> --text <text>- MCP tool
update_kompis_memory- Returns
- The entry, with its new version.
Parameters
entry_idRequiredThe entry to correct. In the path.
textRequiredWhat it says now. At most 600 characters.
curl -X PATCH https://api.kontiga.com/v1/kompis_memory/kmem_3Lq7Pd1 \
-H "Authorization: Bearer $KONTIGA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"text": "Elif Kaya takes payslip fraud on weekdays; Amira Khalil on weekends."
}'PATCH /v1/kompis_memory/{entry_id}
{
"id": "kmem_3Lq7Pd1",
"object": "memory_entry",
"text": "Elif Kaya takes payslip fraud on weekdays; Amira Khalil on weekends.",
"writer": {
"kind": "member",
"id": "mem_9Wd2Hc5",
"name": "Maria Lind",
"color": null
},
"run_id": null,
"pinned": true,
"version": 2,
"status": "active",
"created_at": "2026-11-02T13:24:00Z",
"updated_at": "2026-11-26T09:55:00Z",
"edited_by": "Maria Lind"
}POST/v1/kompis_memory/{entry_id}/pin
A pinned entry is read on every run, whatever it searches: the place for your team’s standing preferences. Unpin it to have it found by search only.
- Who may
- Owner, Admin and Analyst; Developer in test mode
- CLI
kontiga kompis-memory pin <entry_id> --pinned <true|false>- MCP tool
pin_kompis_memory- Returns
- The entry, pinned or not.
Parameters
entry_idRequiredThe entry. In the path.
pinnedRequiredtrueto pin it,falseto have it found by search only.
curl -X POST https://api.kontiga.com/v1/kompis_memory/kmem_3Lq7Pd1/pin \
-H "Authorization: Bearer $KONTIGA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"pinned": false
}'POST /v1/kompis_memory/{entry_id}/pin
{
"id": "kmem_3Lq7Pd1",
"object": "memory_entry",
"text": "Elif Kaya takes payslip fraud on weekdays; Jonas Eriksen on weekends.",
"writer": {
"kind": "member",
"id": "mem_9Wd2Hc5",
"name": "Maria Lind",
"color": null
},
"run_id": null,
"pinned": false,
"version": 1,
"status": "active",
"created_at": "2026-11-02T13:24:00Z",
"updated_at": "2026-11-26T09:56:00Z",
"edited_by": null
}DELETE/v1/kompis_memory/{entry_id}
The entry is no longer read by any Kompis. A past run’s record still shows the version it read.
- Who may
- Owner, Admin and Analyst; Developer in test mode
- CLI
kontiga kompis-memory delete <entry_id>- MCP tool
delete_kompis_memory- Returns
- The entry, deleted.
Parameters
entry_idRequiredThe entry to delete. In the path.
curl -X DELETE https://api.kontiga.com/v1/kompis_memory/kmem_7Tn3Wk5 \
-H "Authorization: Bearer $KONTIGA_API_KEY"DELETE /v1/kompis_memory/{entry_id}
{
"id": "kmem_7Tn3Wk5",
"object": "memory_entry",
"text": "Never remind a party on a Sunday.",
"writer": {
"kind": "member",
"id": "mem_9Wd2Hc5",
"name": "Maria Lind",
"color": null
},
"run_id": null,
"pinned": true,
"version": 1,
"status": "deleted",
"created_at": "2026-11-02T13:24:00Z",
"updated_at": "2026-11-26T09:57:00Z",
"edited_by": null
}