# Case lists

> Kontiga is document fraud detection by Bynn Intelligence for insurers, letting agents, lenders and HR screening teams: every document is compared with a proprietary library of more than 300 million original documents, gathered over 20 years.

Documentation index: https://kontiga.com/llms.txt

Section: Reference. URL: https://kontiga.com/docs/case-lists

The case list as the console shows it: every filter at once, the counts of its views, each case's due time and documents, and exports. Also the one call that opens a case for someone and sends them their checklist, and the workflow approvals that wait for a person across every case. A case itself is on the Cases page.

Updated December 1, 2026

## Search cases

The case list with every filter the console has: a built-in view (all open, assigned to me, high risk this week, waiting on a party, decided), several values per filter, the time of the last change, a search, the order, and pages.

`GET /v1/cases/search`. Who may: Owner, Admin, Analyst and Viewer; Developer in test mode. CLI: `kontiga cases search [--view <open|mine|high_risk|waiting|decided>] [--state <open|waiting|in_review|decided>,...] [--verdict <high_risk|review|trusted|none>,...] [--outcome <approved|rejected|needs_attention>,...] [--assignee <member_id|me|none>,...] [--collection-id <collection_id>,...] [--kind <type>,...] [--updated-within-days <n>] [--created-from <YYYY-MM-DD>] [--created-to <YYYY-MM-DD>] [--tag-id <tag_id|none>,...] [--due <overdue|today|soon>,...] [--nationality <Dutch|Spanish|...>,...] [--workflow-id <workflow_id>,...] [--run-state <running|waiting|completed|failed>,...] [--q <text>] [--sort <updated_at|created_at|decided_at|amount|due_at>] [--order <desc|asc>] [--limit <n>] [--cursor <cursor>]`. MCP tool: `search_cases`.

**Parameters**
- `view` (enum): A built-in view: `open`, `mine`, `high_risk` (this week), `waiting` (on a party) or `decided`.
- `state` (array of enum): Only cases in these states. One of `open`, `waiting`, `in_review`, `decided`. At most 4 items.
- `verdict` (array of enum): Only cases with these verdicts. `none` finds cases with nothing checked yet. One of `high_risk`, `review`, `trusted`, `none`. At most 4 items.
- `outcome` (array of enum): Only decided cases with these outcomes. One of `approved`, `rejected`, `needs_attention`. At most 3 items.
- `assignee` (array of id (mem_) or literal or literal): Member ids, `me` for your own, or `none` for cases with nobody. At most 20 items.
- `collection_id` (array of id (col_)): Only cases on these collections. At most 20 items.
- `kind` (array of string): Only cases of these types, such as `Mortgage application`. At most 20 items.
- `updated_within_days` (integer): Only cases changed in the last this many days. At least 1, at most 365.
- `created_from` (string): Only cases opened on or after this day, `yyyy-mm-dd`.
- `created_to` (string): Only cases opened on or before this day, `yyyy-mm-dd`.
- `tag_id` (array of id (ctag_) or literal): Only cases carrying one of these tags (`ctag_` ids), or `none` for cases with no tag. At most 100 items.
- `due` (array of enum): Only cases in review that are `overdue`, due `today`, or near their due time (`soon`). At most 3 items.
- `nationality` (array of string): Only cases with a party whose identity document prints this nationality, such as `Irish`. At most 30 items.
- `workflow_id` (array of id (wf_)): Only cases these workflows ran on. At most 20 items.
- `run_state` (array of enum): Only cases whose latest workflow run is in one of these states. One of `running`, `waiting`, `completed`, `failed`. At most 4 items.
- `q` (string): Words in a title or a reference, a case or person id, a party's name (a misspelt letter is forgiven), or the exact number of an identity document. At most 200 characters.
- `sort` (enum, default "updated_at"): What to order by. One of `updated_at`, `created_at`, `decided_at`, `amount`, `due_at`.
- `order` (enum, default "desc"): `desc` or `asc`. With `due_at`, `asc` puts the soonest due first.
- `limit` (integer, default 50): How many to answer, 1 to 200.
- `cursor` (id (cur_)): The `next_cursor` of the page before.

**Returns** list of cases: One page of the cases that hold every filter, the cursor of the next page, and how many there are in all.

API:

```bash
curl -X GET "https://api.kontiga.com/v1/cases/search?view=open&verdict=high_risk%2Creview&assignee=me&sort=due_at&order=asc&limit=50" \
  -H "Authorization: Bearer $KONTIGA_API_KEY"
```

CLI:

```bash
kontiga cases search \
  --view open \
  --verdict high_risk,review \
  --assignee me \
  --sort due_at \
  --order asc \
  --limit 50
```

MCP tool `search_cases`:

```json
{
  "name": "search_cases",
  "arguments": {
    "view": "open",
    "verdict": [
      "high_risk",
      "review"
    ],
    "assignee": [
      "me"
    ],
    "sort": "due_at",
    "order": "asc",
    "limit": 50
  }
}
```

TypeScript:

```typescript
import Kontiga from "@kontiga/sdk";

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.cases.search({
  view: "open",
  verdict: ["high_risk", "review"],
  assignee: ["me"],
  sort: "due_at",
  order: "asc",
  limit: 50,
});
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.cases.search(
    view="open",
    verdict=["high_risk", "review"],
    assignee=["me"],
    sort="due_at",
    order="asc",
    limit=50,
)
```

Go:

```go
client := kontiga.NewClient() // reads KONTIGA_API_KEY
result, err := client.Cases.Search(ctx, &kontiga.CasesSearchParams{
	View:     "open",
	Verdict:  []string{"high_risk", "review"},
	Assignee: []string{"me"},
	Sort:     "due_at",
	Order:    "asc",
	Limit:    50,
})
if err != nil {
	return err
}
```

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.cases().search(CasesSearchParams.builder()
    .view("open")
    .verdict(List.of("high_risk", "review"))
    .assignee(List.of("me"))
    .sort("due_at")
    .order("asc")
    .limit(50)
    .build());
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.Cases.SearchAsync(new CasesSearchOptions
{
    View = "open",
    Verdict = new[] { "high_risk", "review" },
    Assignee = new[] { "me" },
    Sort = "due_at",
    Order = "asc",
    Limit = 50,
});
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // reads KONTIGA_API_KEY
$result = $kontiga->cases->search([
    'view' => 'open',
    'verdict' => ['high_risk', 'review'],
    'assignee' => ['me'],
    'sort' => 'due_at',
    'order' => 'asc',
    'limit' => 50,
]);
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.cases.search(
  view: "open",
  verdict: ["high_risk", "review"],
  assignee: ["me"],
  sort: "due_at",
  order: "asc",
  limit: 50
)
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .cases()
    .search(kontiga::cases::SearchParams {
        view: "open".into(),
        verdict: vec!["high_risk".into(), "review".into()],
        assignee: vec!["me".into()],
        sort: "due_at".into(),
        order: "asc".into(),
        limit: 50,
        ..Default::default()
    })
    .await?;
```

Response, 200 OK:

```json
{
  "items": [
    {
      "id": "case_7Kq2Xw9",
      "object": "case",
      "mode": "live",
      "title": "Mortgage application, 14 Harbour Row",
      "reference": "APP-20418",
      "kind": "Mortgage application",
      "state": "in_review",
      "verdict": "review",
      "outcome": null,
      "assignee": "mem_3Rt8Lp2",
      "primary_name": "Marta Kowalczyk",
      "documents": 6,
      "amount": { "label": "Loan", "value": 285000, "currency": "EUR" },
      "created_at": "2026-11-24T09:12:40Z",
      "updated_at": "2026-11-26T08:03:11Z"
    }
  ],
  "next_cursor": "cur_50",
  "total": 12
}
```

## Read the case summary

How many cases are open, in review and unassigned, waiting on a party, at high risk this week, assigned to you, overdue and due today, decided in the last 7 days by outcome, decided by outcome all time, opened this month and in all, and how many workflow approvals wait for a person.

`GET /v1/cases/summary`. Who may: Owner, Admin, Analyst and Viewer; Developer in test mode. CLI: `kontiga cases summary`. MCP tool: `get_case_summary`.

**Parameters**

**Returns** case summary: The counts of the case list's summary, from the same rules as its views.

API:

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

CLI:

```bash
kontiga cases summary
```

MCP tool `get_case_summary`:

```json
{
  "name": "get_case_summary",
  "arguments": {}
}
```

TypeScript:

```typescript
import Kontiga from "@kontiga/sdk";

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.cases.summary();
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.cases.summary()
```

Go:

```go
client := kontiga.NewClient() // reads KONTIGA_API_KEY
result, err := client.Cases.Summary(ctx)
if err != nil {
	return err
}
```

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.cases().summary();
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.Cases.SummaryAsync();
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // reads KONTIGA_API_KEY
$result = $kontiga->cases->summary();
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.cases.summary
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .cases()
    .summary()
    .await?;
```

Response, 200 OK:

```json
{
  "object": "case_summary",
  "open": 31,
  "in_review": 19,
  "in_review_unassigned": 2,
  "waiting": 12,
  "waiting_mine": 4,
  "high_risk_this_week": 3,
  "high_risk_unassigned": 1,
  "decided_7_days": 22,
  "approved_7_days": 16,
  "rejected_7_days": 3,
  "needs_attention_7_days": 3,
  "mine": 5,
  "outcomes_all_time": { "approved": 288, "rejected": 41, "needs_attention": 27 },
  "total": 387,
  "opened_this_month": 64,
  "overdue": 2,
  "due_today": 3,
  "pending_approvals": 1
}
```

## List the due times of cases

Every case not decided whose due clock has started: when it came into review, when it is due, and whether it is on time, near its due time, overdue, or standing still while it waits on a party. From the due rule in Settings, Cases and people.

`GET /v1/cases/due`. Who may: Owner, Admin, Analyst and Viewer; Developer in test mode. CLI: `kontiga cases due [--case-id <case_id>,...]`. MCP tool: `list_case_due_times`.

**Parameters**
- `case_id` (array of id (case_)): Only these cases. Every case whose due clock has started when left out. At most 200 items.

**Returns** list of due times: The due rule, each case's due time and state, and how many are overdue, due today, near their due time and standing still.

API:

```bash
curl -X GET "https://api.kontiga.com/v1/cases/due?case_id=case_7Kq2Xw9" \
  -H "Authorization: Bearer $KONTIGA_API_KEY"
```

CLI:

```bash
kontiga cases due --case-id case_7Kq2Xw9
```

MCP tool `list_case_due_times`:

```json
{
  "name": "list_case_due_times",
  "arguments": {
    "case_id": [
      "case_7Kq2Xw9"
    ]
  }
}
```

TypeScript:

```typescript
import Kontiga from "@kontiga/sdk";

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.cases.due({
  case_id: ["case_7Kq2Xw9"],
});
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.cases.due(case_id=["case_7Kq2Xw9"])
```

Go:

```go
client := kontiga.NewClient() // reads KONTIGA_API_KEY
result, err := client.Cases.Due(ctx, &kontiga.CasesDueParams{
	CaseId: []string{"case_7Kq2Xw9"},
})
if err != nil {
	return err
}
```

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.cases().due(CasesDueParams.builder()
    .caseId(List.of("case_7Kq2Xw9"))
    .build());
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.Cases.DueAsync(new CasesDueOptions
{
    CaseId = new[] { "case_7Kq2Xw9" },
});
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // reads KONTIGA_API_KEY
$result = $kontiga->cases->due([
    'case_id' => ['case_7Kq2Xw9'],
]);
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.cases.due(case_id: ["case_7Kq2Xw9"])
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .cases()
    .due(kontiga::cases::DueParams {
        case_id: vec!["case_7Kq2Xw9".into()],
        ..Default::default()
    })
    .await?;
```

Response, 200 OK:

```json
{
  "object": "list",
  "rule": {
    "default_due_hours": 48,
    "due_calendar": "working_hours",
    "working_calendar": { "time_zone": "Europe/Dublin", "days": ["mon", "tue", "wed", "thu", "fri"], "start": "09:00", "end": "17:30" },
    "warn_at_percent": 75
  },
  "items": [
    {
      "case_id": "case_7Kq2Xw9",
      "entered_review_at": "2026-11-24T09:42:10Z",
      "due_at": "2026-12-01T10:12:10Z",
      "state": "due_soon",
      "used_hours": 39,
      "due_hours": 48,
      "due_today": false
    }
  ],
  "counts": { "overdue": 2, "due_today": 3, "due_soon": 4, "paused": 12 }
}
```

## List the documents of cases

Each case's documents as every page counts them: the ones received on it, and the ones its checklist reused from the party's earlier cases (an ID comes with its verification and is not counted), with the verdict over all of them.

`GET /v1/cases/documents`. Who may: Owner, Admin, Analyst and Viewer; Developer in test mode. CLI: `kontiga cases documents [--case-id <case_id>,...] [--person-id <person_id>]`. MCP tool: `list_case_documents`.

**Parameters**
- `case_id` (array of id (case_)): Only these cases. At most 200 items.
- `person_id` (id (per_)): Only the cases of this person.

**Returns** list of case documents: For each case, its own document ids, the reused ones with the case each came from, how many there are in all, and the verdict over every one that is checked.

API:

```bash
curl -X GET "https://api.kontiga.com/v1/cases/documents?case_id=case_7Kq2Xw9" \
  -H "Authorization: Bearer $KONTIGA_API_KEY"
```

CLI:

```bash
kontiga cases documents --case-id case_7Kq2Xw9
```

MCP tool `list_case_documents`:

```json
{
  "name": "list_case_documents",
  "arguments": {
    "case_id": [
      "case_7Kq2Xw9"
    ]
  }
}
```

TypeScript:

```typescript
import Kontiga from "@kontiga/sdk";

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.cases.documents({
  case_id: ["case_7Kq2Xw9"],
});
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.cases.documents(case_id=["case_7Kq2Xw9"])
```

Go:

```go
client := kontiga.NewClient() // reads KONTIGA_API_KEY
result, err := client.Cases.Documents(ctx, &kontiga.CasesDocumentsParams{
	CaseId: []string{"case_7Kq2Xw9"},
})
if err != nil {
	return err
}
```

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.cases().documents(CasesDocumentsParams.builder()
    .caseId(List.of("case_7Kq2Xw9"))
    .build());
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.Cases.DocumentsAsync(new CasesDocumentsOptions
{
    CaseId = new[] { "case_7Kq2Xw9" },
});
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // reads KONTIGA_API_KEY
$result = $kontiga->cases->documents([
    'case_id' => ['case_7Kq2Xw9'],
]);
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.cases.documents(case_id: ["case_7Kq2Xw9"])
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .cases()
    .documents(kontiga::cases::DocumentsParams {
        case_id: vec!["case_7Kq2Xw9".into()],
        ..Default::default()
    })
    .await?;
```

Response, 200 OK:

```json
{
  "items": [
    {
      "case_id": "case_7Kq2Xw9",
      "own": ["doc_5Wm2Hk7", "doc_7Qe1Mw4", "doc_8Pq4Rn1", "doc_3Hy8Vc1", "doc_1Ty6Bd9"],
      "reused": [
        { "document_id": "doc_4Ks2Pa8", "from_case_id": "case_9Cm3Rf5", "from_case_reference": "APP-19871" }
      ],
      "total": 6,
      "verdict": "review"
    }
  ],
  "next_cursor": null
}
```

## Export cases

The cases in a view, or the ones given by id, as a CSV or a JSON file: one row per case with its reference, state, outcome, verdict, first party, documents, amount, assignee and dates.

`POST /v1/case_exports`. Who may: Owner, Admin, Analyst and Viewer; Developer in test mode. CLI: `kontiga cases export [--format <csv|json>] [--case-ids <case_id>,...] [--view <open|mine|high_risk|waiting|decided>] [--state <open|waiting|in_review|decided>,...] [--verdict <high_risk|review|trusted|none>,...] [--outcome <approved|rejected|needs_attention>,...] [--assignee <member_id|me|none>,...] [--collection-id <collection_id>,...] [--kind <type>,...] [--updated-within-days <n>] [--created-from <YYYY-MM-DD>] [--created-to <YYYY-MM-DD>] [--tag-id <tag_id|none>,...] [--due <overdue|today|soon>,...] [--nationality <Dutch|Spanish|...>,...] [--workflow-id <workflow_id>,...] [--run-state <running|waiting|completed|failed>,...] [--q <text>] [--sort <updated_at|created_at|decided_at|amount|due_at>] [--order <desc|asc>] [--output <path>]`. MCP tool: `export_cases`.

**Parameters**
- `format` (enum, default "csv"): The file's format. One of `csv`, `json`.
- `case_ids` (array of id (case_)): These cases, up to 500. Leave it out to export every case that holds the filters.
- `view` (enum): A built-in view: `open`, `mine`, `high_risk` (this week), `waiting` (on a party) or `decided`.
- `state` (array of enum): Only cases in these states. One of `open`, `waiting`, `in_review`, `decided`. At most 4 items.
- `verdict` (array of enum): Only cases with these verdicts. `none` finds cases with nothing checked yet. One of `high_risk`, `review`, `trusted`, `none`. At most 4 items.
- `outcome` (array of enum): Only decided cases with these outcomes. One of `approved`, `rejected`, `needs_attention`. At most 3 items.
- `assignee` (array of id (mem_) or literal or literal): Member ids, `me` for your own, or `none` for cases with nobody. At most 20 items.
- `collection_id` (array of id (col_)): Only cases on these collections. At most 20 items.
- `kind` (array of string): Only cases of these types, such as `Mortgage application`. At most 20 items.
- `updated_within_days` (integer): Only cases changed in the last this many days. At least 1, at most 365.
- `created_from` (string): Only cases opened on or after this day, `yyyy-mm-dd`.
- `created_to` (string): Only cases opened on or before this day, `yyyy-mm-dd`.
- `tag_id` (array of id (ctag_) or literal): Only cases carrying one of these tags (`ctag_` ids), or `none` for cases with no tag. At most 100 items.
- `due` (array of enum): Only cases in review that are `overdue`, due `today`, or near their due time (`soon`). At most 3 items.
- `nationality` (array of string): Only cases with a party whose identity document prints this nationality, such as `Irish`. At most 30 items.
- `workflow_id` (array of id (wf_)): Only cases these workflows ran on. At most 20 items.
- `run_state` (array of enum): Only cases whose latest workflow run is in one of these states. One of `running`, `waiting`, `completed`, `failed`. At most 4 items.
- `q` (string): Words in a title or a reference, a case or person id, a party's name (a misspelt letter is forgiven), or the exact number of an identity document. At most 200 characters.
- `sort` (enum, default "updated_at"): What to order by. One of `updated_at`, `created_at`, `decided_at`, `amount`, `due_at`.
- `order` (enum, default "desc"): `desc` or `asc`. With `due_at`, `asc` puts the soonest due first.

**Returns** case export: The export, ready: its file name, how many rows it holds, and the file.

API:

```bash
curl -X POST https://api.kontiga.com/v1/case_exports \
  -H "Authorization: Bearer $KONTIGA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "format": "csv",
    "view": "open",
    "state": [
      "in_review"
    ]
  }'
```

CLI:

```bash
kontiga cases export --format csv --view open --state in_review
```

MCP tool `export_cases`:

```json
{
  "name": "export_cases",
  "arguments": {
    "format": "csv",
    "view": "open",
    "state": [
      "in_review"
    ]
  }
}
```

TypeScript:

```typescript
import Kontiga from "@kontiga/sdk";

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.cases.export({
  format: "csv",
  view: "open",
  state: ["in_review"],
});
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.cases.export(
    format="csv",
    view="open",
    state=["in_review"],
)
```

Go:

```go
client := kontiga.NewClient() // reads KONTIGA_API_KEY
result, err := client.Cases.Export(ctx, &kontiga.CasesExportParams{
	Format: "csv",
	View:   "open",
	State:  []string{"in_review"},
})
if err != nil {
	return err
}
```

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.cases().export(CasesExportParams.builder()
    .format("csv")
    .view("open")
    .state(List.of("in_review"))
    .build());
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.Cases.ExportAsync(new CasesExportOptions
{
    Format = "csv",
    View = "open",
    State = new[] { "in_review" },
});
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // reads KONTIGA_API_KEY
$result = $kontiga->cases->export([
    'format' => 'csv',
    'view' => 'open',
    'state' => ['in_review'],
]);
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.cases.export(
  format: "csv",
  view: "open",
  state: ["in_review"]
)
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .cases()
    .export(kontiga::cases::ExportParams {
        format: "csv".into(),
        view: "open".into(),
        state: vec!["in_review".into()],
        ..Default::default()
    })
    .await?;
```

Response, 201 Created:

```json
{
  "id": "cex_6Wd1Lh4",
  "object": "case_export",
  "format": "csv",
  "file_name": "cases-in-review-2026-11-27.csv",
  "rows": 19,
  "content": "id,reference,title,type,state,outcome,verdict,first_party,documents,amount,currency,assignee,created_at,updated_at,decided_at\ncase_7Kq2Xw9,APP-20418,\"Mortgage application, 14 Harbour Row\",Mortgage application,in_review,,review,Marta Kowalczyk,6,285000,EUR,Ines Moreau,2026-11-24T09:12:40Z,2026-11-26T08:03:11Z,\n...",
  "created_at": "2026-11-27T12:10:00Z"
}
```

## Open a case for someone

One call that invites a person: finds them by your reference, then the email, or adds them to People from the details given; opens a case on a collection; and sends them its checklist in the language and by the channel chosen, with your own note quoted in the first message when you write one.

`POST /v1/cases/start`. Who may: Owner, Admin and Analyst; Developer in test mode. CLI: `kontiga cases start --collection-id <collection_id> [--person-id <person_id> | --first-name <name> --last-name <name> --email <email> [--phone <+46...>] [--reference <ref>]] [--title <title>] [--channel <email|sms|email_and_sms|link>] [--locale <en|pt|es|ar|zht|zhs|fr|de|ja|hi|ru|sv|auto>] [--expires-in-days <n>] [--verification-profile-id <vpr_id>] [--note <text>] [--client-secret]`. MCP tool: `start_case`.

**Parameters**
- `collection_id` (id (col_), required): The checklist to send.
- `person_id` (id (per_)): Someone already in People. Otherwise give their details.
- `first_name` (string): Their first name. At most 80 characters.
- `last_name` (string): Their last name. At most 80 characters.
- `email` (string): Their email address. At most 254 characters.
- `phone` (string): Their phone number with its country code, for text messages. At most 32 characters.
- `reference` (string): Your own reference for them. It finds them first when they are already in People; then the email does. At most 64 characters.
- `title` (string): The case's title. Made from the collection and their name when left out. At most 160 characters.
- `channel` (enum, default "email_and_sms"): How the checklist reaches them. `link` sends nothing: share the link yourself. One of `email`, `sms`, `email_and_sms`, `link`.
- `locale` (enum, default "auto"): The language of the messages and the page. `auto` follows their browser. One of `en`, `pt`, `es`, `ar`, `zht`, `zhs`, `fr`, `de`, `ja`, `hi`, `ru`, `sv`, `auto`.
- `expires_in_days` (integer): Days until the link stops working, 1 to 90. The collection's own when left out.
- `verification_profile_id` (id (vpr_)): The identity steps to use, when the collection asks for identity.
- `note` (string): A line in your own words, at most 500 characters, quoted in the first message and signed with your name. A link for your own channel carries none.
- `client_secret` (boolean): `true` also answers `client_secret` and `client_secret_expires_at`: a secret for the widget, for one hour, made with the request, so your page mounts the widget with your publishable key without a second call.

**Returns** case start: The case, the person it is for (and whether they were added), the request sent, its language and its due date.

API:

```bash
curl -X POST https://api.kontiga.com/v1/cases/start \
  -H "Authorization: Bearer $KONTIGA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "collection_id": "col_5Gk3Tm7",
    "first_name": "Eoin",
    "last_name": "Fitzgerald",
    "email": "eoin.fitzgerald@mailbox.example",
    "phone": "+353861553027",
    "reference": "CUST-55210",
    "locale": "en",
    "verification_profile_id": "vpr_1Fd5Gh8"
  }'
```

CLI:

```bash
kontiga cases start \
  --collection-id col_5Gk3Tm7 \
  --first-name Eoin \
  --last-name Fitzgerald \
  --email eoin.fitzgerald@mailbox.example \
  --phone +353861553027 \
  --reference CUST-55210 \
  --locale en \
  --verification-profile-id vpr_1Fd5Gh8
```

MCP tool `start_case`:

```json
{
  "name": "start_case",
  "arguments": {
    "collection_id": "col_5Gk3Tm7",
    "first_name": "Eoin",
    "last_name": "Fitzgerald",
    "email": "eoin.fitzgerald@mailbox.example",
    "phone": "+353861553027",
    "reference": "CUST-55210",
    "locale": "en",
    "verification_profile_id": "vpr_1Fd5Gh8"
  }
}
```

TypeScript:

```typescript
import Kontiga from "@kontiga/sdk";

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.cases.start({
  collection_id: "col_5Gk3Tm7",
  first_name: "Eoin",
  last_name: "Fitzgerald",
  email: "eoin.fitzgerald@mailbox.example",
  phone: "+353861553027",
  reference: "CUST-55210",
  locale: "en",
  verification_profile_id: "vpr_1Fd5Gh8",
});
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.cases.start(
    collection_id="col_5Gk3Tm7",
    first_name="Eoin",
    last_name="Fitzgerald",
    email="eoin.fitzgerald@mailbox.example",
    phone="+353861553027",
    reference="CUST-55210",
    locale="en",
    verification_profile_id="vpr_1Fd5Gh8",
)
```

Go:

```go
client := kontiga.NewClient() // reads KONTIGA_API_KEY
result, err := client.Cases.Start(ctx, &kontiga.CasesStartParams{
	CollectionId:          "col_5Gk3Tm7",
	FirstName:             "Eoin",
	LastName:              "Fitzgerald",
	Email:                 "eoin.fitzgerald@mailbox.example",
	Phone:                 "+353861553027",
	Reference:             "CUST-55210",
	Locale:                "en",
	VerificationProfileId: "vpr_1Fd5Gh8",
})
if err != nil {
	return err
}
```

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.cases().start(CasesStartParams.builder()
    .collectionId("col_5Gk3Tm7")
    .firstName("Eoin")
    .lastName("Fitzgerald")
    .email("eoin.fitzgerald@mailbox.example")
    .phone("+353861553027")
    .reference("CUST-55210")
    .locale("en")
    .verificationProfileId("vpr_1Fd5Gh8")
    .build());
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.Cases.StartAsync(new CasesStartOptions
{
    CollectionId = "col_5Gk3Tm7",
    FirstName = "Eoin",
    LastName = "Fitzgerald",
    Email = "eoin.fitzgerald@mailbox.example",
    Phone = "+353861553027",
    Reference = "CUST-55210",
    Locale = "en",
    VerificationProfileId = "vpr_1Fd5Gh8",
});
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // reads KONTIGA_API_KEY
$result = $kontiga->cases->start([
    'collection_id' => 'col_5Gk3Tm7',
    'first_name' => 'Eoin',
    'last_name' => 'Fitzgerald',
    'email' => 'eoin.fitzgerald@mailbox.example',
    'phone' => '+353861553027',
    'reference' => 'CUST-55210',
    'locale' => 'en',
    'verification_profile_id' => 'vpr_1Fd5Gh8',
]);
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.cases.start(
  collection_id: "col_5Gk3Tm7",
  first_name: "Eoin",
  last_name: "Fitzgerald",
  email: "eoin.fitzgerald@mailbox.example",
  phone: "+353861553027",
  reference: "CUST-55210",
  locale: "en",
  verification_profile_id: "vpr_1Fd5Gh8"
)
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .cases()
    .start(kontiga::cases::StartParams {
        collection_id: "col_5Gk3Tm7".into(),
        first_name: "Eoin".into(),
        last_name: "Fitzgerald".into(),
        email: "eoin.fitzgerald@mailbox.example".into(),
        phone: "+353861553027".into(),
        reference: "CUST-55210".into(),
        locale: "en".into(),
        verification_profile_id: "vpr_1Fd5Gh8".into(),
        ..Default::default()
    })
    .await?;
```

Response, 201 Created:

```json
{
  "object": "case_start",
  "case": {
    "id": "case_5Rt2Mn9",
    "object": "case",
    "reference": "KT-7QH2MZ4R1C",
    "title": "Mortgage application, Eoin Fitzgerald",
    "kind": "Mortgage application",
    "collection_id": "col_5Gk3Tm7",
    "state": "waiting",
    "outcome": null,
    "assignee_id": "usr_3Rt8Lp2",
    "parties": [{ "id": "pty_4Nd8Wq2", "person_id": "per_9Gv4Ks6", "role": "Applicant" }],
    "document_ids": [],
    "request_ids": ["rqs_3Ws8Kb1"],
    "amount": null,
    "created_at": "2026-11-27T12:15:00Z",
    "updated_at": "2026-11-27T12:15:00Z",
    "decided_at": null,
    "decision_note": null,
    "verdict": null,
    "primary_name": "Eoin Fitzgerald"
  },
  "person_id": "per_9Gv4Ks6",
  "person_added": true,
  "request_id": "rqs_3Ws8Kb1",
  "channel": "email_and_sms",
  "locale": "en",
  "verification_profile_id": "vpr_1Fd5Gh8",
  "due_at": "2026-12-11T12:15:00Z",
  "note": null,
  "state": "created",
  "link": null
}
```

- The person, the case, the party, the request with its checklist and its first message are made in one step, or none of them is.
- What is still valid on file for a returning person is reused and not asked for again. When everything is, nothing is sent and the request is `completed` at once.
- With `link` nothing is sent: `link.url` is the link to share on your own channel, shown once. `state` is then `sent`; otherwise the request is `created` until its first message is accepted.
- The case's `reference` is made for you, and its `assignee_id` is the member who opened it. A case's outcome, amount, decision and verdict stay empty until the case is reviewed.

## List workflow approvals across cases

Every approval step a workflow paused at, on every case of the workspace: what waits for a person, oldest first, and how the others ended. Approve or reject one with the case's own actions.

`GET /v1/workflow_approvals`. Who may: Owner, Admin, Analyst and Viewer; Developer in test mode. CLI: `kontiga workflow-approvals search [--status <pending|approved|rejected|cancelled|all>] [--workflow-id <workflow_id>,...] [--case-id <case_id>] [--limit <n>] [--cursor <cursor>]`. MCP tool: `search_workflow_approvals`.

**Parameters**
- `status` (enum, default "pending"): Which approvals: those that wait for a person (the default), the ended ones, or `all`. One of `pending`, `approved`, `rejected`, `cancelled`, `all`.
- `workflow_id` (array of id (wf_)): Only the approvals of these workflows. At most 20 items.
- `case_id` (id (case_)): Only the approvals of this case.
- `limit` (integer, default 25): How many to answer, 1 to 100.
- `cursor` (id (cur_)): The `next_cursor` of the page before.

**Returns** list of workflow approvals: One page of approvals, oldest first, each with its case named, the cursor of the next page, how many hold the filters, and how many are pending.

API:

```bash
curl -X GET "https://api.kontiga.com/v1/workflow_approvals?status=pending" \
  -H "Authorization: Bearer $KONTIGA_API_KEY"
```

CLI:

```bash
kontiga workflow-approvals search --status pending
```

MCP tool `search_workflow_approvals`:

```json
{
  "name": "search_workflow_approvals",
  "arguments": {
    "status": "pending"
  }
}
```

TypeScript:

```typescript
import Kontiga from "@kontiga/sdk";

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.workflowApprovals.search({
  status: "pending",
});
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.workflow_approvals.search(status="pending")
```

Go:

```go
client := kontiga.NewClient() // reads KONTIGA_API_KEY
result, err := client.WorkflowApprovals.Search(ctx, &kontiga.WorkflowApprovalsSearchParams{
	Status: "pending",
})
if err != nil {
	return err
}
```

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.workflowApprovals().search(WorkflowApprovalsSearchParams.builder()
    .status("pending")
    .build());
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.WorkflowApprovals.SearchAsync(new WorkflowApprovalsSearchOptions
{
    Status = "pending",
});
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // reads KONTIGA_API_KEY
$result = $kontiga->workflowApprovals->search([
    'status' => 'pending',
]);
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.workflow_approvals.search(status: "pending")
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .workflow_approvals()
    .search(kontiga::workflow_approvals::SearchParams {
        status: "pending".into(),
        ..Default::default()
    })
    .await?;
```

Response, 200 OK:

```json
{
  "items": [
    {
      "id": "apr_2Jr8Nc5",
      "case_id": "case_6Bq9Xt2",
      "case_reference": "APP-20366",
      "case_title": "Mortgage application, 27 Strand Road",
      "person_name": "Aidan Byrne",
      "case_owner": "Tomas Lindqvist",
      "workflow": { "id": "wf_3Kd8Pn2", "name": "Mortgage review" },
      "step": "Senior sign-off",
      "message": "The loan is above 400,000. A senior underwriter signs it off.",
      "approvers": "Admins and the owner",
      "status": "pending",
      "requested_at": "2026-11-26T16:22:48Z",
      "resolved": null
    }
  ],
  "next_cursor": null,
  "total": 1,
  "pending": 1
}
```
