Skip to content

ReferenceInside a case

Outcome reasons

Every decision on a case gives at least one reason from the workspace’s own list. Each reason applies to one or more outcomes, may require a comment, and has a kind that Insights counts by. A reason that was used is archived, never deleted, so past decisions keep it.

Updated

Ask about this pageRead this page as Markdown

The outcome reason object

  • idstring

    The reason’s id, starting with rsn_.

  • codestring

    A stable key for the API and reports, made from the words when the reason is added.

  • labelstring

    The words members pick.

  • outcomesarray

    Where it may be used: approved, rejected, needs_attention.

  • kindenum

    fraud, policy, incomplete or other. Only fraud counts in fraud figures.

  • requires_commentboolean

    Whether the member must add a comment when they pick it.

  • activeboolean

    false once archived. Settings lists archived reasons; deciding a case does not.

  • built_inboolean

    Kontiga’s own, such as agent_handover for a case the reasoning agent hands to the team. It cannot be archived.

  • usednumber

    How many decisions gave it.

List the outcome reasons

Reads only

GET/v1/outcome_reasons

The workspace’s own reasons a decision can give, for each outcome, and which need a comment.

Who may
Owner, Admin, Analyst and Viewer; Developer in test mode
CLI
kontiga outcome-reasons list [--outcome <approved|rejected|needs_attention>]
MCP tool
list_outcome_reasons
Returns
The active reasons, in the workspace’s order.

Parameters

  • outcomeenum

    Only the reasons for this outcome. One of approved, rejected, needs_attention.

curl -X GET "https://api.kontiga.com/v1/outcome_reasons?outcome=rejected" \
  -H "Authorization: Bearer $KONTIGA_API_KEY"

GET /v1/outcome_reasons

Response, 200 OK
{
  "items": [
    {
      "id": "rsn_4Bt7Qe1",
      "object": "outcome_reason",
      "code": "document_fraud",
      "label": "Document fraud suspected",
      "outcomes": ["rejected"],
      "kind": "fraud",
      "requires_comment": false
    },
    {
      "id": "rsn_6Hm2Wz9",
      "object": "outcome_reason",
      "code": "identity_not_verified",
      "label": "Identity not verified",
      "outcomes": ["rejected"],
      "kind": "policy",
      "requires_comment": false
    },
    {
      "id": "rsn_8Ck5Lr3",
      "object": "outcome_reason",
      "code": "screening_match",
      "label": "Screening match confirmed",
      "outcomes": ["rejected"],
      "kind": "policy",
      "requires_comment": false
    },
    {
      "id": "rsn_2Nv9Ds6",
      "object": "outcome_reason",
      "code": "policy_not_met",
      "label": "Does not meet our policy",
      "outcomes": ["rejected"],
      "kind": "policy",
      "requires_comment": false
    },
    {
      "id": "rsn_5Jx3Fp8",
      "object": "outcome_reason",
      "code": "incomplete",
      "label": "Information incomplete",
      "outcomes": ["rejected"],
      "kind": "incomplete",
      "requires_comment": false
    },
    {
      "id": "rsn_7Gq1Tk4",
      "object": "outcome_reason",
      "code": "withdrawn",
      "label": "Withdrawn by the applicant",
      "outcomes": ["rejected"],
      "kind": "other",
      "requires_comment": false
    },
    {
      "id": "rsn_9Ra6Mh2",
      "object": "outcome_reason",
      "code": "other",
      "label": "Other",
      "outcomes": ["rejected", "needs_attention"],
      "kind": "other",
      "requires_comment": true
    }
  ],
  "next_cursor": null
}

List the outcome reasons to manage

Reads only

GET/v1/settings/cases/reasons

Every outcome reason of the workspace, archived ones included, in order, with how many decisions used each. Deciding a case reads only the active ones.

Who may
Owner, Admin, Analyst, Developer and Viewer
CLI
kontiga settings reasons list
MCP tool
list_reason_settings
Returns
Every reason, active and archived, in order, with its use.

No parameters.

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

GET /v1/settings/cases/reasons

Response, 200 OK
{
  "items": [
    {
      "id": "rsn_1Aq4Re7",
      "object": "outcome_reason",
      "code": "requirements_met",
      "label": "All requirements met",
      "outcomes": ["approved"],
      "kind": "other",
      "requires_comment": false,
      "active": true,
      "built_in": false,
      "position": 1,
      "used": 214
    },
    {
      "id": "rsn_3Dk8Yp5",
      "object": "outcome_reason",
      "code": "approved_with_exception",
      "label": "Approved with an exception",
      "outcomes": ["approved"],
      "kind": "other",
      "requires_comment": true,
      "active": true,
      "built_in": false,
      "position": 2,
      "used": 9
    },
    {
      "id": "rsn_4Bt7Qe1",
      "object": "outcome_reason",
      "code": "document_fraud",
      "label": "Document fraud suspected",
      "outcomes": ["rejected"],
      "kind": "fraud",
      "requires_comment": false,
      "active": true,
      "built_in": false,
      "position": 3,
      "used": 17
    },
    {
      "id": "rsn_6Wy3Gb8",
      "object": "outcome_reason",
      "code": "second_look",
      "label": "Needs a second look",
      "outcomes": ["needs_attention"],
      "kind": "other",
      "requires_comment": false,
      "active": true,
      "built_in": false,
      "position": 4,
      "used": 31
    },
    {
      "id": "rsn_0Ze5Hu2",
      "object": "outcome_reason",
      "code": "agent_handover",
      "label": "Sent to the team for review",
      "outcomes": ["needs_attention"],
      "kind": "other",
      "requires_comment": false,
      "active": true,
      "built_in": true,
      "position": 5,
      "used": 12
    },
    {
      "id": "rsn_2Fs7Jc4",
      "object": "outcome_reason",
      "code": "missing_bank_letter",
      "label": "Bank letter missing",
      "outcomes": ["needs_attention"],
      "kind": "incomplete",
      "requires_comment": false,
      "active": false,
      "built_in": false,
      "position": 6,
      "used": 3
    }
  ],
  "next_cursor": null
}

Add an outcome reason

Changes data

POST/v1/outcome_reasons

A reason members can pick for one or more outcomes, with its kind for Insights.

Who may
Owner and Admin
CLI
kontiga outcome-reasons create --label <text> --outcomes <approved|rejected|needs_attention>,... [--kind <fraud|policy|incomplete|other>] [--requires-comment <true|false>]
MCP tool
create_outcome_reason
Returns
The reason, active.

Parameters

  • labelstringRequired

    The words members pick. At most 80 characters.

  • outcomesarray of enumRequired

    The outcomes it applies to, one or more. One of approved, rejected, needs_attention. At most 3 items.

  • kindenumDefault "other"

    What Insights counts it as. other when left out. One of fraud, policy, incomplete, other.

  • requires_commentbooleanDefault false

    Whether a comment must go with it.

curl -X POST https://api.kontiga.com/v1/outcome_reasons \
  -H "Authorization: Bearer $KONTIGA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "label": "Valuation below the agreed price",
    "outcomes": [
      "rejected",
      "needs_attention"
    ],
    "kind": "policy",
    "requires_comment": true
  }'

POST /v1/outcome_reasons

Response, 201 Created
{
  "id": "rsn_7Pd2Nx6",
  "object": "outcome_reason",
  "code": "valuation_below_price",
  "label": "Valuation below the agreed price",
  "outcomes": ["rejected", "needs_attention"],
  "kind": "policy",
  "requires_comment": true,
  "active": true,
  "built_in": false,
  "position": 16,
  "used": 0
}

Change an outcome reason

Changes data

PATCH/v1/outcome_reasons/{reason_id}

Its words, its kind, whether a comment is needed, or archive it. A reason is never deleted, so past decisions keep it.

Who may
Owner and Admin
CLI
kontiga outcome-reasons update <reason_id> [--label <text>] [--kind <fraud|policy|incomplete|other>] [--requires-comment <true|false>] [--active <true|false>]
MCP tool
update_outcome_reason
Returns
The reason, changed.

Parameters

  • reason_idid (rsn_)Required

    The reason to change. In the path.

  • labelstring

    New words. The code stays the same. At most 80 characters.

  • kindenum

    A new kind. One of fraud, policy, incomplete, other.

  • requires_commentboolean

    Whether a comment must go with it from now on.

  • activeboolean

    false archives it: it leaves the list a decision offers and stays on past decisions.

curl -X PATCH https://api.kontiga.com/v1/outcome_reasons/rsn_2Fs7Jc4 \
  -H "Authorization: Bearer $KONTIGA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "active": false
  }'

PATCH /v1/outcome_reasons/{reason_id}

Response, 200 OK
{
  "id": "rsn_2Fs7Jc4",
  "object": "outcome_reason",
  "code": "missing_bank_letter",
  "label": "Bank letter missing",
  "outcomes": ["needs_attention"],
  "kind": "incomplete",
  "requires_comment": false,
  "active": false,
  "built_in": false,
  "position": 6,
  "used": 3
}