Skip to content

ReferenceResources

Policies API

A policy is a named group of your own policy documents, such as an income verification standard, read into numbered passages. Link a policy to a collection, one requirement or a workflow step, and each document there is checked against it: where one falls short, the finding quotes the passage and says what is missing. A finding decides nothing by itself.

Updated

Ask about this pageRead this page as Markdown

The policy object

  • idstring

    The policy’s id, starting with pol_.

  • namestring

    Its name.

  • ownerstring

    The team that keeps it, in your words.

  • documentsarray

    Its documents, each with its version, the date it applies from, its state (processing, ready or failed) and its numbered passages.

  • linksarray

    What it is linked to: a collection, a requirement or a workflow_step, by id.

  • linked_toarray

    The same links in words, with where each opens in the console.

  • countsobject

    Its documents by state, its passages, its links and its open findings.

A policy
{
  "id": "pol_8Hm3Qr5",
  "object": "policy",
  "mode": "live",
  "name": "Income verification standard",
  "description": "What a payslip and a bank statement must show before income is accepted.",
  "owner": "Credit risk",
  "documents": [
    {
      "id": "ks_4Rb7Tn2",
      "title": "Income verification standard",
      "version": "3.1",
      "effective_date": "2026-09-01",
      "file_name": "income-verification-standard-v3.1.pdf",
      "pages": 12,
      "state": "ready",
      "error": null,
      "passages": [
        {
          "id": "psg_6Lc2Wv9",
          "number": "3.2",
          "heading": "Payslips",
          "text": "A payslip shows the employer's name and tax number, the employee's name, the pay period and the net pay."
        }
      ],
      "added_at": "2026-09-01T08:30:00Z"
    }
  ],
  "links": [
    { "target": "collection", "id": "col_5Gk3Tm7" },
    { "target": "requirement", "id": "rqm_4Yc2Hn8" },
    { "target": "workflow_step", "id": "stp_5Kw9Ld2" }
  ],
  "linked_to": [
    { "target": "collection", "id": "col_5Gk3Tm7", "label": "Mortgage application", "parent": null, "href": "/console/settings/collections/col_5Gk3Tm7" },
    { "target": "requirement", "id": "rqm_4Yc2Hn8", "label": "Payslips", "parent": "Mortgage application", "href": "/console/settings/collections/col_5Gk3Tm7" },
    { "target": "workflow_step", "id": "stp_5Kw9Ld2", "label": "Check every document", "parent": "Mortgage review", "href": "/console/settings/workflows/wf_3Kd8Pn2" }
  ],
  "counts": { "documents": 1, "ready": 1, "processing": 0, "failed": 0, "passages": 41, "links": 3, "open_findings": 2 },
  "created_at": "2026-09-01T08:30:00Z",
  "updated_at": "2026-11-20T15:41:02Z"
}

Create a policy

Changes data

POST/v1/policies

A new named group in the Policies library, for the documents that say what meets policy.

Who may
Owner, Admin and Developer
CLI
kontiga policies create --name <name> [--description <text>] [--owner <team>]
MCP tool
create_policy
Returns
The policy, with no documents yet.

Parameters

  • namestringRequired

    Its name. At most 120 characters.

  • descriptionstringDefault ""

    What it covers. At most 500 characters.

  • ownerstringDefault ""

    The team that keeps it. At most 80 characters.

curl -X POST https://api.kontiga.com/v1/policies \
  -H "Authorization: Bearer $KONTIGA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Proof of address standard",
    "description": "Which documents prove an address, and how recent they must be.",
    "owner": "Compliance"
  }'

POST /v1/policies

Response, 201 Created
{
  "id": "pol_2Vk9Hs4",
  "object": "policy",
  "mode": "live",
  "name": "Proof of address standard",
  "description": "Which documents prove an address, and how recent they must be.",
  "owner": "Compliance",
  "documents": [],
  "links": [],
  "linked_to": [],
  "counts": { "documents": 0, "ready": 0, "processing": 0, "failed": 0, "passages": 0, "links": 0, "open_findings": 0 },
  "created_at": "2026-11-27T11:20:00Z",
  "updated_at": "2026-11-27T11:20:00Z"
}

List policies

Reads only

GET/v1/policies

The Policies library: each policy with its documents, where it is linked, and its open findings.

Who may
Owner, Admin, Analyst, Developer and Viewer
CLI
kontiga policies list
MCP tool
list_policies
Returns
The policies, newest change first.

No parameters.

curl -X GET https://api.kontiga.com/v1/policies \
  -H "Authorization: Bearer $KONTIGA_API_KEY"

GET /v1/policies

Response, 200 OK
{
  "items": [
    {
      "id": "pol_2Vk9Hs4",
      "object": "policy",
      "name": "Proof of address standard",
      "owner": "Compliance",
      "counts": { "documents": 1, "ready": 0, "processing": 1, "failed": 0, "passages": 0, "links": 0, "open_findings": 0 }
    },
    {
      "id": "pol_8Hm3Qr5",
      "object": "policy",
      "name": "Income verification standard",
      "owner": "Credit risk",
      "counts": { "documents": 1, "ready": 1, "processing": 0, "failed": 0, "passages": 41, "links": 3, "open_findings": 2 }
    }
  ],
  "next_cursor": null
}

Read a policy

Reads only

GET/v1/policies/{policy_id}

One policy: its documents with version, effective date and numbered passages, its links, and the documents that fall short of it.

Who may
Owner, Admin, Analyst, Developer and Viewer
CLI
kontiga policies get <policy_id>
MCP tool
get_policy
Returns
The policy as it stands.

Parameters

  • policy_idid (pol_)Required

    The policy to read. In the path.

curl -X GET https://api.kontiga.com/v1/policies/pol_8Hm3Qr5 \
  -H "Authorization: Bearer $KONTIGA_API_KEY"

GET /v1/policies/{policy_id}

Response, 200 OK
{
  "id": "pol_8Hm3Qr5",
  "object": "policy",
  "mode": "live",
  "name": "Income verification standard",
  "description": "What a payslip and a bank statement must show before income is accepted.",
  "owner": "Credit risk",
  "documents": [
    {
      "id": "ks_4Rb7Tn2",
      "title": "Income verification standard",
      "version": "3.1",
      "effective_date": "2026-09-01",
      "file_name": "income-verification-standard-v3.1.pdf",
      "pages": 12,
      "state": "ready",
      "error": null,
      "passages": [
        {
          "id": "psg_6Lc2Wv9",
          "number": "3.2",
          "heading": "Payslips",
          "text": "A payslip shows the employer's name and tax number, the employee's name, the pay period and the net pay."
        }
      ],
      "added_at": "2026-09-01T08:30:00Z"
    }
  ],
  "links": [
    { "target": "collection", "id": "col_5Gk3Tm7" },
    { "target": "requirement", "id": "rqm_4Yc2Hn8" },
    { "target": "workflow_step", "id": "stp_5Kw9Ld2" }
  ],
  "linked_to": [
    { "target": "collection", "id": "col_5Gk3Tm7", "label": "Mortgage application", "parent": null, "href": "/console/settings/collections/col_5Gk3Tm7" },
    { "target": "requirement", "id": "rqm_4Yc2Hn8", "label": "Payslips", "parent": "Mortgage application", "href": "/console/settings/collections/col_5Gk3Tm7" },
    { "target": "workflow_step", "id": "stp_5Kw9Ld2", "label": "Check every document", "parent": "Mortgage review", "href": "/console/settings/workflows/wf_3Kd8Pn2" }
  ],
  "counts": { "documents": 1, "ready": 1, "processing": 0, "failed": 0, "passages": 41, "links": 3, "open_findings": 2 },
  "created_at": "2026-09-01T08:30:00Z",
  "updated_at": "2026-11-20T15:41:02Z"
}

Add a policy document

Changes data

POST/v1/policies/{policy_id}/sources

Add a document to a policy, with its version and the date it applies from; it is read into numbered passages.

Who may
Owner, Admin and Developer
CLI
kontiga policies add-document <policy_id> <file> --title <title> --version <version> --effective-date <yyyy-mm-dd>
MCP tool
add_policy_document
Returns
The policy, with the document processing.

Parameters

  • policy_idid (pol_)Required

    The policy to add it to. In the path.

  • titlestringRequired

    The document’s title. At most 160 characters.

  • versionstringRequired

    Its version, as the document numbers it. At most 32 characters.

  • effective_datestringRequired

    The day it applies from, yyyy-mm-dd.

  • file_namestring

    The file’s name, when you send a file. At most 255 characters.

  • textstring

    The document’s text, when you send it as text. At most 200,000 characters.

curl -X POST https://api.kontiga.com/v1/policies/pol_2Vk9Hs4/sources \
  -H "Authorization: Bearer $KONTIGA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "title": "Proof of address standard",
    "version": "1.0",
    "effective_date": "2026-12-01",
    "file_name": "proof-of-address-standard.pdf"
  }'

POST /v1/policies/{policy_id}/sources

Response, 201 Created
{
  "id": "pol_2Vk9Hs4",
  "object": "policy",
  "mode": "live",
  "name": "Proof of address standard",
  "documents": [
    {
      "id": "ks_9Pd3Xa6",
      "title": "Proof of address standard",
      "version": "1.0",
      "effective_date": "2026-12-01",
      "file_name": "proof-of-address-standard.pdf",
      "pages": 0,
      "state": "processing",
      "error": null,
      "passages": [],
      "added_at": "2026-11-27T11:22:41Z"
    }
  ],
  "counts": { "documents": 1, "ready": 0, "processing": 1, "failed": 0, "passages": 0, "links": 0, "open_findings": 0 }
}
Changes data

POST/v1/policies/{policy_id}/links

Check the documents of a collection, a requirement or a workflow step against a policy.

Who may
Owner, Admin and Developer
CLI
kontiga policies link <policy_id> --target <collection|requirement|workflow_step> --target-id <id>
MCP tool
link_policy
Returns
The policy with the link added.

Parameters

  • policy_idid (pol_)Required

    The policy. In the path.

  • targetenumRequired

    What to check against it: a whole collection, one requirement, or one workflow step. One of collection, requirement, workflow_step.

  • target_idstringRequired

    Its id: a col_, rqm_ or stp_ id.

curl -X POST https://api.kontiga.com/v1/policies/pol_8Hm3Qr5/links \
  -H "Authorization: Bearer $KONTIGA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "target": "requirement",
    "target_id": "rqm_4Yc2Hn8"
  }'

POST /v1/policies/{policy_id}/links

Response, 200 OK
{
  "id": "pol_8Hm3Qr5",
  "object": "policy",
  "mode": "live",
  "name": "Income verification standard",
  "description": "What a payslip and a bank statement must show before income is accepted.",
  "owner": "Credit risk",
  "documents": [
    {
      "id": "ks_4Rb7Tn2",
      "title": "Income verification standard",
      "version": "3.1",
      "effective_date": "2026-09-01",
      "file_name": "income-verification-standard-v3.1.pdf",
      "pages": 12,
      "state": "ready",
      "error": null,
      "passages": [
        {
          "id": "psg_6Lc2Wv9",
          "number": "3.2",
          "heading": "Payslips",
          "text": "A payslip shows the employer's name and tax number, the employee's name, the pay period and the net pay."
        }
      ],
      "added_at": "2026-09-01T08:30:00Z"
    }
  ],
  "links": [
    { "target": "collection", "id": "col_5Gk3Tm7" },
    { "target": "requirement", "id": "rqm_4Yc2Hn8" },
    { "target": "workflow_step", "id": "stp_5Kw9Ld2" }
  ],
  "linked_to": [
    { "target": "collection", "id": "col_5Gk3Tm7", "label": "Mortgage application", "parent": null, "href": "/console/settings/collections/col_5Gk3Tm7" },
    { "target": "requirement", "id": "rqm_4Yc2Hn8", "label": "Payslips", "parent": "Mortgage application", "href": "/console/settings/collections/col_5Gk3Tm7" },
    { "target": "workflow_step", "id": "stp_5Kw9Ld2", "label": "Check every document", "parent": "Mortgage review", "href": "/console/settings/workflows/wf_3Kd8Pn2" }
  ],
  "counts": { "documents": 1, "ready": 1, "processing": 0, "failed": 0, "passages": 41, "links": 3, "open_findings": 2 },
  "created_at": "2026-09-01T08:30:00Z",
  "updated_at": "2026-11-20T15:41:02Z"
}
Changes data

DELETE/v1/policies/{policy_id}/links/{target_id}

Stop checking a collection, a requirement or a workflow step against a policy.

Who may
Owner, Admin and Developer
CLI
kontiga policies unlink <policy_id> --target <collection|requirement|workflow_step> --target-id <id>
MCP tool
unlink_policy
Returns
The policy with the link removed.

Parameters

  • policy_idid (pol_)Required

    The policy. In the path.

  • targetenumRequired

    What the link is to. One of collection, requirement, workflow_step.

  • target_idstringRequired

    Its id. In the path.

curl -X DELETE "https://api.kontiga.com/v1/policies/pol_8Hm3Qr5/links/rqm_4Yc2Hn8?target=requirement" \
  -H "Authorization: Bearer $KONTIGA_API_KEY"

DELETE /v1/policies/{policy_id}/links/{target_id}

Response, 200 OK
{
  "id": "pol_8Hm3Qr5",
  "object": "policy",
  "mode": "live",
  "name": "Income verification standard",
  "description": "What a payslip and a bank statement must show before income is accepted.",
  "owner": "Credit risk",
  "documents": [
    {
      "id": "ks_4Rb7Tn2",
      "title": "Income verification standard",
      "version": "3.1",
      "effective_date": "2026-09-01",
      "file_name": "income-verification-standard-v3.1.pdf",
      "pages": 12,
      "state": "ready",
      "error": null,
      "passages": [
        {
          "id": "psg_6Lc2Wv9",
          "number": "3.2",
          "heading": "Payslips",
          "text": "A payslip shows the employer's name and tax number, the employee's name, the pay period and the net pay."
        }
      ],
      "added_at": "2026-09-01T08:30:00Z"
    }
  ],
  "links": [
    { "target": "collection", "id": "col_5Gk3Tm7" },
    { "target": "requirement", "id": "rqm_4Yc2Hn8" },
    { "target": "workflow_step", "id": "stp_5Kw9Ld2" }
  ],
  "linked_to": [
    { "target": "collection", "id": "col_5Gk3Tm7", "label": "Mortgage application", "parent": null, "href": "/console/settings/collections/col_5Gk3Tm7" },
    { "target": "requirement", "id": "rqm_4Yc2Hn8", "label": "Payslips", "parent": "Mortgage application", "href": "/console/settings/collections/col_5Gk3Tm7" },
    { "target": "workflow_step", "id": "stp_5Kw9Ld2", "label": "Check every document", "parent": "Mortgage review", "href": "/console/settings/workflows/wf_3Kd8Pn2" }
  ],
  "counts": { "documents": 1, "ready": 1, "processing": 0, "failed": 0, "passages": 41, "links": 3, "open_findings": 2 },
  "created_at": "2026-09-01T08:30:00Z",
  "updated_at": "2026-11-20T15:41:02Z"
}

Search a policy

Reads only

POST/v1/policies/{policy_id}/search

The numbered passages of a policy that match a few words, best first, each with the document and the version it is in.

Who may
Owner, Admin, Analyst, Developer and Viewer
CLI
kontiga policies search <policy_id> --query <words> [--top-k <n>]
MCP tool
search_policy
Returns
The passages that match, best first, with their document, version and effective date.

Parameters

  • policy_idid (pol_)Required

    The policy to search. In the path.

  • querystringRequired

    A few words. At most 200 characters.

  • top_kinteger

    The most passages to answer, 1 to 20.

curl -X POST https://api.kontiga.com/v1/policies/pol_8Hm3Qr5/search \
  -H "Authorization: Bearer $KONTIGA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "query": "employer tax number",
    "top_k": 5
  }'

POST /v1/policies/{policy_id}/search

Response, 200 OK
{
  "object": "policy_search",
  "policy_id": "pol_8Hm3Qr5",
  "query": "employer tax number",
  "passages": [
    {
      "document_id": "ks_4Rb7Tn2",
      "document_title": "Income verification standard",
      "version": "3.1",
      "effective_date": "2026-09-01",
      "passage": {
        "id": "psg_6Lc2Wv9",
        "number": "3.2",
        "heading": "Payslips",
        "text": "A payslip shows the employer's name and tax number, the employee's name, the pay period and the net pay."
      }
    }
  ]
}

List the findings that cite a policy

Reads only

GET/v1/policies/{policy_id}/findings

Every document that fell short of a policy, newest first: the passage it quotes, what is missing and where, with the case and the person.

Who may
Owner, Admin, Analyst, Developer and Viewer
CLI
kontiga policies findings <policy_id> [--open-only] [--limit <n>]
MCP tool
list_policy_findings
Returns
The findings that quote the policy, newest document first.

Parameters

  • policy_idid (pol_)Required

    The policy. In the path.

  • open_onlyboolean

    Only findings not reviewed yet.

  • limitinteger

    How many to answer, 1 to 200.

curl -X GET "https://api.kontiga.com/v1/policies/pol_8Hm3Qr5/findings?open_only=true" \
  -H "Authorization: Bearer $KONTIGA_API_KEY"

GET /v1/policies/{policy_id}/findings

Response, 200 OK
{
  "items": [
    {
      "document_id": "doc_7Qe1Mw4",
      "document_title": "Payslip, September 2026",
      "received_at": "2026-11-24T09:30:58Z",
      "case_id": "case_7Kq2Xw9",
      "case_reference": "APP-20418",
      "case_title": "Mortgage application, 14 Harbour Row",
      "person_name": "Marta Kowalczyk",
      "finding": {
        "id": "pfn_3Tz8Bk5",
        "policy_id": "pol_8Hm3Qr5",
        "policy_name": "Income verification standard",
        "source_id": "ks_4Rb7Tn2",
        "source_title": "Income verification standard, version 3.1",
        "passage_id": "psg_6Lc2Wv9",
        "passage_number": "3.2",
        "quote": "A payslip shows the employer's name and tax number, the employee's name, the pay period and the net pay.",
        "missing": "The employer's tax number is not on the payslip.",
        "where": "Page 1, the header",
        "reviewed": false
      }
    }
  ],
  "next_cursor": null
}