# Identity clusters

> 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/identity-clusters

An identity cluster is a group of people linked by details they share, such as an address or a phone number, across your cases and documents and with people at other Kontiga customers. You see your own people, cases and documents in full. People at other customers are shown only as the kind of detail they share and how many, never who they are.

Updated November 30, 2026

## What you see

- Your own people, cases and documents, with the detail each gives, in full.
- People at other Kontiga customers as one group per kind of detail, with a size: a few, several or many. Never a name, a case, a document or the customer.
- Where you have a data sharing agreement with another Lookout member, the details it covers and the member's name, marked with the agreement. When the agreement ends, they go back to the anonymous group.
- Whether a document is linked to a known document farm. Never which farm.

## The identity cluster object

- `id` (string): The cluster's id, starting with `icl_`.
- `title` (string): What links it, in one line.
- `size` (enum): `small`, `medium` or `large`: how many people it links, here and at other customers, as a band.
- `risk` (enum): `review` or `high_risk`, in the verdict's words.
- `shared` (array): The kinds of detail that link it, the most links first, such as `address`, `phone` or `document`.
- `in_workspace` (object): How many of your own people, cases and documents it holds.
- `outside` (object): Whether people at other Kontiga customers share its details, how many as a band (`few`, `several`, `many`), and the kinds of detail. Never who.
- `agreements` (array): The data sharing agreements it shows more under, with the other member's name. Empty without one.
- `document_farm` (boolean): A document of it is linked to a known document farm. Never which farm.
- `person_ids, case_ids, document_ids` (array): Your own records in it.
- `first_seen_at, last_seen_at` (string): When its people were first and last seen sharing a detail.
- `status` (enum): Where your team is with it: `new`, `reviewing`, `escalated` or `cleared`.
- `cleared_reason` (enum): Why it was cleared: `same_household`, `known_relationship`, `data_error` or `other`. Null unless it is cleared.
- `assignee_id` (string): The member of your team who has it, starting with `mem_`. Null while nobody does.
- `updated_at` (string): When your team last changed it. Null while nobody has.

## The graph

Read one cluster for its graph. `nodes` are your people (`person`), cases (`case`) and documents (`document`), the details they meet at (`detail`, with the value), the anonymous groups of people at other customers (`outside`), people at a member under a data sharing agreement (`agreed`) and a known document farm (`farm`). `edges` join them: `party_to`, `sent`, `on_case`, `gives`, `shares` and `linked_to_farm`. `timeline` says how the cluster grew, oldest first.

## List identity clusters

The groups of people linked by details they share, across this workspace's cases and documents and with people at other Kontiga customers, each with its size, its risk and when it was first and last seen.

`GET /v1/identity_clusters`. Who may: Owner, Admin, Analyst and Viewer; Developer in test mode. CLI: `kontiga identity-clusters list [--risk <review|high_risk>] [--size <small|medium|large>] [--status <new|reviewing|escalated|cleared>] [--limit <n>]`. MCP tool: `list_identity_clusters`.

**Parameters**
- `risk` (enum): Only clusters of this risk: `review` or `high_risk`.
- `size` (enum): Only clusters of this size: `small`, `medium` or `large`.
- `status` (enum): Only clusters your team has at this point: `new`, `reviewing`, `escalated` or `cleared`.
- `limit` (integer): At most this many, from 1 to 200; 50 by default.

**Returns** list of identity clusters: The clusters, High risk first, then the most recently seen.

API:

```bash
curl -X GET "https://api.kontiga.com/v1/identity_clusters?risk=high_risk" \
  -H "Authorization: Bearer $KONTIGA_API_KEY"
```

CLI:

```bash
kontiga identity-clusters list --risk high_risk
```

MCP tool `list_identity_clusters`:

```json
{
  "name": "list_identity_clusters",
  "arguments": {
    "risk": "high_risk"
  }
}
```

TypeScript:

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

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.identityClusters.list({
  risk: "high_risk",
});
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.identity_clusters.list(risk="high_risk")
```

Go:

```go
client := kontiga.NewClient() // reads KONTIGA_API_KEY
result, err := client.IdentityClusters.List(ctx, &kontiga.IdentityClustersListParams{
	Risk: "high_risk",
})
if err != nil {
	return err
}
```

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.identityClusters().list(IdentityClustersListParams.builder()
    .risk("high_risk")
    .build());
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.IdentityClusters.ListAsync(new IdentityClustersListOptions
{
    Risk = "high_risk",
});
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // reads KONTIGA_API_KEY
$result = $kontiga->identityClusters->list([
    'risk' => 'high_risk',
]);
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.identity_clusters.list(risk: "high_risk")
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .identity_clusters()
    .list(kontiga::identity_clusters::ListParams {
        risk: "high_risk".into(),
        ..Default::default()
    })
    .await?;
```

Response, 200 OK:

```json
{
  "object": "list",
  "items": [
    {
      "id": "icl_0193c1a2c0207d4e8a1b2c3d4e5f6071",
      "object": "identity_cluster",
      "title": "Three people share a phone number and a bank account across four cases",
      "size": "medium",
      "risk": "high_risk",
      "shared": ["phone", "bank_account"],
      "in_workspace": { "people": 3, "cases": 4, "documents": 3 },
      "outside": { "linked": true, "size": "few", "shared": ["phone", "bank_account"] },
      "agreements": [{ "agreement_id": "dsa_0193c1a2c0247e5f8a1b2c3d4e5f6071", "lookout_member": "Corriemoor Mutual" }],
      "document_farm": true,
      "person_ids": ["per_2Kd9Lm4", "per_8Wq3Zt6", "per_5Pj1Cx7"],
      "case_ids": ["case_3Mv8Nb2", "case_6Tr1Yk5", "case_9Hs4Jd8", "case_1Qa7Fe3"],
      "document_ids": ["doc_0193c1a2b7d84e1f9a2b3c4d5e6f7081", "doc_0193c1a2b9e04f2a8b3c4d5e6f708192", "doc_0193c1a2bb124a3b8c4d5e6f708192a3"],
      "first_seen_at": "2026-10-14T03:40:00Z",
      "last_seen_at": "2026-11-25T08:54:00Z",
      "status": "reviewing",
      "cleared_reason": null,
      "assignee_id": "mem_0193c1a2a1b24c3d8e4f50617283a4b5",
      "updated_at": "2026-11-26T09:12:00Z"
    }
  ],
  "next_cursor": null,
  "has_more": false
}
```

## Read an identity cluster

One cluster as a graph: the workspace's own people, cases and documents and the details they share, in full; people at other Kontiga customers as anonymous groups, unless a data sharing agreement shows more.

`GET /v1/identity_clusters/{cluster_id}`. Who may: Owner, Admin, Analyst and Viewer; Developer in test mode. CLI: `kontiga identity-clusters get <cluster_id>`. MCP tool: `get_identity_cluster`.

**Parameters**
- `cluster_id` (id (icl_), required): The cluster to read. In the path.

**Returns** identity cluster: The cluster with its nodes, the edges between them and how it grew.

API:

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

CLI:

```bash
kontiga identity-clusters get icl_0193c1a2c0207d4e8a1b2c3d4e5f6071
```

MCP tool `get_identity_cluster`:

```json
{
  "name": "get_identity_cluster",
  "arguments": {
    "cluster_id": "icl_0193c1a2c0207d4e8a1b2c3d4e5f6071"
  }
}
```

TypeScript:

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

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.identityClusters.get("icl_0193c1a2c0207d4e8a1b2c3d4e5f6071");
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.identity_clusters.get("icl_0193c1a2c0207d4e8a1b2c3d4e5f6071")
```

Go:

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

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.identityClusters().get("icl_0193c1a2c0207d4e8a1b2c3d4e5f6071");
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.IdentityClusters.GetAsync("icl_0193c1a2c0207d4e8a1b2c3d4e5f6071");
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // reads KONTIGA_API_KEY
$result = $kontiga->identityClusters->get('icl_0193c1a2c0207d4e8a1b2c3d4e5f6071');
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.identity_clusters.get("icl_0193c1a2c0207d4e8a1b2c3d4e5f6071")
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .identity_clusters()
    .get("icl_0193c1a2c0207d4e8a1b2c3d4e5f6071".into())
    .await?;
```

Response, 200 OK:

```json
{
  "id": "icl_0193c1a2c0207d4e8a1b2c3d4e5f6071",
  "object": "identity_cluster",
  "title": "Three people share a phone number and a bank account across four cases",
  "size": "medium",
  "risk": "high_risk",
  "summary": "Ana Ribeiro, Tomás Vidal and Lucía Prado give the same phone number, and two of them the same payout account, on four cases. People at other Kontiga customers give the same phone number and account.",
  "nodes": [
    { "id": "per_2Kd9Lm4", "kind": "person", "label": "Ana Ribeiro", "person_id": "per_2Kd9Lm4", "reference": "CUS-20417", "country": "Spain" },
    { "id": "case_6Tr1Yk5", "kind": "case", "label": "C-4617, Liability", "case_id": "case_6Tr1Yk5", "reference": "C-4617", "title": "Liability", "state": "in_review", "outcome": null },
    { "id": "doc_0193c1a2b7d84e1f9a2b3c4d5e6f7081", "kind": "document", "label": "Bank details", "document_id": "doc_0193c1a2b7d84e1f9a2b3c4d5e6f7081", "type_label": "Bank details", "received_at": "2026-11-25T08:54:00Z", "verdict": "review" },
    { "id": "dtl_phone_1", "kind": "detail", "label": "+34 600 11 22 33", "detail": "phone", "value": "+34 600 11 22 33" },
    { "id": "out_phone", "kind": "outside", "label": "People at other Kontiga customers", "detail": "phone", "size": "few", "first_seen_on": "2026-11-19" },
    { "id": "agr_1", "kind": "agreed", "label": "A person at Corriemoor Mutual", "agreement_id": "dsa_0193c1a2c0247e5f8a1b2c3d4e5f6071", "lookout_member": "Corriemoor Mutual", "details": ["phone", "bank_account"], "person_name": "Jordi Serra", "case_reference": "CM-30118", "seen_on": "2026-11-14" },
    { "id": "farm", "kind": "farm", "label": "A known document farm" }
  ],
  "edges": [
    { "from": "per_2Kd9Lm4", "to": "case_6Tr1Yk5", "relation": "party_to", "detail": null },
    { "from": "per_2Kd9Lm4", "to": "doc_0193c1a2b7d84e1f9a2b3c4d5e6f7081", "relation": "sent", "detail": null },
    { "from": "doc_0193c1a2b7d84e1f9a2b3c4d5e6f7081", "to": "case_6Tr1Yk5", "relation": "on_case", "detail": null },
    { "from": "per_2Kd9Lm4", "to": "dtl_phone_1", "relation": "gives", "detail": "phone" },
    { "from": "out_phone", "to": "dtl_phone_1", "relation": "shares", "detail": "phone" },
    { "from": "agr_1", "to": "dtl_phone_1", "relation": "shares", "detail": "phone" },
    { "from": "doc_0193c1a2bb124a3b8c4d5e6f708192a3", "to": "farm", "relation": "linked_to_farm", "detail": null }
  ],
  "timeline": [
    { "at": "2026-11-14T07:40:00Z", "what": "Jordi Serra at Corriemoor Mutual gave the same phone number and bank account on CM-30118, under your data sharing agreement", "where": "agreed", "document_id": null, "case_id": null, "person_id": null },
    { "at": "2026-11-19T03:40:00Z", "what": "People at other Kontiga customers gave the same phone number", "where": "outside", "document_id": null, "case_id": null, "person_id": null },
    { "at": "2026-11-25T08:54:00Z", "what": "Bank details from Ana Ribeiro on C-4617", "where": "workspace", "document_id": "doc_0193c1a2b7d84e1f9a2b3c4d5e6f7081", "case_id": "case_6Tr1Yk5", "person_id": "per_2Kd9Lm4" }
  ]
}
```

## Find the clusters of a person, case or document

The identity clusters one person, case or document is part of: what the network panel of a case, a person or a document shows.

`GET /v1/identity_clusters/for`. Who may: Owner, Admin, Analyst and Viewer; Developer in test mode. CLI: `kontiga identity-clusters for [--person-id <person_id>] [--case-id <case_id>] [--document-id <document_id>]`. MCP tool: `find_identity_clusters`.

**Parameters**
- `person_id` (id (per_)): A person of yours.
- `case_id` (id (case_)): A case of yours.
- `document_id` (id (doc_)): A document of yours. Give exactly one of the three.

**Returns** identity cluster lookup: The person, case or document asked about, and the clusters it is part of.

API:

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

CLI:

```bash
kontiga identity-clusters for --case-id case_6Tr1Yk5
```

MCP tool `find_identity_clusters`:

```json
{
  "name": "find_identity_clusters",
  "arguments": {
    "case_id": "case_6Tr1Yk5"
  }
}
```

TypeScript:

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

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.identityClusters.for({
  case_id: "case_6Tr1Yk5",
});
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.identity_clusters.for_(case_id="case_6Tr1Yk5")
```

Go:

```go
client := kontiga.NewClient() // reads KONTIGA_API_KEY
result, err := client.IdentityClusters.For(ctx, &kontiga.IdentityClustersForParams{
	CaseId: "case_6Tr1Yk5",
})
if err != nil {
	return err
}
```

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.identityClusters().for_(IdentityClustersForParams.builder()
    .caseId("case_6Tr1Yk5")
    .build());
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.IdentityClusters.ForAsync(new IdentityClustersForOptions
{
    CaseId = "case_6Tr1Yk5",
});
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // reads KONTIGA_API_KEY
$result = $kontiga->identityClusters->for([
    'case_id' => 'case_6Tr1Yk5',
]);
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.identity_clusters.for(case_id: "case_6Tr1Yk5")
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .identity_clusters()
    .r#for(kontiga::identity_clusters::ForParams {
        case_id: "case_6Tr1Yk5".into(),
        ..Default::default()
    })
    .await?;
```

Response, 200 OK:

```json
{
  "subject": { "type": "case", "id": "case_6Tr1Yk5" },
  "clusters": [
    { "id": "icl_0193c1a2c0207d4e8a1b2c3d4e5f6071", "object": "identity_cluster", "title": "Three people share a phone number and a bank account across four cases", "size": "medium", "risk": "high_risk", "shared": ["phone", "bank_account"] }
  ]
}
```

## Handle an identity cluster

Moves a cluster on: start reviewing it, escalate it, clear it with a reason or open it again, give it to a member of the team, or add a note. Every change is kept in its history.

`PATCH /v1/identity_clusters/{cluster_id}`. Who may: Owner, Admin and Analyst; Developer in test mode. CLI: `kontiga identity-clusters update <cluster_id> [--status <new|reviewing|escalated|cleared>] [--reason <same_household|known_relationship|data_error|other>] [--assignee-id <member_id|none>] [--note <text>]`. MCP tool: `update_identity_cluster`.

**Parameters**
- `cluster_id` (id (icl_), required): The cluster to handle. In the path.
- `status` (enum): `reviewing`, `escalated`, `cleared`, or `new` to open it again.
- `reason` (enum): Why it is cleared: `same_household`, `known_relationship`, `data_error` or `other`. Required to clear it, and only then.
- `assignee_id` (id (mem_) or literal): A member of your team who handles cases, or `none`. Giving a new cluster to someone starts its review.
- `note` (string): At most 2,000 characters, kept in the cluster's history.

**Returns** identity cluster: The cluster as it is now, with the change in its history.

API:

```bash
curl -X PATCH https://api.kontiga.com/v1/identity_clusters/icl_0193c1a2c0207d4e8a1b2c3d4e5f6071 \
  -H "Authorization: Bearer $KONTIGA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "status": "escalated",
    "assignee_id": "mem_0193c1a2a1b24c3d8e4f50617283a4b5",
    "note": "Hold the payouts on all four cases until this is looked at."
  }'
```

CLI:

```bash
kontiga identity-clusters update icl_0193c1a2c0207d4e8a1b2c3d4e5f6071 \
  --status escalated \
  --assignee-id mem_0193c1a2a1b24c3d8e4f50617283a4b5 \
  --note 'Hold the payouts on all four cases until this is looked at.'
```

MCP tool `update_identity_cluster`:

```json
{
  "name": "update_identity_cluster",
  "arguments": {
    "cluster_id": "icl_0193c1a2c0207d4e8a1b2c3d4e5f6071",
    "status": "escalated",
    "assignee_id": "mem_0193c1a2a1b24c3d8e4f50617283a4b5",
    "note": "Hold the payouts on all four cases until this is looked at."
  }
}
```

TypeScript:

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

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.identityClusters.update("icl_0193c1a2c0207d4e8a1b2c3d4e5f6071", {
  status: "escalated",
  assignee_id: "mem_0193c1a2a1b24c3d8e4f50617283a4b5",
  note: "Hold the payouts on all four cases until this is looked at.",
});
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.identity_clusters.update(
    "icl_0193c1a2c0207d4e8a1b2c3d4e5f6071",
    status="escalated",
    assignee_id="mem_0193c1a2a1b24c3d8e4f50617283a4b5",
    note="Hold the payouts on all four cases until this is looked at.",
)
```

Go:

```go
client := kontiga.NewClient() // reads KONTIGA_API_KEY
result, err := client.IdentityClusters.Update(ctx, "icl_0193c1a2c0207d4e8a1b2c3d4e5f6071", &kontiga.IdentityClustersUpdateParams{
	Status:     "escalated",
	AssigneeId: "mem_0193c1a2a1b24c3d8e4f50617283a4b5",
	Note:       "Hold the payouts on all four cases until this is looked at.",
})
if err != nil {
	return err
}
```

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.identityClusters().update("icl_0193c1a2c0207d4e8a1b2c3d4e5f6071", IdentityClustersUpdateParams.builder()
    .status("escalated")
    .assigneeId("mem_0193c1a2a1b24c3d8e4f50617283a4b5")
    .note("Hold the payouts on all four cases until this is looked at.")
    .build());
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.IdentityClusters.UpdateAsync("icl_0193c1a2c0207d4e8a1b2c3d4e5f6071", new IdentityClustersUpdateOptions
{
    Status = "escalated",
    AssigneeId = "mem_0193c1a2a1b24c3d8e4f50617283a4b5",
    Note = "Hold the payouts on all four cases until this is looked at.",
});
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // reads KONTIGA_API_KEY
$result = $kontiga->identityClusters->update('icl_0193c1a2c0207d4e8a1b2c3d4e5f6071', [
    'status' => 'escalated',
    'assignee_id' => 'mem_0193c1a2a1b24c3d8e4f50617283a4b5',
    'note' => 'Hold the payouts on all four cases until this is looked at.',
]);
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.identity_clusters.update(
  "icl_0193c1a2c0207d4e8a1b2c3d4e5f6071",
  status: "escalated",
  assignee_id: "mem_0193c1a2a1b24c3d8e4f50617283a4b5",
  note: "Hold the payouts on all four cases until this is looked at."
)
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .identity_clusters()
    .update("icl_0193c1a2c0207d4e8a1b2c3d4e5f6071".into(), kontiga::identity_clusters::UpdateParams {
        status: "escalated".into(),
        assignee_id: "mem_0193c1a2a1b24c3d8e4f50617283a4b5".into(),
        note: "Hold the payouts on all four cases until this is looked at.".into(),
        ..Default::default()
    })
    .await?;
```

Response, 200 OK:

```json
{
  "id": "icl_0193c1a2c0207d4e8a1b2c3d4e5f6071",
  "object": "identity_cluster",
  "title": "Three people share a phone number and a bank account across four cases",
  "risk": "high_risk",
  "status": "escalated",
  "cleared_reason": null,
  "assignee_id": "mem_0193c1a2a1b24c3d8e4f50617283a4b5",
  "updated_at": "2026-11-27T10:05:00Z",
  "history": [
    { "at": "2026-11-26T09:12:00Z", "by": "mem_0193c1a2a1b94c3d8e4f50617283a4c2", "by_name": "Ines Carvalho", "status": "reviewing", "assignee_id": "mem_0193c1a2a1b94c3d8e4f50617283a4c2", "reason": null, "note": null },
    { "at": "2026-11-27T10:05:00Z", "by": "mem_0193c1a2a1b94c3d8e4f50617283a4c2", "by_name": "Ines Carvalho", "status": "escalated", "assignee_id": "mem_0193c1a2a1b24c3d8e4f50617283a4b5", "reason": null, "note": "Hold the payouts on all four cases until this is looked at." }
  ]
}
```

A person, case or document that is not yours answers `404 Not Found`, as one that does not exist does. Test mode has no clusters: test documents never join the network, so a test key's list is empty.

A secret key, a restricted key with `cases:read` and a member who reads cases read clusters; handling one takes `cases:write`. An update answers the cluster in full, with its history.

## Events

- `cluster.created`: a new identity cluster holds your documents.
- `cluster.updated`: a cluster grew, or your team moved it on, gave it to someone or noted on it.
- `data_sharing_agreement.updated`: an agreement was proposed, accepted, paused, resumed or ended. Each workspace gets its own view of it.

Each carries the object as its route answers it to your workspace, by the same rule: never who at another customer is behind a match.

## Data sharing agreements

A cluster shows what another workspace holds only under a data sharing agreement both workspaces keep active, and then only the details the agreement names: never a value, a document or a fraud standing.

Each agreement is one direction: the workspace that proposes it shares with the one that accepts it. Both directions active make it bilateral. Members change agreements: an owner or an admin proposes, accepts, pauses, resumes or ends one. A secret key may list them.

## List data sharing agreements

The workspace's data sharing agreements with other workspaces: who proposed each, where it stands, what each side sees, and whether both directions are active.

`GET /v1/data_sharing_agreements`. Who may: Owner, Admin, Analyst, Developer and Viewer. CLI: `kontiga agreements list [--status <proposed|active|paused|ended>]`. MCP tool: `list_data_sharing_agreements`.

**Parameters**
- `status` (enum): Only agreements in this state: `proposed`, `active`, `paused` or `ended`.

**Returns** list of data sharing agreements: The agreements, newest first.

API:

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

CLI:

```bash
kontiga agreements list
```

MCP tool `list_data_sharing_agreements`:

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

TypeScript:

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

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.dataSharingAgreements.list();
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.data_sharing_agreements.list()
```

Go:

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

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.dataSharingAgreements().list();
```

.NET:

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

PHP:

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

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.data_sharing_agreements.list
```

Rust:

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

Response, 200 OK:

```json
{
  "object": "list",
  "items": [{
    "id": "dsa_0193c1a2c0247e5f8a1b2c3d4e5f6071",
    "object": "data_sharing_agreement",
    "lookout_member": "Corriemoor Mutual",
    "details": ["person_name", "case_reference"],
    "starts_on": "2026-10-01",
    "ends_on": "2027-09-30",
    "status": "active",
    "direction": "outgoing",
    "account_number": "KT-01JDXR2B7M5Q8V3K9W4T6Y1H2C",
    "bilateral": true,
    "proposed_at": "2026-09-24T09:00:00Z",
    "accepted_at": "2026-09-25T14:10:00Z",
    "paused_at": null,
    "ended_at": null
  }],
  "next_cursor": null,
  "has_more": false
}
```

## Propose a data sharing agreement

Invite another workspace by its account number to share what clusters show of each other's matches. It starts once they accept.

`POST /v1/data_sharing_agreements`. Who may: Owner and Admin. CLI: `kontiga agreements create --account-number <number> [--details <person_name|case_reference>,...] [--ends-on <yyyy-mm-dd>]`. MCP tool: `propose_data_sharing_agreement`.

**Parameters**
- `account_number` (string, required): The other workspace's account number, as its settings show it.
- `details` (array of enum, default []): What each side may see of the other's matches: `person_name`, `case_reference`. None shows only that a match exists. At most 2 items.
- `ends_on` (string, default null): When it ends, `yyyy-mm-dd`; without one it runs until either side ends it. `null` clears it.

**Returns** data sharing agreement: The agreement, proposed.

API:

```bash
curl -X POST https://api.kontiga.com/v1/data_sharing_agreements \
  -H "Authorization: Bearer $KONTIGA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "account_number": "KT-01JDXR2B7M5Q8V3K9W4T6Y1H2C",
    "details": [
      "person_name",
      "case_reference"
    ]
  }'
```

CLI:

```bash
kontiga agreements create \
  --account-number KT-01JDXR2B7M5Q8V3K9W4T6Y1H2C \
  --details person_name,case_reference
```

MCP tool `propose_data_sharing_agreement`:

```json
{
  "name": "propose_data_sharing_agreement",
  "arguments": {
    "account_number": "KT-01JDXR2B7M5Q8V3K9W4T6Y1H2C",
    "details": [
      "person_name",
      "case_reference"
    ]
  }
}
```

TypeScript:

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

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.dataSharingAgreements.create({
  account_number: "KT-01JDXR2B7M5Q8V3K9W4T6Y1H2C",
  details: ["person_name", "case_reference"],
});
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.data_sharing_agreements.create(account_number="KT-01JDXR2B7M5Q8V3K9W4T6Y1H2C", details=["person_name", "case_reference"])
```

Go:

```go
client := kontiga.NewClient() // reads KONTIGA_API_KEY
result, err := client.DataSharingAgreements.Create(ctx, &kontiga.DataSharingAgreementsCreateParams{
	AccountNumber: "KT-01JDXR2B7M5Q8V3K9W4T6Y1H2C",
	Details:       []string{"person_name", "case_reference"},
})
if err != nil {
	return err
}
```

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.dataSharingAgreements().create(DataSharingAgreementsCreateParams.builder()
    .accountNumber("KT-01JDXR2B7M5Q8V3K9W4T6Y1H2C")
    .details(List.of("person_name", "case_reference"))
    .build());
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.DataSharingAgreements.CreateAsync(new DataSharingAgreementsCreateOptions
{
    AccountNumber = "KT-01JDXR2B7M5Q8V3K9W4T6Y1H2C",
    Details = new[] { "person_name", "case_reference" },
});
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // reads KONTIGA_API_KEY
$result = $kontiga->dataSharingAgreements->create([
    'account_number' => 'KT-01JDXR2B7M5Q8V3K9W4T6Y1H2C',
    'details' => ['person_name', 'case_reference'],
]);
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.data_sharing_agreements.create(account_number: "KT-01JDXR2B7M5Q8V3K9W4T6Y1H2C", details: ["person_name", "case_reference"])
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .data_sharing_agreements()
    .create(kontiga::data_sharing_agreements::CreateParams {
        account_number: "KT-01JDXR2B7M5Q8V3K9W4T6Y1H2C".into(),
        details: vec!["person_name".into(), "case_reference".into()],
        ..Default::default()
    })
    .await?;
```

Response, 200 OK:

```json
{
  "id": "dsa_0193c1a2c0247e5f8a1b2c3d4e5f6071",
  "object": "data_sharing_agreement",
  "lookout_member": "Corriemoor Mutual",
  "details": ["person_name", "case_reference"],
  "starts_on": "2026-10-01",
  "ends_on": "2027-09-30",
  "status": "active",
  "direction": "outgoing",
  "account_number": "KT-01JDXR2B7M5Q8V3K9W4T6Y1H2C",
  "bilateral": true,
  "proposed_at": "2026-09-24T09:00:00Z",
  "accepted_at": "2026-09-25T14:10:00Z",
  "paused_at": null,
  "ended_at": null
}
```

## Accept a data sharing agreement

Accept an agreement another workspace proposed: from now on both see what it covers.

`POST /v1/data_sharing_agreements/{agreement_id}/accept`. Who may: Owner and Admin. CLI: `kontiga agreements accept <agreement_id>`. MCP tool: `accept_data_sharing_agreement`.

**Parameters**
- `agreement_id` (id (dsa_), required): An agreement another workspace proposed to yours. In the path.

**Returns** data sharing agreement: The agreement, active.

API:

```bash
curl -X POST https://api.kontiga.com/v1/data_sharing_agreements/dsa_0193c1a2c0247e5f8a1b2c3d4e5f6071/accept \
  -H "Authorization: Bearer $KONTIGA_API_KEY"
```

CLI:

```bash
kontiga agreements accept dsa_0193c1a2c0247e5f8a1b2c3d4e5f6071
```

MCP tool `accept_data_sharing_agreement`:

```json
{
  "name": "accept_data_sharing_agreement",
  "arguments": {
    "agreement_id": "dsa_0193c1a2c0247e5f8a1b2c3d4e5f6071"
  }
}
```

TypeScript:

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

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.dataSharingAgreements.accept("dsa_0193c1a2c0247e5f8a1b2c3d4e5f6071");
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.data_sharing_agreements.accept("dsa_0193c1a2c0247e5f8a1b2c3d4e5f6071")
```

Go:

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

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.dataSharingAgreements().accept("dsa_0193c1a2c0247e5f8a1b2c3d4e5f6071");
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.DataSharingAgreements.AcceptAsync("dsa_0193c1a2c0247e5f8a1b2c3d4e5f6071");
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // reads KONTIGA_API_KEY
$result = $kontiga->dataSharingAgreements->accept('dsa_0193c1a2c0247e5f8a1b2c3d4e5f6071');
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.data_sharing_agreements.accept("dsa_0193c1a2c0247e5f8a1b2c3d4e5f6071")
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .data_sharing_agreements()
    .accept("dsa_0193c1a2c0247e5f8a1b2c3d4e5f6071".into())
    .await?;
```

Response, 200 OK:

```json
{
  "id": "dsa_0193c1a2c0247e5f8a1b2c3d4e5f6071",
  "object": "data_sharing_agreement",
  "lookout_member": "Corriemoor Mutual",
  "details": ["person_name", "case_reference"],
  "starts_on": "2026-10-01",
  "ends_on": "2027-09-30",
  "status": "active",
  "direction": "outgoing",
  "account_number": "KT-01JDXR2B7M5Q8V3K9W4T6Y1H2C",
  "bilateral": true,
  "proposed_at": "2026-09-24T09:00:00Z",
  "accepted_at": "2026-09-25T14:10:00Z",
  "paused_at": null,
  "ended_at": null
}
```

A step an agreement cannot take now, such as accepting one your own workspace proposed or resuming one that ended, answers `409 Conflict`.

## Pause a data sharing agreement

Stop sharing for a while: neither side sees the other's matches until it is resumed.

`POST /v1/data_sharing_agreements/{agreement_id}/pause`. Who may: Owner and Admin. CLI: `kontiga agreements pause <agreement_id>`. MCP tool: `pause_data_sharing_agreement`.

**Parameters**
- `agreement_id` (id (dsa_), required): An active agreement. In the path.

**Returns** data sharing agreement: The agreement, paused.

API:

```bash
curl -X POST https://api.kontiga.com/v1/data_sharing_agreements/dsa_0193c1a2c0247e5f8a1b2c3d4e5f6071/pause \
  -H "Authorization: Bearer $KONTIGA_API_KEY"
```

CLI:

```bash
kontiga agreements pause dsa_0193c1a2c0247e5f8a1b2c3d4e5f6071
```

MCP tool `pause_data_sharing_agreement`:

```json
{
  "name": "pause_data_sharing_agreement",
  "arguments": {
    "agreement_id": "dsa_0193c1a2c0247e5f8a1b2c3d4e5f6071"
  }
}
```

TypeScript:

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

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.dataSharingAgreements.pause("dsa_0193c1a2c0247e5f8a1b2c3d4e5f6071");
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.data_sharing_agreements.pause("dsa_0193c1a2c0247e5f8a1b2c3d4e5f6071")
```

Go:

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

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.dataSharingAgreements().pause("dsa_0193c1a2c0247e5f8a1b2c3d4e5f6071");
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.DataSharingAgreements.PauseAsync("dsa_0193c1a2c0247e5f8a1b2c3d4e5f6071");
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // reads KONTIGA_API_KEY
$result = $kontiga->dataSharingAgreements->pause('dsa_0193c1a2c0247e5f8a1b2c3d4e5f6071');
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.data_sharing_agreements.pause("dsa_0193c1a2c0247e5f8a1b2c3d4e5f6071")
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .data_sharing_agreements()
    .pause("dsa_0193c1a2c0247e5f8a1b2c3d4e5f6071".into())
    .await?;
```

Response, 200 OK:

```json
{
  "id": "dsa_0193c1a2c0247e5f8a1b2c3d4e5f6071",
  "object": "data_sharing_agreement",
  "lookout_member": "Corriemoor Mutual",
  "details": ["person_name", "case_reference"],
  "starts_on": "2026-10-01",
  "ends_on": "2027-09-30",
  "status": "active",
  "direction": "outgoing",
  "account_number": "KT-01JDXR2B7M5Q8V3K9W4T6Y1H2C",
  "bilateral": true,
  "proposed_at": "2026-09-24T09:00:00Z",
  "accepted_at": "2026-09-25T14:10:00Z",
  "paused_at": null,
  "ended_at": null
}
```

## Resume a data sharing agreement

Share again under a paused agreement.

`POST /v1/data_sharing_agreements/{agreement_id}/resume`. Who may: Owner and Admin. CLI: `kontiga agreements resume <agreement_id>`. MCP tool: `resume_data_sharing_agreement`.

**Parameters**
- `agreement_id` (id (dsa_), required): A paused agreement. In the path.

**Returns** data sharing agreement: The agreement, active again.

API:

```bash
curl -X POST https://api.kontiga.com/v1/data_sharing_agreements/dsa_0193c1a2c0247e5f8a1b2c3d4e5f6071/resume \
  -H "Authorization: Bearer $KONTIGA_API_KEY"
```

CLI:

```bash
kontiga agreements resume dsa_0193c1a2c0247e5f8a1b2c3d4e5f6071
```

MCP tool `resume_data_sharing_agreement`:

```json
{
  "name": "resume_data_sharing_agreement",
  "arguments": {
    "agreement_id": "dsa_0193c1a2c0247e5f8a1b2c3d4e5f6071"
  }
}
```

TypeScript:

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

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.dataSharingAgreements.resume("dsa_0193c1a2c0247e5f8a1b2c3d4e5f6071");
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.data_sharing_agreements.resume("dsa_0193c1a2c0247e5f8a1b2c3d4e5f6071")
```

Go:

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

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.dataSharingAgreements().resume("dsa_0193c1a2c0247e5f8a1b2c3d4e5f6071");
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.DataSharingAgreements.ResumeAsync("dsa_0193c1a2c0247e5f8a1b2c3d4e5f6071");
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // reads KONTIGA_API_KEY
$result = $kontiga->dataSharingAgreements->resume('dsa_0193c1a2c0247e5f8a1b2c3d4e5f6071');
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.data_sharing_agreements.resume("dsa_0193c1a2c0247e5f8a1b2c3d4e5f6071")
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .data_sharing_agreements()
    .resume("dsa_0193c1a2c0247e5f8a1b2c3d4e5f6071".into())
    .await?;
```

Response, 200 OK:

```json
{
  "id": "dsa_0193c1a2c0247e5f8a1b2c3d4e5f6071",
  "object": "data_sharing_agreement",
  "lookout_member": "Corriemoor Mutual",
  "details": ["person_name", "case_reference"],
  "starts_on": "2026-10-01",
  "ends_on": "2027-09-30",
  "status": "active",
  "direction": "outgoing",
  "account_number": "KT-01JDXR2B7M5Q8V3K9W4T6Y1H2C",
  "bilateral": true,
  "proposed_at": "2026-09-24T09:00:00Z",
  "accepted_at": "2026-09-25T14:10:00Z",
  "paused_at": null,
  "ended_at": null
}
```

## End a data sharing agreement

End an agreement for good: nothing more is shared under it.

`POST /v1/data_sharing_agreements/{agreement_id}/terminate`. Who may: Owner and Admin. CLI: `kontiga agreements terminate <agreement_id>`. MCP tool: `terminate_data_sharing_agreement`.

**Parameters**
- `agreement_id` (id (dsa_), required): The agreement to end for good. In the path.

**Returns** data sharing agreement: The agreement, ended.

API:

```bash
curl -X POST https://api.kontiga.com/v1/data_sharing_agreements/dsa_0193c1a2c0247e5f8a1b2c3d4e5f6071/terminate \
  -H "Authorization: Bearer $KONTIGA_API_KEY"
```

CLI:

```bash
kontiga agreements terminate dsa_0193c1a2c0247e5f8a1b2c3d4e5f6071
```

MCP tool `terminate_data_sharing_agreement`:

```json
{
  "name": "terminate_data_sharing_agreement",
  "arguments": {
    "agreement_id": "dsa_0193c1a2c0247e5f8a1b2c3d4e5f6071"
  }
}
```

TypeScript:

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

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.dataSharingAgreements.terminate("dsa_0193c1a2c0247e5f8a1b2c3d4e5f6071");
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.data_sharing_agreements.terminate("dsa_0193c1a2c0247e5f8a1b2c3d4e5f6071")
```

Go:

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

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.dataSharingAgreements().terminate("dsa_0193c1a2c0247e5f8a1b2c3d4e5f6071");
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.DataSharingAgreements.TerminateAsync("dsa_0193c1a2c0247e5f8a1b2c3d4e5f6071");
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // reads KONTIGA_API_KEY
$result = $kontiga->dataSharingAgreements->terminate('dsa_0193c1a2c0247e5f8a1b2c3d4e5f6071');
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.data_sharing_agreements.terminate("dsa_0193c1a2c0247e5f8a1b2c3d4e5f6071")
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .data_sharing_agreements()
    .terminate("dsa_0193c1a2c0247e5f8a1b2c3d4e5f6071".into())
    .await?;
```

Response, 200 OK:

```json
{
  "id": "dsa_0193c1a2c0247e5f8a1b2c3d4e5f6071",
  "object": "data_sharing_agreement",
  "lookout_member": "Corriemoor Mutual",
  "details": ["person_name", "case_reference"],
  "starts_on": "2026-10-01",
  "ends_on": "2027-09-30",
  "status": "active",
  "direction": "outgoing",
  "account_number": "KT-01JDXR2B7M5Q8V3K9W4T6Y1H2C",
  "bilateral": true,
  "proposed_at": "2026-09-24T09:00:00Z",
  "accepted_at": "2026-09-25T14:10:00Z",
  "paused_at": null,
  "ended_at": null
}
```
