# Case data

> 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-data

Every value a case holds in one read: the parties' contact details, their answers to the checklist's questions, values read from their documents, the case's own facts and the variables its workflow set. Each value says where it came from.

Updated November 28, 2026

## The case data object

- `case_id` (string): The case, starting with `case_`.
- `values` (array): Every value, in the order the case gathered them.
  - `key` (string): A stable key to read the value by, such as `applicant.email` or `answers.start_date`.
  - `label` (string): The value's name as members see it.
  - `value` (string): The value as text. Amounts are written with a dot and two decimals, dates as `yyyy-mm-dd`.
  - `source` (enum): `case`, `party`, `answer`, `document` or `workflow`.
  - `document_id` (string): For a value read from a document, the document it was read from.
- `workflow` (object): The workflow the case runs on, with its id and name. `null` when none runs.

## Read what the case collected

Whatever your workspace calls them on screen, the API, CLI, MCP and webhooks say case and cases. Every value the case collected or was given: the parties' answers, their contact details, the case's own facts and its workflow's variables; and how far its workflow run is.

`GET /v1/cases/{case_id}/data`. Who may: Owner, Admin, Analyst and Viewer; Developer in test mode. CLI: `kontiga cases data <case_id>`. MCP tool: `get_case_data`.

**Parameters**
- `case_id` (id (case_), required): The case to read. In the path.

**Returns** case data: Each value with its key, its label and where it came from.

API:

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

CLI:

```bash
kontiga cases data case_7Kq2Xw9
```

MCP tool `get_case_data`:

```json
{
  "name": "get_case_data",
  "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.data("case_7Kq2Xw9");
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.cases.data("case_7Kq2Xw9")
```

Go:

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

Java:

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

.NET:

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

PHP:

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

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.cases.data("case_7Kq2Xw9")
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .cases()
    .data("case_7Kq2Xw9".into())
    .await?;
```

Response, 200 OK:

```json
{
  "object": "case_data",
  "case_id": "case_7Kq2Xw9",
  "mode": "live",
  "values": [
    {
      "key": "case.reference",
      "label": "Reference",
      "value": "APP-20418",
      "source": "case"
    },
    {
      "key": "case.title",
      "label": "Title",
      "value": "Mortgage application, 14 Harbour Row",
      "source": "case"
    },
    {
      "key": "applicant.first_name",
      "label": "First name",
      "value": "Clara",
      "source": "party"
    },
    {
      "key": "applicant.last_name",
      "label": "Last name",
      "value": "Whelan",
      "source": "party"
    },
    {
      "key": "applicant.email",
      "label": "Email",
      "value": "clara.whelan@mail.example",
      "source": "party"
    },
    {
      "key": "applicant.phone",
      "label": "Phone",
      "value": "+353 87 412 6630",
      "source": "party"
    },
    {
      "key": "answers.loan_amount",
      "label": "Loan amount",
      "value": "412000.00",
      "source": "answer"
    },
    {
      "key": "answers.property_address",
      "label": "Property address",
      "value": "14 Harbour Row, Galway H91 E2K7",
      "source": "answer"
    },
    {
      "key": "answers.employment_start",
      "label": "Employed since",
      "value": "2026-09-01",
      "source": "answer"
    },
    {
      "key": "documents.payslip_october.net_pay",
      "label": "Net pay, October 2026",
      "value": "3412.60",
      "source": "document",
      "document_id": "doc_4Fp8Ns2"
    },
    {
      "key": "workflow.loan_to_value",
      "label": "Loan to value",
      "value": "0.78",
      "source": "workflow"
    }
  ],
  "workflow": {
    "id": "wf_2Pk7Hd3",
    "name": "Mortgage applications"
  }
}
```
