Citations and proposals
- An answer cites with markers such as
[[doc_3Tn8Wq5]]or[[pol_4Xw8Mn2#3.2]], one passage of a policy. Each marker is resolved incitations, with where it opens in the console. stepslists each read and action the answer called, by its registry id. A read the member may not make is refused, and says so.- A proposed action carries the registry call it would make, every value in plain words, and a
fingerprint: the SHA-256 of the tool and its arguments. Confirm sends the fingerprint back, so what runs is exactly what was shown. - A proposal waits 15 minutes, then expires. It runs once, however often it is confirmed.
POST/v1/assistant/messages
Ask about anything in the workspace. The answer streams back, cites the cases, documents, people and policy passages it rests on, and proposes any change for you to confirm.
- Who may
- Owner, Admin, Analyst, Developer, Viewer and Billing
- CLI
kontiga conversations ask <text> [--conversation-id <conversation_id>] [--screen <path>]- MCP tool
ask_assistant- Returns
- The conversation with your message and the answer; the answer also streams as server-sent events while it is written.
Parameters
textRequiredThe question, in the member’s own words. At most 4,000 characters.
conversation_idThe conversation to continue. Left out, a new one starts.
screenThe console address the member asks from, so the assistant knows what they are looking at. At most 300 characters.
curl -X POST https://api.kontiga.com/v1/assistant/messages \
-H "Authorization: Bearer $KONTIGA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"text": "Why is APP-20418 in review, and can it be approved?",
"screen": "/console/cases/case_7Kq2Xw9"
}'POST /v1/assistant/messages
{
"conversation": {
"id": "cnv_8Hd3Wq6",
"object": "conversation",
"title": "Why is APP-20418 in review?",
"context": { "path": "/console/cases/case_7Kq2Xw9", "title": "APP-20418", "entity_id": "case_7Kq2Xw9" },
"created_at": "2026-11-26T09:30:04Z",
"last_turn_at": "2026-11-26T09:30:11Z",
"message_count": 2,
"pending_actions": 1
},
"message": {
"id": "msg_2Lq7Rc1",
"role": "user",
"text": "Why is APP-20418 in review, and can it be approved?",
"screen": { "path": "/console/cases/case_7Kq2Xw9", "title": "APP-20418", "entity_id": "case_7Kq2Xw9" },
"status": "complete",
"created_at": "2026-11-26T09:30:04Z"
},
"answer": {
"id": "msg_2Lq7Rd4",
"role": "assistant",
"text": "One document holds it: the October payslip [[doc_3Tn8Wq5]] has a finding on its net pay. The bank statement [[doc_6Pk2Hs9]] shows the same net pay arriving on 25 Oct, which is what the lending policy asks for [[pol_4Xw8Mn2#3.2]]. I can record Approved with that note; confirm to run it.",
"status": "complete",
"citations": [
{ "ref": "doc_3Tn8Wq5", "kind": "document", "id": "doc_3Tn8Wq5", "label": "Payslip, October 2026", "detail": "Review", "href": "/console/documents/doc_3Tn8Wq5" },
{ "ref": "doc_6Pk2Hs9", "kind": "document", "id": "doc_6Pk2Hs9", "label": "Bank statement, October 2026", "detail": "Trusted", "href": "/console/documents/doc_6Pk2Hs9" },
{ "ref": "pol_4Xw8Mn2#3.2", "kind": "policy", "id": "pol_4Xw8Mn2", "label": "Lending policy 3.2", "detail": "Proof of income", "href": "/console/settings/policies/pol_4Xw8Mn2" }
],
"steps": [
{ "id": "stp_1", "surface_id": "cases.get", "title": "Read a case", "kind": "read", "status": "done", "note": null },
{ "id": "stp_2", "surface_id": "policies.search_all", "title": "Search the Policies library", "kind": "read", "status": "done", "note": null },
{ "id": "stp_3", "surface_id": "cases.decide", "title": "Decide a case", "kind": "action", "status": "proposed", "note": null }
],
"action_ids": ["act_5Ns9Kd2"],
"notices": [],
"created_at": "2026-11-26T09:30:11Z"
}
}The answer also streams as server-sent events while it is written, so a page can show it as it comes. The stream ends with the whole answer, as above.
GET/v1/assistant/conversations
Your conversations with the assistant, the newest first, each with its first question, the screen it began on, and the actions still waiting for you.
- Who may
- Owner, Admin, Analyst, Developer, Viewer and Billing
- CLI
kontiga conversations list [--limit <n>]- MCP tool
list_assistant_conversations- Returns
- Your conversations, newest first; nobody else sees them.
Parameters
limitHow many to answer, newest first. At least 1, at most 200.
curl -X GET "https://api.kontiga.com/v1/assistant/conversations?limit=20" \
-H "Authorization: Bearer $KONTIGA_API_KEY"GET /v1/assistant/conversations
{
"items": [
{
"id": "cnv_8Hd3Wq6",
"object": "conversation",
"title": "Why is APP-20418 in review?",
"context": { "path": "/console/cases/case_7Kq2Xw9", "title": "APP-20418", "entity_id": "case_7Kq2Xw9" },
"created_at": "2026-11-26T09:30:04Z",
"last_turn_at": "2026-11-26T09:30:11Z",
"message_count": 2,
"pending_actions": 1,
"preview": "One document holds it: the October payslip has a finding on its net pay."
},
{
"id": "cnv_3Bv6Tq9",
"object": "conversation",
"title": "Which requests expire this week?",
"context": { "path": "/console/requests", "title": "Requests", "entity_id": null },
"created_at": "2026-11-25T14:02:40Z",
"last_turn_at": "2026-11-25T14:03:02Z",
"message_count": 2,
"pending_actions": 0,
"preview": "Four requests expire before Monday. Two are waiting on one document each"
}
],
"next_cursor": null
}GET/v1/assistant/conversations/{conversation_id}
One of your conversations in full: every question and answer, the sources each answer cites, what it read, and each action it proposed with its state.
- Who may
- Owner, Admin, Analyst, Developer, Viewer and Billing
- CLI
kontiga conversations get <conversation_id>- MCP tool
get_assistant_conversation- Returns
- The conversation with its messages, citations and proposed actions.
Parameters
conversation_idRequiredOne of your conversations. In the path.
curl -X GET https://api.kontiga.com/v1/assistant/conversations/cnv_8Hd3Wq6 \
-H "Authorization: Bearer $KONTIGA_API_KEY"GET /v1/assistant/conversations/{conversation_id}
{
"id": "cnv_8Hd3Wq6",
"object": "conversation",
"title": "Why is APP-20418 in review?",
"message_count": 2,
"pending_actions": 1,
"messages": [
{ "id": "msg_2Lq7Rc1", "role": "user", "text": "Why is APP-20418 in review, and can it be approved?", "status": "complete" },
{ "id": "msg_2Lq7Rd4", "role": "assistant", "text": "One document holds it: the October payslip [[doc_3Tn8Wq5]] …", "status": "complete", "action_ids": ["act_5Ns9Kd2"] }
],
"actions": [
{
"id": "act_5Ns9Kd2",
"surface_id": "cases.decide",
"title": "Decide a case",
"params": { "case_id": "case_7Kq2Xw9", "outcome": "approved", "note": "Net pay matches the bank statement of 25 Oct." },
"lines": [
{ "label": "Case", "value": "APP-20418, Mortgage application, 14 Harbour Row" },
{ "label": "Outcome", "value": "Approved" },
{ "label": "Note", "value": "Net pay matches the bank statement of 25 Oct." }
],
"why": "The only open finding is answered by the bank statement, as the policy asks.",
"fingerprint": "3f9a2c71e4b85d06a1c7e9d2b4f8061c5e3a9d7b2c4f6e8a0b1d3c5e7f9a2b4c",
"proposed_at": "2026-11-26T09:30:11Z",
"expires_at": "2026-11-26T09:45:11Z",
"state": "pending",
"decided_at": null,
"result": null
}
]
}DELETE/v1/assistant/conversations/{conversation_id}
Delete one of your conversations and its messages. What it changed on a case stays on the case’s timeline.
- Who may
- Owner, Admin, Analyst, Developer, Viewer and Billing
- CLI
kontiga conversations delete <conversation_id>- MCP tool
delete_assistant_conversation- Returns
- The conversation is gone from your history.
Parameters
conversation_idRequiredThe conversation to delete. In the path.
curl -X DELETE https://api.kontiga.com/v1/assistant/conversations/cnv_3Bv6Tq9 \
-H "Authorization: Bearer $KONTIGA_API_KEY"DELETE /v1/assistant/conversations/{conversation_id}
{
"id": "cnv_3Bv6Tq9",
"object": "conversation",
"deleted": true
}POST/v1/assistant/actions/{action_id}/confirm
Run a change the assistant proposed, as you, with your role checked again now. It runs once, however often it is confirmed.
- Who may
- Owner, Admin, Analyst, Developer, Viewer and Billing
- CLI
kontiga assistant-actions confirm <action_id> --fingerprint <sha256>- MCP tool
confirm_assistant_action- Returns
- The action with its state and what happened.
Parameters
action_idRequiredThe proposed action, from the answer’s
action_ids. In the path.fingerprintRequiredThe action’s
fingerprint, sent back unchanged. A different one is refused and nothing runs.
curl -X POST https://api.kontiga.com/v1/assistant/actions/act_5Ns9Kd2/confirm \
-H "Authorization: Bearer $KONTIGA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"fingerprint": "3f9a2c71e4b85d06a1c7e9d2b4f8061c5e3a9d7b2c4f6e8a0b1d3c5e7f9a2b4c"
}'POST /v1/assistant/actions/{action_id}/confirm
{
"id": "act_5Ns9Kd2",
"object": "proposed_action",
"surface_id": "cases.decide",
"state": "executed",
"decided_at": "2026-11-26T09:31:20Z",
"result": "APP-20418 is decided: Approved, with your note.",
"result_href": "/console/cases/case_7Kq2Xw9",
"result_label": "APP-20418"
}POST/v1/assistant/actions/{action_id}/reject
Turn down a change the assistant proposed. Nothing is sent and nothing changes.
- Who may
- Owner, Admin, Analyst, Developer, Viewer and Billing
- CLI
kontiga assistant-actions reject <action_id>- MCP tool
reject_assistant_action- Returns
- The action, rejected.
Parameters
action_idRequiredThe proposed action to turn down. In the path.
curl -X POST https://api.kontiga.com/v1/assistant/actions/act_5Ns9Kd2/reject \
-H "Authorization: Bearer $KONTIGA_API_KEY"POST /v1/assistant/actions/{action_id}/reject
{
"id": "act_5Ns9Kd2",
"object": "proposed_action",
"surface_id": "cases.decide",
"state": "rejected",
"decided_at": "2026-11-26T09:31:20Z",
"result": null
}POST/v1/policies/search
The numbered passages that match a few words across every policy you may read, or one policy, best first, each with its policy, document and version.
- Who may
- Owner, Admin, Analyst, Developer and Viewer
- CLI
kontiga policies search-all --query <words> [--policy-id <policy_id>] [--top-k <n>]- MCP tool
search_policies- Returns
- The passages that match, best first, each with the marker an answer cites it by.
Parameters
queryRequiredA few words, such as
proof of income self-employed. At most 500 characters.policy_idSearch one policy only.
top_kHow many passages to answer, best first. At least 1, at most 20.
curl -X POST https://api.kontiga.com/v1/policies/search \
-H "Authorization: Bearer $KONTIGA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"query": "proof of income self-employed",
"top_k": 5
}'POST /v1/policies/search
{
"object": "policy_library_search",
"query": "proof of income self-employed",
"policies_searched": 6,
"passages": [
{
"ref": "pol_4Xw8Mn2#3.4",
"policy_id": "pol_4Xw8Mn2",
"policy_name": "Lending policy",
"document_id": "ks_7Rb2Tc5",
"document_title": "Retail lending policy",
"version": "3.1",
"effective_date": "2026-07-01",
"passage": {
"id": "psg_9Qd4Lw1",
"number": "3.4",
"heading": "Self-employed applicants",
"text": "A self-employed applicant gives the last two annual accounts, or the tax assessments of the last two years, and bank statements for the last three months."
}
}
]
}