# People

> 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/people

Whatever your workspace calls them on screen (Claimants, Tenants, Members or its own word), the API, the CLI, the MCP server and webhooks say person and people. People is your workspace's registry of end customers: the people you collect documents from, verify and screen. Each person keeps what was proven about them, with the document that proved it, so a later case can reuse it. Add people one at a time or from a file, find them, read their profile and timeline, and ask them to verify their identity.

Updated December 1, 2026

## Contents

- [Always person and people](https://kontiga.com/docs/people#always-person-and-people)
- [The person object](https://kontiga.com/docs/people#the-person-object)
- [Add a person](https://kontiga.com/docs/people#add-a-person)
- [List people](https://kontiga.com/docs/people#list-people)
- [Search people](https://kontiga.com/docs/people#search-people)
- [Read a person](https://kontiga.com/docs/people#read-a-person)
- [Read a person's profile](https://kontiga.com/docs/people#read-a-persons-profile)
- [Read a person's timeline](https://kontiga.com/docs/people#read-a-persons-timeline)
- [Update a person](https://kontiga.com/docs/people#update-a-person)
- [Add a note to a person](https://kontiga.com/docs/people#add-a-note)
- [List a person's notes](https://kontiga.com/docs/people#list-a-persons-notes)
- [Revoke a fact](https://kontiga.com/docs/people#revoke-a-fact)
- [Import people from a file](https://kontiga.com/docs/people#import-people)
- [Read a person's identity verification](https://kontiga.com/docs/people#read-a-persons-identity-verification)
- [Verify a person's identity](https://kontiga.com/docs/people#verify-a-persons-identity)
- [Finding the same person twice](https://kontiga.com/docs/people#finding-the-same-person-twice)
- [Match a person](https://kontiga.com/docs/people#match-a-person)
- [List a person's facts](https://kontiga.com/docs/people#list-a-persons-facts)
- [Preview what a request would reuse](https://kontiga.com/docs/people#preview-what-a-request-would-reuse)
- [List duplicate suggestions](https://kontiga.com/docs/people#list-duplicate-suggestions)
- [Count open duplicate suggestions](https://kontiga.com/docs/people#count-open-duplicate-suggestions)
- [Get a duplicate suggestion](https://kontiga.com/docs/people#get-a-duplicate-suggestion)
- [Dismiss a duplicate suggestion](https://kontiga.com/docs/people#dismiss-a-duplicate-suggestion)
- [Merge two people](https://kontiga.com/docs/people#merge-two-people)
- [Undo a merge](https://kontiga.com/docs/people#undo-a-merge)
- [Get a merge](https://kontiga.com/docs/people#get-a-merge)
- [List what a merge moved](https://kontiga.com/docs/people#list-what-a-merge-moved)
- [List what an undo may move](https://kontiga.com/docs/people#list-what-an-undo-may-move)
- [List a person's merges](https://kontiga.com/docs/people#list-a-persons-merges)
- [List a person's identity links](https://kontiga.com/docs/people#list-a-persons-identity-links)
- [Remove an identity link](https://kontiga.com/docs/people#remove-an-identity-link)
- [Importing, exporting and deleting](https://kontiga.com/docs/people#importing-exporting-and-deleting)
- [Start an import of people](https://kontiga.com/docs/people#start-an-import-of-people)
- [List imports of people](https://kontiga.com/docs/people#list-imports-of-people)
- [Read an import of people](https://kontiga.com/docs/people#read-an-import-of-people)
- [Commit an import of people](https://kontiga.com/docs/people#commit-an-import-of-people)
- [Cancel an import of people](https://kontiga.com/docs/people#cancel-an-import-of-people)
- [Export a person](https://kontiga.com/docs/people#export-a-person)
- [Delete a person](https://kontiga.com/docs/people#delete-a-person)
- [People events](https://kontiga.com/docs/people#people-events)

## Always person and people

Each workspace chooses the word its team sees for the people it checks, in the setup and in [Settings](https://kontiga.com/docs/settings#read-the-registry-rules). It changes the console's menus, titles and buttons. It never changes a name in the API, where every one of them is a person in People:

- **Endpoints:** `/v1/people`, `/v1/people/{person_id}`
- **Ids and fields:** `per_...`, `person_id`; a case's party points to a `person_id`
- **Webhooks and events:** `person.created`, `person.updated`, `person.merged`
- **CLI:** `kontiga people`
- **MCP tools:** `create_person`, `get_person`, `list_people`, `search_people` and the other people tools

`word_singular` and `word_plural` of [the registry rules](https://kontiga.com/docs/settings#read-the-registry-rules) give the word, so an agent can use it when it writes to your team. A member is always someone on your team ([Members](https://kontiga.com/docs/members), ids `mem_`), even in a workspace that calls its people Members.

## The person object

- `id` (string): The person's id, starting with `per_`.
- `mode` (enum): `live` or `test`.
- `name` (string): Their name, as given.
- `email` (string): Where requests and links reach them by email.
- `phone` (string): Where requests reach them by text message, in international form.
- `birth_date` (string): Their date of birth, `yyyy-mm-dd`, as given or as read from their ID.
- `country` (string): The country they live in, as a two-letter ISO 3166 code such as `IE`; `null` when none was given.
- `reference` (string): Your own reference for them, such as a customer number.
- `identity` (enum): Their latest identity verification: `not_started`, `in_progress`, `passed`, `failed` or `needs_review`.
- `screening` (enum): Their latest screening: `pending`, `not_screened`, `clear`, `possible_match` or `confirmed_match`, or `never` when they were never screened.
- `case_ids` (array): The 20 cases they joined most recently, newest first. `counts.cases` says how many there are in all, and `expand=cases` lists up to 200 of them.
- `created_at` (string): When they were added.
- `kind` (enum): `individual`, or `company` for a business taking part in a case.
- `status` (enum): `active`; `merged` once merged into another profile (then `merged_into` names it); `deleting` while a deletion runs.
- `external_ids` (object): Their ids in your other systems, by namespace, such as `{"crm:contact": "51234"}`.
- `aliases` (object): Older references, emails and phones that still find them: a reference you changed, an email replaced by a newer one.
- `given_name` (string): Their given name, as given; `null` when none was.
- `family_name` (string): Their family name, as given; `null` when none was.
- `locale` (string): The language their messages are written in; `null` for the workspace's.
- `occupation` (string): Their job, as given; `null` when none was.
- `marital_status` (enum): `single`, `married`, `registered_partnership`, `divorced`, `widowed` or `separated`, as given; `null` when none was.
- `risk_level` (enum): The risk level your team keeps: `unset`, `low`, `medium` or `high`. Kontiga never sets it.
- `metadata` (object): Your own keys and values, up to 50. An update merges it key by key.
- `legal_hold` (boolean): `true` while nothing of theirs may be deleted.
- `unproven` (boolean): `true` for someone who typed their details into a public link or a widget without proving them. Their identifiers never find anyone until proven.
- `source` (enum): How they came to People: `console`, `api`, `bulk_request`, `import`, `sync`, `document_api`, `portal` or `workflow`.
- `merged_into` (string): The profile they were merged into; `null` otherwise.
- `updated_at` (string): When their details last changed.
- `last_activity_at` (string): When a document of theirs last arrived, a check of theirs completed or a case of theirs was decided.
- `counts` (object): How many `cases` they are part of in all, how many of them are open (`open_cases`), and how many `documents` they have. Read these, never the length of `case_ids`.
- `document_ids` (array): Their documents' ids.
- `monitored` (boolean): `true` when they are screened again on the workspace's schedule.
- `not_screened_reason` (string): Why their screening could not run, when `screening` is `not_screened`; `null` otherwise.
- `last_screened_at` (string): When they were last screened; `null` when never.
- `last_verdict` (enum): The verdict of their open case (the most serious when several are open), else of their latest decided case, else of their newest checked document: `trusted`, `review` or `high_risk`; `null` when nothing of theirs is checked yet.
- `last_verdict_case` (object): The case `last_verdict` is from, with its `id` and `reference`; `null` when it is from a document or there is none.
- `latest_outcome` (enum): The outcome of their most recently decided case; `null` when none is decided.
- `first_seen_at` (string): When they first appear in the workspace.

**A person**

```json
{
  "id": "per_2Nc6Qs8",
  "object": "person",
  "mode": "live",
  "name": "Marta Kowalczyk",
  "email": "marta.kowalczyk@mailbox.example",
  "phone": "+353874120937",
  "birth_date": "1988-03-14",
  "country": "IE",
  "reference": "CUST-55120",
  "identity": "passed",
  "screening": "clear",
  "case_ids": ["case_7Kq2Xw9"],
  "created_at": "2026-11-24T09:12:40Z",
  "kind": "individual",
  "status": "active",
  "external_ids": { "crm:contact": "51234" },
  "aliases": { "references": [], "emails": ["marta.k@mailbox.example"], "phones": [] },
  "given_name": "Marta",
  "family_name": "Kowalczyk",
  "locale": "en",
  "occupation": "Logistics planner",
  "marital_status": "married",
  "risk_level": "low",
  "metadata": { "segment": "retail" },
  "legal_hold": false,
  "unproven": false,
  "source": "api",
  "merged_into": null,
  "updated_at": "2026-11-25T14:20:09Z",
  "last_activity_at": "2026-11-26T08:03:11Z",
  "counts": { "cases": 1, "open_cases": 1, "documents": 2 },
  "document_ids": ["doc_5Wm2Hk7", "doc_8Qa3Lc6"],
  "monitored": false,
  "not_screened_reason": null,
  "last_screened_at": null,
  "last_verdict": "trusted",
  "last_verdict_case": null,
  "latest_outcome": null,
  "first_seen_at": "2026-11-24T09:12:40Z"
}
```

## Add a person

Add an end customer to People, or find them when they are already there: by your reference first, then an id in another system, the email, then the phone.

`POST /v1/people`. Who may: Owner, Admin and Analyst; Developer in test mode. CLI: `kontiga people create [--name <name>] [--email <email>] [--phone <+number>] [--reference <ref>] [--external-ids '{"crm:contact":"51234"}'] [--country <IE|SE|...>] [--given-name <text>] [--family-name <text>] [--birth-date <yyyy-mm-dd>] [--kind <individual|company>] [--locale <locale>] [--risk-level <unset|low|medium|high>] [--metadata '{"key":"value"}'] [--on-match <return|update|error>]`. MCP tool: `create_person`.

**Parameters**
- `name` (string): Their name, as they write it. A name never finds anyone: two people with one name are two people. At most 255 characters.
- `email` (email): Their email address. Compared without case.
- `country` (pipe, default ""): The country they live in, as a two-letter ISO 3166 code such as `IE` or `SE`. Any other value answers `400 invalid_input`.
- `reference` (string, default ""): Your own reference for them, compared exactly. The same reference is always the same person. At most 255 characters.
- `phone` (string): Their phone number, with `+` and the country code, or without when the workspace has a default phone country. Kept in international form. At most 32 characters.
- `external_ids` (record): Their ids in your other systems, by namespace: `{"crm:contact": "51234"}`. An id finds the person in its own namespace only.
- `given_name` (string): Their given name. At most 255 characters.
- `family_name` (string): Their family name. At most 255 characters.
- `birth_date` (string): Their date of birth, `yyyy-mm-dd`, as given: a day in the past, from 1900-01-01 on.
- `kind` (enum): `individual`, or `company` for a business taking part in a case.
- `locale` (enum): The language their messages are written in. One of `en`, `ar`, `de`, `es`, `fr`, `hi`, `ja`, `pt`, `ru`, `sv`, `zhs`, `zht`.
- `risk_level` (enum): The risk level your team keeps for them. One of `unset`, `low`, `medium`, `high`.
- `metadata` (record): Up to 50 of your own keys (lower-case letters, digits and `_`), each with text of up to 500 characters.
- `on_match` (enum, default "return"): What happens when someone is found: `return` answers them as they are; `update` applies the body to them (an email or phone that differs becomes their newest, the old one kept as an alias; a reference only when they have none); `error` answers `409 person_exists` with their id.

**Returns** person: The person, added, or the one already in People (matched true).

API:

```bash
curl -X POST https://api.kontiga.com/v1/people \
  -H "Authorization: Bearer $KONTIGA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Declan Hartigan",
    "email": "declan.hartigan@mailbox.example",
    "country": "IE",
    "reference": "CUST-55187"
  }'
```

CLI:

```bash
kontiga people create \
  --name 'Declan Hartigan' \
  --email declan.hartigan@mailbox.example \
  --country IE \
  --reference CUST-55187
```

MCP tool `create_person`:

```json
{
  "name": "create_person",
  "arguments": {
    "name": "Declan Hartigan",
    "email": "declan.hartigan@mailbox.example",
    "country": "IE",
    "reference": "CUST-55187"
  }
}
```

TypeScript:

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

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.people.create({
  name: "Declan Hartigan",
  email: "declan.hartigan@mailbox.example",
  country: "IE",
  reference: "CUST-55187",
});
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.people.create(
    name="Declan Hartigan",
    email="declan.hartigan@mailbox.example",
    country="IE",
    reference="CUST-55187",
)
```

Go:

```go
client := kontiga.NewClient() // reads KONTIGA_API_KEY
result, err := client.People.Create(ctx, &kontiga.PeopleCreateParams{
	Name:      "Declan Hartigan",
	Email:     "declan.hartigan@mailbox.example",
	Country:   "IE",
	Reference: "CUST-55187",
})
if err != nil {
	return err
}
```

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.people().create(PeopleCreateParams.builder()
    .name("Declan Hartigan")
    .email("declan.hartigan@mailbox.example")
    .country("IE")
    .reference("CUST-55187")
    .build());
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.People.CreateAsync(new PeopleCreateOptions
{
    Name = "Declan Hartigan",
    Email = "declan.hartigan@mailbox.example",
    Country = "IE",
    Reference = "CUST-55187",
});
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // reads KONTIGA_API_KEY
$result = $kontiga->people->create([
    'name' => 'Declan Hartigan',
    'email' => 'declan.hartigan@mailbox.example',
    'country' => 'IE',
    'reference' => 'CUST-55187',
]);
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.people.create(
  name: "Declan Hartigan",
  email: "declan.hartigan@mailbox.example",
  country: "IE",
  reference: "CUST-55187"
)
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .people()
    .create(kontiga::people::CreateParams {
        name: "Declan Hartigan".into(),
        email: "declan.hartigan@mailbox.example".into(),
        country: "IE".into(),
        reference: "CUST-55187".into(),
        ..Default::default()
    })
    .await?;
```

Response, 201 Created:

```json
{
  "id": "per_6Jt9Bw3",
  "object": "person",
  "mode": "live",
  "name": "Declan Hartigan",
  "email": "declan.hartigan@mailbox.example",
  "phone": null,
  "birth_date": null,
  "country": "IE",
  "reference": "CUST-55187",
  "identity": "not_started",
  "screening": "never",
  "case_ids": [],
  "created_at": "2026-11-27T10:04:18Z",
  "kind": "individual",
  "status": "active",
  "external_ids": {},
  "aliases": { "references": [], "emails": [], "phones": [] },
  "given_name": null,
  "family_name": null,
  "locale": null,
  "occupation": null,
  "marital_status": null,
  "risk_level": "unset",
  "metadata": {},
  "legal_hold": false,
  "unproven": false,
  "source": "api",
  "merged_into": null,
  "updated_at": "2026-11-27T10:04:18Z",
  "last_activity_at": "2026-11-27T10:04:18Z",
  "matched": false,
  "matched_on": null
}
```

Give a name, at least one identifier, or both: a body with neither answers `400 invalid_input`. Adding finds before it makes. Your reference decides first, then an id in another system, then the email, then the phone; the email and the phone find someone only when nothing else tells them apart (a different reference, say). A name, a date of birth or anything else never does. When someone is found, the answer is `200 OK` with that person, `"matched": true` and `matched_on` (`reference`, `external_id`, `email` or `phone`: what found them), and nothing new is made; when no one is, `201 Created` with the new person, `"matched": false` and `matched_on` `null`. A value a person does not have is `null`, never an empty string. Two calls that add the same new person at the same moment make one. Run the same rule without writing anything with [Match a person](#match-a-person).

What adding someone can answer instead

| Status | Code | When |
| --- | --- | --- |
| 409 | `person_ambiguous` | Several people hold the email or the phone and nothing tells them apart. `details.matches` lists them (at most 50), each with `matched_on`; give the reference or name the person. |
| 409 | `person_exists` | `on_match` is `error` and the person is already in People. `details.person_id` names them. |
| 409 | `person_busy` | Another call is adding the same person at this moment. Try again after `Retry-After` (1 second). |
| 422 | `invalid_identifier` | A reference, external id, email or phone is not valid; `details.field` names it. A phone without `+` needs the workspace's default phone country. |
| 400 | `invalid_input` | Any other field; `issues` names it. A field given twice in one body is refused the same way, so the call never runs on a value another reader of the body would read differently. |

**Several people hold the email**

```json
{
  "error": {
    "code": "person_ambiguous",
    "message": "More than one person holds this email or phone and nothing tells them apart. Name the person by id, or give the reference.",
    "details": {
      "matches": [
        { "id": "per_2Nc6Qs8", "name": "Marta Kowalczyk", "reference": "CUST-55120", "matched_on": "email" },
        { "id": "per_9Ld4Tx6", "name": "Marta Kowalczyk", "reference": "CUST-60311", "matched_on": "email" }
      ]
    },
    "doc_url": "https://kontiga.com/docs/errors#person_ambiguous"
  }
}
```

## List people

Everyone in People, newest first, with their identity and screening state.

`GET /v1/people`. Who may: Owner, Admin, Analyst and Viewer; Developer in test mode. CLI: `kontiga people list [--limit <n>] [--cursor <cursor>]`. MCP tool: `list_people`.

**Parameters**
- `limit` (integer): How many to answer, 1 to 200, newest first. Each person comes as a search answers them: the person object with their counts, monitoring and last verdict.
- `cursor` (string): The answer's `next_cursor`, sent back, reads the next page. No search term travels here, since a name, an email or a reference never goes in a URL: search with [Search people](#search-people), the term in the body. At most 512 characters.

**Returns** list of people: The people, newest first, each as a search answers them: the person, with their counts of cases and documents, their monitoring and last verdict.

API:

```bash
curl -X GET "https://api.kontiga.com/v1/people?limit=50" \
  -H "Authorization: Bearer $KONTIGA_API_KEY"
```

CLI:

```bash
kontiga people list --limit 50
```

MCP tool `list_people`:

```json
{
  "name": "list_people",
  "arguments": {
    "limit": 50
  }
}
```

TypeScript:

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

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.people.list({
  limit: 50,
});
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.people.list(limit=50)
```

Go:

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

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.people().list(PeopleListParams.builder()
    .limit(50)
    .build());
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.People.ListAsync(new PeopleListOptions
{
    Limit = 50,
});
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // reads KONTIGA_API_KEY
$result = $kontiga->people->list([
    'limit' => 50,
]);
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.people.list(limit: 50)
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .people()
    .list(kontiga::people::ListParams {
        limit: 50,
        ..Default::default()
    })
    .await?;
```

Response, 200 OK:

```json
{
  "items": [
    {
      "id": "per_6Jt9Bw3",
      "object": "person",
      "name": "Declan Hartigan",
      "reference": "CUST-55187",
      "identity": "not_started",
      "screening": "never",
      "monitored": false,
      "not_screened_reason": null,
      "last_screened_at": null,
      "counts": { "cases": 0, "open_cases": 0, "documents": 0 },
      "last_verdict": null,
      "last_verdict_case": null,
      "latest_outcome": null,
      "last_activity_at": "2026-11-27T10:04:18Z",
      "first_seen_at": "2026-11-27T10:04:18Z"
    }
  ],
  "next_cursor": "eyJpZCI6InBlcl82SnQ5QnczIn0"
}
```

## Search people

Whatever your workspace calls them on screen, the API, CLI, MCP and webhooks say person and people. Find people by name, email, phone, reference or the id of one of their cases or documents, and filter by when they were added, identity, screening (pending, not screened, clear, possible match, confirmed match, never screened), monitoring, last verdict and open cases.

`POST /v1/people/search`. Who may: Owner, Admin, Analyst and Viewer; Developer in test mode. CLI: `kontiga people search [--q <text>] [--added-within-days <n>] [--identity <not_started|in_progress|passed|failed|needs_review,...>] [--screening <pending|not_screened|clear|possible_match|confirmed_match|never,...>] [--monitored <true|false>] [--verdict <trusted|review|high_risk|none,...>] [--open-case] [--sort <last_activity|created|name>] [--limit <n>] [--cursor <cursor>]`. MCP tool: `search_people`.

**Parameters**
- `q` (string): A name, email, phone number or reference, or the id of one of their cases or documents. At most 200 characters.
- `added_within_days` (integer): Only people added in the last this many days. At least 1, at most 365.
- `identity` (array of enum): Only people whose identity verification is in one of these states. One of `not_started`, `in_progress`, `passed`, `failed`, `needs_review`. At most 5 items.
- `screening` (array of enum): Only people whose screening is in one of these states. `never` finds people never screened; `not_screened` finds people whose screening could not run. One of `pending`, `not_screened`, `clear`, `possible_match`, `confirmed_match`, `never`. At most 6 items.
- `monitored` (boolean): `true` for people screened again on the workspace's schedule, `false` for the others.
- `verdict` (array of enum): Only people whose last verdict is one of these. The last verdict is their open case's (the most serious when several are open), else their latest decided case's. `none` finds people with nothing checked yet. One of `trusted`, `review`, `high_risk`, `none`. At most 4 items.
- `open_case` (boolean): `true` for people with a case that is not decided yet.
- `sort` (enum): The order of the answer: by last activity, by when they were added, or by name. One of `last_activity`, `created`, `name`.
- `limit` (integer): How many to answer, 1 to 200; 50 when you give none.
- `cursor` (string): The answer's `next_cursor`, sent back with the same search, reads the next page. `null` when there is no more. At most 512 characters.

**Returns** list of people: The people that match, each with their counts of cases and documents, their identity as their cases read it, their screening as their screening reads it (with monitoring and why one could not run), their last verdict (their open case's, else their latest decided case's) and when anything last happened.

API:

```bash
curl -X POST https://api.kontiga.com/v1/people/search \
  -H "Authorization: Bearer $KONTIGA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "q": "Kowalczyk",
    "screening": [
      "clear"
    ],
    "open_case": true,
    "sort": "last_activity"
  }'
```

CLI:

```bash
kontiga people search \
  --q Kowalczyk \
  --screening clear \
  --open-case \
  --sort last_activity
```

MCP tool `search_people`:

```json
{
  "name": "search_people",
  "arguments": {
    "q": "Kowalczyk",
    "screening": [
      "clear"
    ],
    "open_case": true,
    "sort": "last_activity"
  }
}
```

TypeScript:

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

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.people.search({
  q: "Kowalczyk",
  screening: ["clear"],
  open_case: true,
  sort: "last_activity",
});
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.people.search(
    q="Kowalczyk",
    screening=["clear"],
    open_case=True,
    sort="last_activity",
)
```

Go:

```go
client := kontiga.NewClient() // reads KONTIGA_API_KEY
result, err := client.People.Search(ctx, &kontiga.PeopleSearchParams{
	Q:         "Kowalczyk",
	Screening: []string{"clear"},
	OpenCase:  true,
	Sort:      "last_activity",
})
if err != nil {
	return err
}
```

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.people().search(PeopleSearchParams.builder()
    .q("Kowalczyk")
    .screening(List.of("clear"))
    .openCase(true)
    .sort("last_activity")
    .build());
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.People.SearchAsync(new PeopleSearchOptions
{
    Q = "Kowalczyk",
    Screening = new[] { "clear" },
    OpenCase = true,
    Sort = "last_activity",
});
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // reads KONTIGA_API_KEY
$result = $kontiga->people->search([
    'q' => 'Kowalczyk',
    'screening' => ['clear'],
    'open_case' => true,
    'sort' => 'last_activity',
]);
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.people.search(
  q: "Kowalczyk",
  screening: ["clear"],
  open_case: true,
  sort: "last_activity"
)
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .people()
    .search(kontiga::people::SearchParams {
        q: "Kowalczyk".into(),
        screening: vec!["clear".into()],
        open_case: true,
        sort: "last_activity".into(),
        ..Default::default()
    })
    .await?;
```

Response, 200 OK:

```json
{
  "items": [
    {
      "id": "per_2Nc6Qs8",
      "object": "person",
      "name": "Marta Kowalczyk",
      "reference": "CUST-55120",
      "identity": "passed",
      "screening": "clear",
      "monitored": true,
      "not_screened_reason": null,
      "last_screened_at": "2026-11-24T09:14:02Z",
      "counts": { "cases": 1, "open_cases": 1, "documents": 6 },
      "last_verdict": "review",
      "last_verdict_case": { "id": "case_7Kq2Xw9", "reference": "APP-20418" },
      "latest_outcome": null,
      "last_activity_at": "2026-11-26T08:03:11Z",
      "first_seen_at": "2026-11-24T09:12:40Z"
    }
  ],
  "next_cursor": null,
  "incomplete": false
}
```

With an identity, screening, monitoring or verdict filter, a page is filled from the rows after it until it is full; a page that has read its share of the registry comes back shorter, with a `next_cursor` to read on, and is never empty while rows remain. With `q`, each place a term is looked for (names, references, emails, phones, ids) gives at most its first 2,000 matches, and `incomplete` is `true` when one had more: add a word or a filter to narrow the search.

## Read a person

One person, with their details, identity and screening, the 20 cases they joined most recently, and their counts of cases, open cases and documents.

`GET /v1/people/{person_id}`. Who may: Owner, Admin, Analyst and Viewer; Developer in test mode. CLI: `kontiga people get <person_id>`. MCP tool: `get_person`.

**Parameters**
- `person_id` (id (per_), required): The person to read. In the path.

**Returns** person: The person as they stand.

API:

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

CLI:

```bash
kontiga people get per_2Nc6Qs8
```

MCP tool `get_person`:

```json
{
  "name": "get_person",
  "arguments": {
    "person_id": "per_2Nc6Qs8"
  }
}
```

TypeScript:

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

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

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.people.get("per_2Nc6Qs8")
```

Go:

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

Java:

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

.NET:

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

PHP:

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

Ruby:

```ruby
require "kontiga"

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

Rust:

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

Response, 200 OK:

```json
{
  "id": "per_2Nc6Qs8",
  "object": "person",
  "mode": "live",
  "name": "Marta Kowalczyk",
  "email": "marta.kowalczyk@mailbox.example",
  "phone": "+353874120937",
  "birth_date": "1988-03-14",
  "country": "IE",
  "reference": "CUST-55120",
  "identity": "passed",
  "screening": "clear",
  "case_ids": ["case_7Kq2Xw9"],
  "created_at": "2026-11-24T09:12:40Z",
  "kind": "individual",
  "status": "active",
  "external_ids": { "crm:contact": "51234" },
  "aliases": { "references": [], "emails": ["marta.k@mailbox.example"], "phones": [] },
  "given_name": "Marta",
  "family_name": "Kowalczyk",
  "locale": "en",
  "occupation": "Logistics planner",
  "marital_status": "married",
  "risk_level": "low",
  "metadata": { "segment": "retail" },
  "legal_hold": false,
  "unproven": false,
  "source": "api",
  "merged_into": null,
  "updated_at": "2026-11-25T14:20:09Z",
  "last_activity_at": "2026-11-26T08:03:11Z",
  "counts": { "cases": 1, "open_cases": 1, "documents": 2 },
  "document_ids": ["doc_5Wm2Hk7", "doc_8Qa3Lc6"],
  "monitored": false,
  "not_screened_reason": null,
  "last_screened_at": null,
  "last_verdict": "trusted",
  "last_verdict_case": null,
  "latest_outcome": null,
  "first_seen_at": "2026-11-24T09:12:40Z"
}
```

## Read a person's profile

Whatever your workspace calls them on screen, the API, CLI, MCP and webhooks say person and people. What is known and proven about one person: the person, with their verified facts and the proof of each, their checks and documents with how long each can be reused, who set their risk level, and their newest 20 notes. A restricted key reads checks and documents with documents:read, and cases with cases:read.

`GET /v1/people/{person_id}?expand=facts,checks,documents,notes`. Who may: Owner, Admin, Analyst and Viewer; Developer in test mode. CLI: `kontiga people profile <person_id>`. MCP tool: `get_person_profile`.

**Parameters**
- `person_id` (id (per_), required): The person whose profile to read. In the path.

**Returns** person: The person, with their facts, checks, documents with their reuse and notes beside their fields, as they stand today.

API:

```bash
curl -X GET "https://api.kontiga.com/v1/people/per_2Nc6Qs8?expand=facts,checks,documents,notes" \
  -H "Authorization: Bearer $KONTIGA_API_KEY"
```

CLI:

```bash
kontiga people profile per_2Nc6Qs8
```

MCP tool `get_person_profile`:

```json
{
  "name": "get_person_profile",
  "arguments": {
    "person_id": "per_2Nc6Qs8"
  }
}
```

TypeScript:

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

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.people.profile("per_2Nc6Qs8");
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.people.profile("per_2Nc6Qs8")
```

Go:

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

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.people().profile("per_2Nc6Qs8");
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.People.ProfileAsync("per_2Nc6Qs8");
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // reads KONTIGA_API_KEY
$result = $kontiga->people->profile('per_2Nc6Qs8');
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.people.profile("per_2Nc6Qs8")
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .people()
    .profile("per_2Nc6Qs8".into())
    .await?;
```

Response, 200 OK:

```json
{
  "id": "per_2Nc6Qs8",
  "object": "person",
  "mode": "live",
  "name": "Marta Kowalczyk",
  "email": "marta.kowalczyk@mailbox.example",
  "phone": "+353874120937",
  "birth_date": "1988-03-14",
  "country": "IE",
  "reference": "CUST-55120",
  "identity": "passed",
  "screening": "clear",
  "case_ids": [
    "case_7Kq2Xw9"
  ],
  "created_at": "2026-11-24T09:12:40Z",
  "kind": "individual",
  "status": "active",
  "external_ids": {
    "crm:contact": "51234"
  },
  "aliases": {
    "references": [],
    "emails": [
      "marta.k@mailbox.example"
    ],
    "phones": []
  },
  "given_name": "Marta",
  "family_name": "Kowalczyk",
  "locale": "en",
  "occupation": "Logistics planner",
  "marital_status": "married",
  "risk_level": "low",
  "metadata": {
    "segment": "retail"
  },
  "legal_hold": false,
  "unproven": false,
  "source": "api",
  "merged_into": null,
  "updated_at": "2026-11-25T14:20:09Z",
  "last_activity_at": "2026-11-26T08:03:11Z",
  "counts": {
    "cases": 1,
    "open_cases": 1,
    "documents": 2
  },
  "document_ids": [
    "doc_5Wm2Hk7",
    "doc_8Qa3Lc6"
  ],
  "monitored": false,
  "not_screened_reason": null,
  "last_screened_at": null,
  "last_verdict": "trusted",
  "last_verdict_case": null,
  "latest_outcome": null,
  "first_seen_at": "2026-11-24T09:12:40Z",
  "given": {
    "occupation": "Logistics planner",
    "marital_status": "married",
    "source": "Application form",
    "at": "2026-11-24T09:12:40Z"
  },
  "risk_level_set_by": "Ines Moreau",
  "risk_level_set_at": "2026-11-25T14:20:09Z",
  "facts": [
    {
      "id": "fct_4Lb8Ys1",
      "name": "employer_name",
      "label": "Employer",
      "value": "Dunmore Freight Ltd",
      "class": "situation",
      "state": "current",
      "source": "document",
      "document_id": "doc_5Wm2Hk7",
      "document_title": "Payslip, October 2026",
      "field": "employer_name",
      "page": 1,
      "document_date": "2026-10-31",
      "proved_at": "2026-11-24T09:31:55Z",
      "superseded_by": null,
      "revoked": null,
      "given": "Dunmore Freight",
      "differs_from_given": false,
      "validity": {
        "rule": "from_document_date",
        "rule_text": "3 months from its date",
        "reusable": true,
        "valid_until": "2027-01-31",
        "reason": null,
        "ended_on": null
      }
    }
  ],
  "checks": [
    {
      "id": "idv_3Qx7Ma2",
      "kind": "identity_verification",
      "status": "passed",
      "completed_at": "2026-11-24T09:26:41Z",
      "detail": "Passport read, chip verified, selfie matches.",
      "case_id": "case_7Kq2Xw9",
      "case_reference": "APP-20418",
      "document_id": null,
      "validity": {
        "rule": "until_expiry",
        "rule_text": "Until 30 days before it expires, and at most 12 months from completion",
        "reusable": true,
        "valid_until": "2027-11-24",
        "reason": null,
        "ended_on": null
      }
    }
  ],
  "documents": [
    {
      "document_id": "doc_5Wm2Hk7",
      "document_date": "2026-10-31",
      "expires_on": null,
      "validity": {
        "rule": "from_document_date",
        "rule_text": "3 months from its date",
        "reusable": true,
        "valid_until": "2027-01-31",
        "reason": null,
        "ended_on": null
      }
    }
  ],
  "notes": [
    {
      "id": "nte_8Dk2Pf6",
      "text": "Called the employer on 25 Nov: start date and salary confirmed.",
      "by": "Ines Moreau",
      "at": "2026-11-25T14:22:30Z"
    }
  ],
  "notes_next_cursor": null
}
```

`expand` adds keys to the person object and never answers another object: `facts`, `checks`, `documents` and `notes` (the newest 20, with `notes_next_cursor` to read the rest at [List a person's notes](#list-a-persons-notes)), and `cases` (their cases, newest first, at most 200), `links` (their identity links, at most 50; all of them at [List a person's identity links](#list-a-persons-identity-links)) and `duplicates` (their open duplicate suggestions, at most 50). With any of them the person also says who set the risk level and the given details, and when (`risk_level_set_by`, `risk_level_set_at`, `given`). Any other word answers `400 invalid_input` at `expand`. A restricted key reads each part with its own scope: `checks` and `documents` need `documents:read`, `cases` needs `cases:read`, and the others `people:read`; a part the key's scopes do not reach answers `403 key_scope_denied` at `expand`, and nothing is read.

## Read a person's timeline

Whatever your workspace calls them on screen, the API, CLI, MCP and webhooks say person and people. Everything that happened to one person, newest first: cases opened and decided, documents received, facts verified and revoked, notes, risk level changes.

`GET /v1/people/{person_id}/timeline`. Who may: Owner, Admin, Analyst and Viewer; Developer in test mode. CLI: `kontiga people timeline <person_id> [--limit <n>] [--cursor <cursor>]`. MCP tool: `get_person_timeline`.

**Parameters**
- `person_id` (id (per_), required): The person whose timeline to read. In the path.
- `limit` (integer): How many entries to answer, 1 to 200, newest first.
- `cursor` (string): The answer's `next_cursor`, sent back, reads the older entries. A `merged` or `unmerged` entry names its `merge_id`, to [undo the merge](#undo-a-merge). At most 1,024 characters.

**Returns** list of timeline entries: The person's timeline, newest first, each entry with who did it.

API:

```bash
curl -X GET "https://api.kontiga.com/v1/people/per_2Nc6Qs8/timeline?limit=50" \
  -H "Authorization: Bearer $KONTIGA_API_KEY"
```

CLI:

```bash
kontiga people timeline per_2Nc6Qs8 --limit 50
```

MCP tool `get_person_timeline`:

```json
{
  "name": "get_person_timeline",
  "arguments": {
    "person_id": "per_2Nc6Qs8",
    "limit": 50
  }
}
```

TypeScript:

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

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.people.timeline("per_2Nc6Qs8", {
  limit: 50,
});
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.people.timeline("per_2Nc6Qs8", limit=50)
```

Go:

```go
client := kontiga.NewClient() // reads KONTIGA_API_KEY
result, err := client.People.Timeline(ctx, "per_2Nc6Qs8", &kontiga.PeopleTimelineParams{
	Limit: 50,
})
if err != nil {
	return err
}
```

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.people().timeline("per_2Nc6Qs8", PeopleTimelineParams.builder()
    .limit(50)
    .build());
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.People.TimelineAsync("per_2Nc6Qs8", new PeopleTimelineOptions
{
    Limit = 50,
});
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // reads KONTIGA_API_KEY
$result = $kontiga->people->timeline('per_2Nc6Qs8', [
    'limit' => 50,
]);
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.people.timeline("per_2Nc6Qs8", limit: 50)
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .people()
    .timeline("per_2Nc6Qs8".into(), kontiga::people::TimelineParams {
        limit: 50,
        ..Default::default()
    })
    .await?;
```

Response, 200 OK:

```json
{
  "items": [
    {
      "id": "tle_9Hs3Kw4",
      "at": "2026-11-25T14:22:30Z",
      "type": "note_added",
      "summary": "Note added",
      "actor": "Ines Moreau",
      "case_id": null,
      "document_id": null,
      "note": "Called the employer on 25 Nov: start date and salary confirmed."
    },
    {
      "id": "tle_2Vb6Rt8",
      "at": "2026-11-24T09:31:55Z",
      "type": "fact_verified",
      "summary": "Payslip, October 2026 received through the portal, checked: Review. Employer and net pay verified.",
      "actor": "Marta Kowalczyk",
      "case_id": "case_7Kq2Xw9",
      "document_id": "doc_5Wm2Hk7"
    },
    {
      "id": "tle_7Nc1Qe5",
      "at": "2026-11-24T09:12:52Z",
      "type": "request.sent",
      "summary": "Checklist \"Mortgage application\" sent to Marta Kowalczyk",
      "actor": "Kontiga",
      "case_id": "case_7Kq2Xw9",
      "document_id": null
    }
  ],
  "next_cursor": null
}
```

## Update a person

Whatever your workspace calls them on screen, the API, CLI, MCP and webhooks say person and people. Correct a person's details as given (name, given and family name, date of birth, country, language, kind, your metadata) and their identifiers (reference, ids in other systems, email, phone); set the risk level your team keeps (unset, low, medium or high), their occupation and marital status, and a legal hold. A new identifier becomes their newest and the old one is kept as an alias; null takes one off show and keeps it as an alias. Metadata is merged key by key: a key you give is set, a key given null is removed, the others are kept, and metadata null clears them all. None is ever set on its own; each change is on the timeline with who made it. Only owners and admins set or lift a legal hold.

`PATCH /v1/people/{person_id}`. Who may: Owner, Admin and Analyst; Developer in test mode. CLI: `kontiga people update <person_id> [--name <text>] [--given-name <text>] [--family-name <text>] [--email <address>] [--phone <+number>] [--reference <text>] [--external-ids '{"crm:contact":"51234"}'] [--country <IE|SE|...>] [--birth-date <yyyy-mm-dd>] [--kind <individual|company>] [--locale <locale>] [--metadata '{"key":"value"}'] [--risk-level <unset|low|medium|high>] [--occupation <text>] [--marital-status <single|married|registered_partnership|divorced|widowed|separated>] [--legal-hold <true|false>]`. MCP tool: `update_person`.

**Parameters**
- `person_id` (id (per_), required): The person to change. In the path.
- `name` (string): Their name, as they write it; `null` clears it. At most 255 characters. `null` clears it.
- `given_name` (string): The given name. At most 255 characters. `null` clears it.
- `family_name` (string): The family name. At most 255 characters. `null` clears it.
- `email` (email): A new email. It becomes their newest and the old one is kept as an alias. `null` takes it off: it is kept as an alias, so it still finds them. `null` clears it.
- `phone` (string): A new phone number, kept in international form; the old one is kept as an alias. `null` takes it off the same way. At most 32 characters. `null` clears it.
- `reference` (string): Your own reference for them. A reference belongs to one person only. `null` takes it off the same way. At most 255 characters. `null` clears it.
- `external_ids` (record): Ids in your other systems, by namespace. A person holds ids in at most 20 namespaces.
- `country` (pipe): The country they live in, a two-letter ISO 3166 code such as `IE`; `null` clears it. `null` clears it.
- `birth_date` (string): Their date of birth, `yyyy-mm-dd`, a day in the past from 1900-01-01 on; `null` clears it. A date that is no day of the calendar is refused as such. `null` clears it.
- `kind` (enum): The kind. One of `individual`, `company`.
- `locale` (enum): The locale. One of `en`, `ar`, `de`, `es`, `fr`, `hi`, `ja`, `pt`, `ru`, `sv`, `zhs`, `zht`. `null` clears it.
- `metadata` (record): Merged key by key: a key you give is set, a key given `null` is removed, and the others stay. `metadata: null` clears every key. At most 50 keys after the merge. `null` clears it.
- `risk_level` (enum): The risk level your team keeps for them. Kontiga never sets it. One of `unset`, `low`, `medium`, `high`.
- `occupation` (string): Their job, as they gave it. At most 120 characters. `null` clears it.
- `marital_status` (enum): Their marital status, as they gave it. One of `single`, `married`, `registered_partnership`, `divorced`, `widowed`, `separated`. `null` clears it.
- `legal_hold` (boolean): `true` keeps the person and everything attached to them from deletion and from the retention clock until it is lifted with `false`. Owners and admins only, in the console or with their member token; a key or anyone else gets `403 forbidden` and nothing changes. While a person is held none of their identifiers is removed, so they keep at most 20 old values of each kind: a new email, phone or reference past that answers `403 forbidden` until the hold is lifted.

**Returns** person: The person with the change.

API:

```bash
curl -X PATCH https://api.kontiga.com/v1/people/per_2Nc6Qs8 \
  -H "Authorization: Bearer $KONTIGA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "risk_level": "low",
    "occupation": "Logistics planner"
  }'
```

CLI:

```bash
kontiga people update per_2Nc6Qs8 \
  --risk-level low \
  --occupation 'Logistics planner'
```

MCP tool `update_person`:

```json
{
  "name": "update_person",
  "arguments": {
    "person_id": "per_2Nc6Qs8",
    "risk_level": "low",
    "occupation": "Logistics planner"
  }
}
```

TypeScript:

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

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.people.update("per_2Nc6Qs8", {
  risk_level: "low",
  occupation: "Logistics planner",
});
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.people.update(
    "per_2Nc6Qs8",
    risk_level="low",
    occupation="Logistics planner",
)
```

Go:

```go
client := kontiga.NewClient() // reads KONTIGA_API_KEY
result, err := client.People.Update(ctx, "per_2Nc6Qs8", &kontiga.PeopleUpdateParams{
	RiskLevel:  "low",
	Occupation: "Logistics planner",
})
if err != nil {
	return err
}
```

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.people().update("per_2Nc6Qs8", PeopleUpdateParams.builder()
    .riskLevel("low")
    .occupation("Logistics planner")
    .build());
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.People.UpdateAsync("per_2Nc6Qs8", new PeopleUpdateOptions
{
    RiskLevel = "low",
    Occupation = "Logistics planner",
});
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // reads KONTIGA_API_KEY
$result = $kontiga->people->update('per_2Nc6Qs8', [
    'risk_level' => 'low',
    'occupation' => 'Logistics planner',
]);
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.people.update(
  "per_2Nc6Qs8",
  risk_level: "low",
  occupation: "Logistics planner"
)
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .people()
    .update("per_2Nc6Qs8".into(), kontiga::people::UpdateParams {
        risk_level: "low".into(),
        occupation: "Logistics planner".into(),
        ..Default::default()
    })
    .await?;
```

Response, 200 OK:

```json
{
  "id": "per_2Nc6Qs8",
  "object": "person",
  "mode": "live",
  "name": "Marta Kowalczyk",
  "email": "marta.kowalczyk@mailbox.example",
  "phone": "+353874120937",
  "birth_date": "1988-03-14",
  "country": "IE",
  "reference": "CUST-55120",
  "identity": "passed",
  "screening": "clear",
  "case_ids": [
    "case_7Kq2Xw9"
  ],
  "created_at": "2026-11-24T09:12:40Z",
  "kind": "individual",
  "status": "active",
  "external_ids": {
    "crm:contact": "51234"
  },
  "aliases": {
    "references": [],
    "emails": [
      "marta.k@mailbox.example"
    ],
    "phones": []
  },
  "given_name": "Marta",
  "family_name": "Kowalczyk",
  "locale": "en",
  "occupation": "Logistics planner",
  "marital_status": "married",
  "risk_level": "low",
  "metadata": {
    "segment": "retail"
  },
  "legal_hold": false,
  "unproven": false,
  "source": "api",
  "merged_into": null,
  "updated_at": "2026-11-27T11:02:45Z",
  "last_activity_at": "2026-11-26T08:03:11Z",
  "counts": {
    "cases": 1,
    "open_cases": 1,
    "documents": 2
  },
  "document_ids": [
    "doc_5Wm2Hk7",
    "doc_8Qa3Lc6"
  ],
  "monitored": false,
  "not_screened_reason": null,
  "last_screened_at": null,
  "last_verdict": "trusted",
  "last_verdict_case": null,
  "latest_outcome": null,
  "first_seen_at": "2026-11-24T09:12:40Z"
}
```

The answer is the person object with the change, as [Read a person](#read-a-person) answers it. The same call changes their details as given (`name`, `given_name`, `family_name`, `birth_date`, `country`, `locale`, `kind`, `metadata`) and their identifiers (`reference`, `external_ids`, `email`, `phone`). A new identifier becomes their newest and the old one stays as an alias, so earlier links still find them. A change that would make them the same as someone else answers `409 person_conflict` naming that person in `details.conflicting_person`, and changes nothing: merge the two instead. A body that changes nothing answers `400 invalid_input` at `body`. One call is one entry on their timeline naming every field it changed, with who made it (a risk level or a legal hold has an entry of its own), and fires `person.updated` with the fields that changed.

## Add a note to a person

Whatever your workspace calls them on screen, the API, CLI, MCP and webhooks say person and people. Write a note on a person's profile for your team. The person never sees it.

`POST /v1/people/{person_id}/notes`. Who may: Owner, Admin and Analyst; Developer in test mode. CLI: `kontiga people note <person_id> --text <text>`. MCP tool: `add_person_note`.

**Parameters**
- `person_id` (id (per_), required): The person the note is about. In the path.
- `text` (string, required): The note, for your team only. At most 2,000 characters.

**Returns** note: The note, with who wrote it and when.

API:

```bash
curl -X POST https://api.kontiga.com/v1/people/per_2Nc6Qs8/notes \
  -H "Authorization: Bearer $KONTIGA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "text": "Called the employer on 25 Nov: start date and salary confirmed."
  }'
```

CLI:

```bash
kontiga people note per_2Nc6Qs8 \
  --text 'Called the employer on 25 Nov: start date and salary confirmed.'
```

MCP tool `add_person_note`:

```json
{
  "name": "add_person_note",
  "arguments": {
    "person_id": "per_2Nc6Qs8",
    "text": "Called the employer on 25 Nov: start date and salary confirmed."
  }
}
```

TypeScript:

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

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.people.addNote("per_2Nc6Qs8", {
  text: "Called the employer on 25 Nov: start date and salary confirmed.",
});
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.people.add_note("per_2Nc6Qs8", text="Called the employer on 25 Nov: start date and salary confirmed.")
```

Go:

```go
client := kontiga.NewClient() // reads KONTIGA_API_KEY
result, err := client.People.AddNote(ctx, "per_2Nc6Qs8", &kontiga.PeopleAddNoteParams{
	Text: "Called the employer on 25 Nov: start date and salary confirmed.",
})
if err != nil {
	return err
}
```

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.people().addNote("per_2Nc6Qs8", PeopleAddNoteParams.builder()
    .text("Called the employer on 25 Nov: start date and salary confirmed.")
    .build());
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.People.AddNoteAsync("per_2Nc6Qs8", new PeopleAddNoteOptions
{
    Text = "Called the employer on 25 Nov: start date and salary confirmed.",
});
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // reads KONTIGA_API_KEY
$result = $kontiga->people->addNote('per_2Nc6Qs8', [
    'text' => 'Called the employer on 25 Nov: start date and salary confirmed.',
]);
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.people.add_note("per_2Nc6Qs8", text: "Called the employer on 25 Nov: start date and salary confirmed.")
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .people()
    .add_note("per_2Nc6Qs8".into(), kontiga::people::AddNoteParams {
        text: "Called the employer on 25 Nov: start date and salary confirmed.".into(),
        ..Default::default()
    })
    .await?;
```

Response, 201 Created:

```json
{
  "id": "nte_8Dk2Pf6",
  "object": "note",
  "text": "Called the employer on 25 Nov: start date and salary confirmed.",
  "by": "Ines Moreau",
  "at": "2026-11-25T14:22:30Z"
}
```

## List a person's notes

Whatever your workspace calls them on screen, the API, CLI, MCP and webhooks say person and people. The notes your team wrote on one person, newest first, each with who wrote it and when.

`GET /v1/people/{person_id}/notes`. Who may: Owner, Admin, Analyst and Viewer; Developer in test mode. CLI: `kontiga people notes <person_id> [--limit <n>] [--cursor <cursor>]`. MCP tool: `list_person_notes`.

**Parameters**
- `person_id` (id (per_), required): The person whose notes to read. In the path.
- `limit` (integer): How many notes to answer, 1 to 200, newest first.
- `cursor` (string): The answer's `next_cursor`, sent back, reads the older notes; a profile's `notes_next_cursor` reads the notes after its newest 20. At most 1,024 characters.

**Returns** list of notes: The person's notes, newest first, each with who wrote it.

API:

```bash
curl -X GET "https://api.kontiga.com/v1/people/per_2Nc6Qs8/notes?limit=50" \
  -H "Authorization: Bearer $KONTIGA_API_KEY"
```

CLI:

```bash
kontiga people notes per_2Nc6Qs8 --limit 50
```

MCP tool `list_person_notes`:

```json
{
  "name": "list_person_notes",
  "arguments": {
    "person_id": "per_2Nc6Qs8",
    "limit": 50
  }
}
```

TypeScript:

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

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.people.notes("per_2Nc6Qs8", {
  limit: 50,
});
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.people.notes("per_2Nc6Qs8", limit=50)
```

Go:

```go
client := kontiga.NewClient() // reads KONTIGA_API_KEY
result, err := client.People.Notes(ctx, "per_2Nc6Qs8", &kontiga.PeopleNotesParams{
	Limit: 50,
})
if err != nil {
	return err
}
```

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.people().notes("per_2Nc6Qs8", PeopleNotesParams.builder()
    .limit(50)
    .build());
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.People.NotesAsync("per_2Nc6Qs8", new PeopleNotesOptions
{
    Limit = 50,
});
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // reads KONTIGA_API_KEY
$result = $kontiga->people->notes('per_2Nc6Qs8', [
    'limit' => 50,
]);
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.people.notes("per_2Nc6Qs8", limit: 50)
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .people()
    .notes("per_2Nc6Qs8".into(), kontiga::people::NotesParams {
        limit: 50,
        ..Default::default()
    })
    .await?;
```

Response, 200 OK:

```json
{
  "items": [
    {
      "id": "nte_8Dk2Pf6",
      "object": "note",
      "text": "Called the employer on 25 Nov: start date and salary confirmed.",
      "by": "Ines Moreau",
      "at": "2026-11-25T14:22:30Z"
    }
  ],
  "next_cursor": null
}
```

## Revoke a fact

Whatever your workspace calls them on screen, the API, CLI, MCP and webhooks say person and people. Stop trusting one verified fact, with the reason. Its proof is no longer reused; an earlier fact of the same kind becomes current again when its proof is still good.

`POST /v1/people/{person_id}/facts/{fact_id}/revoke`. Who may: Owner, Admin and Analyst; Developer in test mode. CLI: `kontiga people revoke-fact <person_id> <fact_id> --reason <text>`. MCP tool: `revoke_person_fact`.

**Parameters**
- `person_id` (id (per_), required): The person the fact belongs to. In the path.
- `fact_id` (id (fct_), required): The fact to stop trusting, from their profile. In the path.
- `reason` (string, required): Why. It goes on the person's timeline with your name. At most 500 characters.

**Returns** person profile: The person's profile with the fact revoked.

API:

```bash
curl -X POST https://api.kontiga.com/v1/people/per_2Nc6Qs8/facts/fct_4Lb8Ys1/revoke \
  -H "Authorization: Bearer $KONTIGA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "reason": "The employer says her contract ended on 30 November."
  }'
```

CLI:

```bash
kontiga people revoke-fact per_2Nc6Qs8 fct_4Lb8Ys1 \
  --reason 'The employer says her contract ended on 30 November.'
```

MCP tool `revoke_person_fact`:

```json
{
  "name": "revoke_person_fact",
  "arguments": {
    "person_id": "per_2Nc6Qs8",
    "fact_id": "fct_4Lb8Ys1",
    "reason": "The employer says her contract ended on 30 November."
  }
}
```

TypeScript:

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

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.people.revokeFact("per_2Nc6Qs8", "fct_4Lb8Ys1", {
  reason: "The employer says her contract ended on 30 November.",
});
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.people.revoke_fact(
    "per_2Nc6Qs8",
    "fct_4Lb8Ys1",
    reason="The employer says her contract ended on 30 November.",
)
```

Go:

```go
client := kontiga.NewClient() // reads KONTIGA_API_KEY
result, err := client.People.RevokeFact(ctx, "per_2Nc6Qs8", "fct_4Lb8Ys1", &kontiga.PeopleRevokeFactParams{
	Reason: "The employer says her contract ended on 30 November.",
})
if err != nil {
	return err
}
```

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.people().revokeFact("per_2Nc6Qs8", "fct_4Lb8Ys1", PeopleRevokeFactParams.builder()
    .reason("The employer says her contract ended on 30 November.")
    .build());
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.People.RevokeFactAsync("per_2Nc6Qs8", "fct_4Lb8Ys1", new PeopleRevokeFactOptions
{
    Reason = "The employer says her contract ended on 30 November.",
});
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // reads KONTIGA_API_KEY
$result = $kontiga->people->revokeFact('per_2Nc6Qs8', 'fct_4Lb8Ys1', [
    'reason' => 'The employer says her contract ended on 30 November.',
]);
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.people.revoke_fact(
  "per_2Nc6Qs8",
  "fct_4Lb8Ys1",
  reason: "The employer says her contract ended on 30 November."
)
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .people()
    .revoke_fact("per_2Nc6Qs8".into(), "fct_4Lb8Ys1".into(), kontiga::people::RevokeFactParams {
        reason: "The employer says her contract ended on 30 November.".into(),
        ..Default::default()
    })
    .await?;
```

Response, 200 OK:

```json
{
  "object": "person_profile",
  "person_id": "per_2Nc6Qs8",
  "facts": [
    {
      "id": "fct_4Lb8Ys1",
      "name": "employer_name",
      "label": "Employer",
      "value": "Dunmore Freight Ltd",
      "state": "revoked",
      "document_id": "doc_5Wm2Hk7",
      "revoked": {
        "reason": "The employer says her contract ended on 30 November.",
        "by": "Ines Moreau",
        "at": "2026-11-27T10:15:02Z"
      },
      "validity": {
        "rule": "from_document_date",
        "rule_text": "3 months from its date",
        "reusable": false,
        "valid_until": null,
        "reason": "revoked",
        "ended_on": "2026-11-27"
      }
    }
  ]
}
```

## Import people from a file

Whatever your workspace calls them on screen, the API, CLI, MCP and webhooks say person and people. Add people from a CSV file in one call: Kontiga's own columns (name, email, phone, birth_date, country, reference) or a screening export's person file (customer_reference, full_name, nationality, passport_number, id_card_number, residency_country, birth_country, birth_date), the kind decided by the header. A row is matched like any new person: by its reference, or without one by its email or phone, and attached unchanged to the person it finds; a new person is added only when nobody matches. Each can be screened at once and monitored (screening is charged, so a restricted key needs screenings:write for it, and a key with a daily spend cap cannot). The answer is always the import of people (pim_), with the same counts, rows and row report as an import made with a preview: a dry run answers it previewed (commit it within the hour, or leave it: it is cancelled after an hour and never holds other imports up), a file of up to 100 rows is imported in the call and answered completed, a larger one, up to 5,000 rows, is imported in the background (202): read it until completed. A file that is not of people is refused, naming the column it lacks.

`POST /v1/people/import`. Who may: Owner, Admin and Analyst; Developer in test mode. CLI: `kontiga people import --file <people.csv> [--screen] [--monitor] [--dry-run]`. MCP tool: `import_people`.

**Parameters**
- `csv` (string, required): The file's text, up to 2 MB and 5,000 rows. The header decides its kind: Kontiga's columns (`name`, `email`, `phone`, `birth_date`, `country`, `reference`) or a screening export's person file (`customer_reference`, `full_name`, `nationality`, and the rest). A row whose reference, or without one its email or phone, finds someone already in People is attached to them as they are (`unchanged`); every other row with a name adds a person (`create`). The answer is always the import of people (`pim_`), as the imports below answer it: up to 100 rows it is imported in the call and answered `completed`; a larger file is imported in the background and answered `202`, `committing`: read it until completed. A file that is not of people is refused `400`, naming the column it lacks.
- `screen` (boolean): Screen each person once they are added or attached. Each screening is charged, so a restricted key needs `screenings:write` and a key with a daily spend cap cannot (`403` `key_scope_denied` on `screen`).
- `monitor` (boolean): Keep each person monitored, screened again on the workspace's schedule.
- `dry_run` (boolean): Answer the import `previewed`: what each row would do, without adding anyone. A dry run keeps nothing: its id is not stored, it has no row report, and it never counts toward the workspace's imports. Call again without `dry_run` to apply the file.

**Returns** person import: The import of people (pim_) in mode attach: previewed for a dry run, completed for up to 100 rows, committing in the background (202) for more. Each row: create (added), unchanged (attached to someone already in People) or invalid with the reason.

API:

```bash
curl -X POST https://api.kontiga.com/v1/people/import \
  -H "Authorization: Bearer $KONTIGA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "csv": "name,email,phone,birth_date,country,reference\nSaoirse Brennan,saoirse.brennan@mailbox.example,,1991-02-19,IE,CUST-55201\nMarta Kowalczyk,marta.kowalczyk@mailbox.example,,1988-03-14,IE,CUST-55120\n,r.quinn@mailbox.example,,1979-06-02,IE,CUST-55203",
    "screen": true,
    "monitor": true
  }'
```

CLI:

```bash
kontiga people import --screen --monitor
```

MCP tool `import_people`:

```json
{
  "name": "import_people",
  "arguments": {
    "csv": "name,email,phone,birth_date,country,reference\nSaoirse Brennan,saoirse.brennan@mailbox.example,,1991-02-19,IE,CUST-55201\nMarta Kowalczyk,marta.kowalczyk@mailbox.example,,1988-03-14,IE,CUST-55120\n,r.quinn@mailbox.example,,1979-06-02,IE,CUST-55203",
    "screen": true,
    "monitor": true
  }
}
```

TypeScript:

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

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.people.import({
  screen: true,
  monitor: true,
});
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.people.import_(screen=True, monitor=True)
```

Go:

```go
client := kontiga.NewClient() // reads KONTIGA_API_KEY
result, err := client.People.Import(ctx, &kontiga.PeopleImportParams{
	Screen:  true,
	Monitor: true,
})
if err != nil {
	return err
}
```

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.people().import_(PeopleImportParams.builder()
    .screen(true)
    .monitor(true)
    .build());
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.People.ImportAsync(new PeopleImportOptions
{
    Screen = true,
    Monitor = true,
});
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // reads KONTIGA_API_KEY
$result = $kontiga->people->import([
    'screen' => true,
    'monitor' => true,
]);
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.people.import(screen: true, monitor: true)
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .people()
    .import(kontiga::people::ImportParams {
        screen: true,
        monitor: true,
        ..Default::default()
    })
    .await?;
```

Response, 200 OK:

```json
{
  "id": "pim_7Rq2Lw5",
  "object": "person_import",
  "state": "completed",
  "format": "csv",
  "mode": "attach",
  "mapping": { "name": "name", "email": "email", "birth_date": "birth_date", "country": "country", "reference": "reference" },
  "upload_id": null,
  "screen": true,
  "monitor": true,
  "counts": { "rows": 3, "create": 1, "update": 0, "unchanged": 1, "ambiguous": 0, "conflict": 0, "invalid": 1 },
  "rows_done": 3,
  "rows": [
    { "row": 4, "outcome": "invalid", "person_id": null, "problem": "No name: a person is screened and found by their name." },
    { "row": 2, "outcome": "create", "person_id": "per_5Mz8Tq2", "problem": null },
    { "row": 3, "outcome": "unchanged", "person_id": "per_2Nc6Qs8", "problem": null }
  ],
  "report_url": "https://files.kontiga.com/people-imports/pim_7Rq2Lw5/report.csv",
  "created_by": "API key crm-sync",
  "created_at": "2026-11-27T10:30:00Z",
  "committed_at": "2026-11-27T10:30:00Z",
  "completed_at": "2026-11-27T10:30:01Z",
  "cancelled_at": null,
  "failed_at": null,
  "failure": null,
  "columns": [
    { "name": "name", "field": "name" },
    { "name": "email", "field": "email" },
    { "name": "phone", "field": null },
    { "name": "birth_date", "field": "birth_date" },
    { "name": "country", "field": "country" },
    { "name": "reference", "field": "reference" }
  ]
}
```

## Read a person's identity verification

Whatever your workspace calls them on screen, the API, CLI, MCP and webhooks say person and people. The person's latest identity verification with everything it read: the ID document's data in full with their age today and when it was issued, each check in plain words, the chip read and whether it agrees with the page, and the selfie's face match and liveness. No images.

`GET /v1/people/{person_id}/identity`. Who may: Owner, Admin, Analyst and Viewer; Developer in test mode. CLI: `kontiga people identity <person_id>`. MCP tool: `get_person_identity`.

**Parameters**
- `person_id` (id (per_), required): The person whose latest identity verification to read. In the path.

**Returns** identity verification: The latest verification of the person, or null when none was started.

API:

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

CLI:

```bash
kontiga people identity per_2Nc6Qs8
```

MCP tool `get_person_identity`:

```json
{
  "name": "get_person_identity",
  "arguments": {
    "person_id": "per_2Nc6Qs8"
  }
}
```

TypeScript:

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

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.people.identity("per_2Nc6Qs8");
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.people.identity("per_2Nc6Qs8")
```

Go:

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

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.people().identity("per_2Nc6Qs8");
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.People.IdentityAsync("per_2Nc6Qs8");
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // reads KONTIGA_API_KEY
$result = $kontiga->people->identity('per_2Nc6Qs8');
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.people.identity("per_2Nc6Qs8")
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .people()
    .identity("per_2Nc6Qs8".into())
    .await?;
```

Response, 200 OK:

```json
{
  "id": "idv_3Qx7Ma2",
  "object": "identity_verification",
  "mode": "live",
  "person_id": "per_2Nc6Qs8",
  "case_id": "case_7Kq2Xw9",
  "case_reference": "APP-20418",
  "reused_on": [],
  "status": "passed",
  "result": "passed",
  "reason": null,
  "decided_by": "rules",
  "decided_by_name": "Kontiga's rules",
  "profile": { "id": "vpr_1Fd5Gh8", "name": "Passport with chip" },
  "reusable_until": "2031-05-07",
  "captured": "Through the link, on a phone's camera",
  "findings": [],
  "created_at": "2026-11-24T09:18:12Z",
  "completed_at": "2026-11-24T09:26:41Z",
  "url": null,
  "expires_at": null,
  "document": {
    "type": "passport",
    "type_label": "Passport",
    "number": "EK4281937",
    "personal_number": null,
    "issuing_country": "PL",
    "issuing_authority": "Wojewoda Mazowiecki",
    "nationality": "PL",
    "first_name": "Marta",
    "last_name": "Kowalczyk",
    "name_latin": "MARTA KOWALCZYK",
    "birth_date": "1988-03-14",
    "place_of_birth": "Radom",
    "gender": "female",
    "issue_date": "2021-06-07",
    "expiry_date": "2031-06-06",
    "expired": false,
    "age_today": 38,
    "age_at_issue": 33,
    "mrz_format": "TD3",
    "portrait_present": true,
    "signature_present": true
  },
  "checks": [
    { "key": "document_checks", "label": "Document checks", "result": "passed", "detail": "The passport passed every check." },
    { "key": "expiry", "label": "Not expired", "result": "passed", "detail": "Valid until 6 Jun 2031." }
  ],
  "chip": {
    "outcome": "verified",
    "read": true,
    "trusted": true,
    "reason": null,
    "fields": [],
    "portrait_present": true,
    "read_at": "2026-11-24T09:24:03Z"
  },
  "liveness": {
    "face_match": "match",
    "liveness": "live",
    "age_range": [34, 42],
    "age_consistency": "strong",
    "detail": "The selfie is of a live person and matches the passport's portrait."
  },
  "files": [
    { "key": "front", "label": "Passport, photo page" },
    { "key": "chip_portrait", "label": "Portrait from the chip" },
    { "key": "selfie", "label": "Selfie" }
  ]
}
```

## Verify a person's identity

Whatever your workspace calls them on screen, the API, CLI, MCP and webhooks say person and people. Ask a person to verify their identity, outside any case: Kontiga sends them a link (or gives you one to share) where they photograph their ID document, read its chip where the profile asks, and take a selfie. Nothing of the result is shown to them.

`POST /v1/people/{person_id}/identity_verifications`. Who may: Owner, Admin and Analyst; Developer in test mode. CLI: `kontiga people verify-identity <person_id> --channel <email|sms|none> [--profile-id <profile_id>] [--locale <en>] [--return-url <url>] [--qr]`. MCP tool: `verify_person_identity`.

**Parameters**
- `person_id` (id (per_), required): The person to verify. In the path.
- `channel` (enum, required): How the link reaches them. `none` sends nothing, and the answer holds the link for you to share. One of `email`, `sms`, `none`.
- `profile_id` (id (vpr_)): The verification profile to use, from Settings. The workspace's default when left out.
- `locale` (string): The language of the message and the page, such as `en` or `pt-PT`.
- `return_url` (string): Where they go when they finish.
- `qr` (boolean): Also answer a QR code of the link, as a PNG in base64.

**Returns** identity verification: The verification, not started yet, with its link, when the link ends, and the QR code when asked.

API:

```bash
curl -X POST https://api.kontiga.com/v1/people/per_2Nc6Qs8/identity_verifications \
  -H "Authorization: Bearer $KONTIGA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "channel": "email",
    "profile_id": "vpr_1Fd5Gh8",
    "locale": "en"
  }'
```

CLI:

```bash
kontiga people verify-identity per_2Nc6Qs8 \
  --channel email \
  --profile-id vpr_1Fd5Gh8 \
  --locale en
```

MCP tool `verify_person_identity`:

```json
{
  "name": "verify_person_identity",
  "arguments": {
    "person_id": "per_2Nc6Qs8",
    "channel": "email",
    "profile_id": "vpr_1Fd5Gh8",
    "locale": "en"
  }
}
```

TypeScript:

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

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.people.verifyIdentity("per_2Nc6Qs8", {
  channel: "email",
  profile_id: "vpr_1Fd5Gh8",
  locale: "en",
});
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.people.verify_identity(
    "per_2Nc6Qs8",
    channel="email",
    profile_id="vpr_1Fd5Gh8",
    locale="en",
)
```

Go:

```go
client := kontiga.NewClient() // reads KONTIGA_API_KEY
result, err := client.People.VerifyIdentity(ctx, "per_2Nc6Qs8", &kontiga.PeopleVerifyIdentityParams{
	Channel:   "email",
	ProfileId: "vpr_1Fd5Gh8",
	Locale:    "en",
})
if err != nil {
	return err
}
```

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.people().verifyIdentity("per_2Nc6Qs8", PeopleVerifyIdentityParams.builder()
    .channel("email")
    .profileId("vpr_1Fd5Gh8")
    .locale("en")
    .build());
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.People.VerifyIdentityAsync("per_2Nc6Qs8", new PeopleVerifyIdentityOptions
{
    Channel = "email",
    ProfileId = "vpr_1Fd5Gh8",
    Locale = "en",
});
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // reads KONTIGA_API_KEY
$result = $kontiga->people->verifyIdentity('per_2Nc6Qs8', [
    'channel' => 'email',
    'profile_id' => 'vpr_1Fd5Gh8',
    'locale' => 'en',
]);
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.people.verify_identity(
  "per_2Nc6Qs8",
  channel: "email",
  profile_id: "vpr_1Fd5Gh8",
  locale: "en"
)
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .people()
    .verify_identity("per_2Nc6Qs8".into(), kontiga::people::VerifyIdentityParams {
        channel: "email".into(),
        profile_id: "vpr_1Fd5Gh8".into(),
        locale: "en".into(),
        ..Default::default()
    })
    .await?;
```

Response, 201 Created:

```json
{
  "id": "idv_8Kw2Lp5",
  "object": "identity_verification",
  "mode": "live",
  "person_id": "per_2Nc6Qs8",
  "case_id": null,
  "status": "not_started",
  "url": "https://verify.kontiga.com/v/kt_vlt_211669356aaa488454768ec1a1baa32fe6d1e2954bc92767845de8221f9d5d7f",
  "expires_at": "2026-12-04T10:20:00Z",
  "delivered_by": "email",
  "qr_png_base64": null
}
```

## Finding the same person twice

One person is one profile. Every request, case, upload and import finds the person by the matching rule: your `reference` first, then an external id, then the email, then the phone. A name or a date of birth never matches. Where two profiles still look like one person, People suggests them as duplicates; a member merges them, or dismisses the suggestion. A passed identity verification that shares an identity document with another profile links the two, and a link never lets one profile reuse the other's checks.

## Match a person

Whatever your workspace calls them on screen, the API, CLI, MCP and webhooks say person and people. Run the matching rule on identifiers without writing anything: the person they would find, no one (a new person would be made), or several people it could be. The reference is tried first, then an external id, the email and the phone; a name alone never matches.

`POST /v1/people/match`. Who may: Owner, Admin, Analyst and Viewer; Developer in test mode. CLI: `kontiga people match [--reference <text>] [--external-ids '{"crm:contact":"51234"}'] [--email <address>] [--phone <+number>] [--country <IE|SE|...>]`. MCP tool: `match_person`.

**Parameters**
- `reference` (string): Your own reference for the person. Tried first, compared exactly. At most 255 characters.
- `external_ids` (record): Ids in another system, by namespace, such as `{"crm:contact": "51234"}`.
- `email` (string): Compared without case. At most 255 characters.
- `phone` (string): In international form, or national with the workspace's default country, else with `country`. At most 32 characters.
- `country` (pipe): The country a phone given without `+` is read in when the workspace has no default phone country, a two-letter ISO 3166 code such as `IE`, as adding the person reads it.

**Returns** person match: match with the person found, new when no one holds the identifiers, or ambiguous with every person it could be; what each match rests on.

API:

```bash
curl -X POST https://api.kontiga.com/v1/people/match \
  -H "Authorization: Bearer $KONTIGA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "email": "marta.kowalczyk@mailbox.example"
  }'
```

CLI:

```bash
kontiga people match --email marta.kowalczyk@mailbox.example
```

MCP tool `match_person`:

```json
{
  "name": "match_person",
  "arguments": {
    "email": "marta.kowalczyk@mailbox.example"
  }
}
```

TypeScript:

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

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.people.match({
  email: "marta.kowalczyk@mailbox.example",
});
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.people.match(email="marta.kowalczyk@mailbox.example")
```

Go:

```go
client := kontiga.NewClient() // reads KONTIGA_API_KEY
result, err := client.People.Match(ctx, &kontiga.PeopleMatchParams{
	Email: "marta.kowalczyk@mailbox.example",
})
if err != nil {
	return err
}
```

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.people().match(PeopleMatchParams.builder()
    .email("marta.kowalczyk@mailbox.example")
    .build());
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.People.MatchAsync(new PeopleMatchOptions
{
    Email = "marta.kowalczyk@mailbox.example",
});
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // reads KONTIGA_API_KEY
$result = $kontiga->people->match([
    'email' => 'marta.kowalczyk@mailbox.example',
]);
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.people.match(email: "marta.kowalczyk@mailbox.example")
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .people()
    .r#match(kontiga::people::MatchParams {
        email: "marta.kowalczyk@mailbox.example".into(),
        ..Default::default()
    })
    .await?;
```

Response, 200 OK:

```json
{
  "object": "person_match",
  "result": "match",
  "person_id": "per_2Nc6Qs8",
  "matched_on": "email",
  "matches": []
}
```

## List a person's facts

Whatever your workspace calls them on screen, the API, CLI, MCP and webhooks say person and people. What is verified about one person, each fact with the document, page and field that proved it: the current facts, or with state all their history too (superseded, conflicting and revoked).

`GET /v1/people/{person_id}/facts`. Who may: Owner, Admin, Analyst and Viewer; Developer in test mode. CLI: `kontiga people facts <person_id> [--state <current|all>] [--limit <n>] [--cursor <fct_...>]`. MCP tool: `list_person_facts`.

**Parameters**
- `person_id` (id (per_), required): The person whose facts to list. In the path.
- `state` (enum, default "current"): `current`, or `all` for the history too.
- `limit` (integer): The limit. At least 1, at most 200.
- `cursor` (id (fct_)): The cursor's id.

**Returns** list of facts: The person's facts, current first, each with its proof and how long its proof can be reused; a page at a time, next_cursor reading on.

API:

```bash
curl -X GET "https://api.kontiga.com/v1/people/per_2Nc6Qs8/facts?state=current" \
  -H "Authorization: Bearer $KONTIGA_API_KEY"
```

CLI:

```bash
kontiga people facts per_2Nc6Qs8 --state current
```

MCP tool `list_person_facts`:

```json
{
  "name": "list_person_facts",
  "arguments": {
    "person_id": "per_2Nc6Qs8",
    "state": "current"
  }
}
```

TypeScript:

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

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.people.facts("per_2Nc6Qs8", {
  state: "current",
});
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.people.facts("per_2Nc6Qs8", state="current")
```

Go:

```go
client := kontiga.NewClient() // reads KONTIGA_API_KEY
result, err := client.People.Facts(ctx, "per_2Nc6Qs8", &kontiga.PeopleFactsParams{
	State: "current",
})
if err != nil {
	return err
}
```

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.people().facts("per_2Nc6Qs8", PeopleFactsParams.builder()
    .state("current")
    .build());
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.People.FactsAsync("per_2Nc6Qs8", new PeopleFactsOptions
{
    State = "current",
});
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // reads KONTIGA_API_KEY
$result = $kontiga->people->facts('per_2Nc6Qs8', [
    'state' => 'current',
]);
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.people.facts("per_2Nc6Qs8", state: "current")
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .people()
    .facts("per_2Nc6Qs8".into(), kontiga::people::FactsParams {
        state: "current".into(),
        ..Default::default()
    })
    .await?;
```

Response, 200 OK:

```json
[
  {
    "id": "fct_4Lb8Ys1",
    "object": "fact",
    "person_id": "per_2Nc6Qs8",
    "name": "employer_name",
    "label": "Employer",
    "value": "Dunmore Freight Ltd",
    "class": "situation",
    "state": "current",
    "source": "document",
    "document_id": "doc_5Wm2Hk7",
    "document_title": "Payslip, October 2026",
    "check_id": null,
    "field": "issuer_name",
    "page": 1,
    "document_date": "2026-10-31",
    "proved_at": "2026-11-24T09:31:55Z",
    "superseded_by": null,
    "revoked": null,
    "corrected": false,
    "proof_deleted_at": null,
    "given": null,
    "differs_from_given": false,
    "validity": null
  }
]
```

A fact is something proven about a person, never something typed. Kontiga writes it, once for each document and field, when an identity verification of the person passes (their name, date of birth, nationality and identity document), when a proof of address is accepted, and when one of their own documents is trusted (its verdict is Trusted, a member accepts it on a case, or its outcome is confirmed genuine): the address and bank account on a statement, the employer on a payslip or contract, the registration number on a company register extract. A value that was not read gives no fact. A newer proof becomes current and the older one stays in the history; a date of birth, personal number or place of birth that differs from the current one is kept as `conflicting` for your team. A corrected field replaces its fact. When a document is confirmed as fraud, or a passed verification is overturned, every fact it proved is revoked and the newest earlier one still good is current again; an open request that reused it asks the person for a new copy, without saying why. Each fact written fires `person.fact_verified`, each revoked `person.fact_revoked`.

## Preview what a request would reuse

Whatever your workspace calls them on screen, the API, CLI, MCP and webhooks say person and people. What a request from one collection would take from what is on file for this person, and what it would ask for, as of today: for each requirement and each check, reuse with until when, or ask with the reason.

`GET /v1/people/{person_id}/reuse`. Who may: Owner, Admin, Analyst and Viewer; Developer in test mode. CLI: `kontiga people reuse <person_id> --collection-id <col_id>`. MCP tool: `preview_person_reuse`.

**Parameters**
- `person_id` (id (per_), required): The person you would send to. In the path.
- `collection_id` (id (col_), required): The collection you would send: its latest published version, or its draft before the first.

**Returns** reuse preview: Each requirement and check of the collection: reused (the document or check, the rule, valid until) or asked (the reason, and the document that no longer counts).

API:

```bash
curl -X GET "https://api.kontiga.com/v1/people/per_2Nc6Qs8/reuse?collection_id=col_5Gk3Tm7" \
  -H "Authorization: Bearer $KONTIGA_API_KEY"
```

CLI:

```bash
kontiga people reuse per_2Nc6Qs8 --collection-id col_5Gk3Tm7
```

MCP tool `preview_person_reuse`:

```json
{
  "name": "preview_person_reuse",
  "arguments": {
    "person_id": "per_2Nc6Qs8",
    "collection_id": "col_5Gk3Tm7"
  }
}
```

TypeScript:

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

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.people.reuse("per_2Nc6Qs8", {
  collection_id: "col_5Gk3Tm7",
});
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.people.reuse("per_2Nc6Qs8", collection_id="col_5Gk3Tm7")
```

Go:

```go
client := kontiga.NewClient() // reads KONTIGA_API_KEY
result, err := client.People.Reuse(ctx, "per_2Nc6Qs8", &kontiga.PeopleReuseParams{
	CollectionId: "col_5Gk3Tm7",
})
if err != nil {
	return err
}
```

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.people().reuse("per_2Nc6Qs8", PeopleReuseParams.builder()
    .collectionId("col_5Gk3Tm7")
    .build());
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.People.ReuseAsync("per_2Nc6Qs8", new PeopleReuseOptions
{
    CollectionId = "col_5Gk3Tm7",
});
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // reads KONTIGA_API_KEY
$result = $kontiga->people->reuse('per_2Nc6Qs8', [
    'collection_id' => 'col_5Gk3Tm7',
]);
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.people.reuse("per_2Nc6Qs8", collection_id: "col_5Gk3Tm7")
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .people()
    .reuse("per_2Nc6Qs8".into(), kontiga::people::ReuseParams {
        collection_id: "col_5Gk3Tm7".into(),
        ..Default::default()
    })
    .await?;
```

Response, 200 OK:

```json
{
  "object": "reuse_preview",
  "person_id": "per_2Nc6Qs8",
  "collection_id": "col_5Gk3Tm7",
  "evaluated_on": "2026-11-27",
  "requirements": [
    { "requirement_id": "rqm_1Hc4Pw7", "kind": "document", "decision": "reuse", "document_id": "doc_8Vb3Ke1", "document_ids": ["doc_8Vb3Ke1"], "check_id": null, "rule": "until_expiry", "rule_level": "default", "valid_until": "2031-04-07", "reason": null, "previous_document_id": null, "ended_on": null },
    { "requirement_id": "rqm_6Tx2Ld9", "kind": "document", "decision": "ask", "document_id": null, "document_ids": [], "check_id": null, "rule": null, "rule_level": null, "valid_until": null, "reason": "out_of_date", "previous_document_id": "doc_3Qp7Nf4", "ended_on": "2026-11-20" },
    { "requirement_id": "rqm_9Jw5Ra2", "kind": "document", "decision": "ask", "document_id": null, "document_ids": [], "check_id": null, "rule": null, "rule_level": null, "valid_until": null, "reason": "none_on_file", "previous_document_id": null, "ended_on": null }
  ],
  "checks": [
    { "kind": "identity_verification", "decision": "reuse", "check_id": "idv_3Qx7Ma2", "valid_until": "2027-11-24", "reason": null },
    { "kind": "screening", "decision": "reuse", "check_id": "scr_5Hn2Wq8", "valid_until": null, "reason": null }
  ]
}
```

For each document a requirement asks for, the person's documents of the types it accepts are looked at newest first, and the first that passes is reused. One passes when reuse is on for the workspace, the collection and the requirement; its type is reused under the rule in force (see Collect settings, validity rules); it is not confirmed fraud and no fact it proved was revoked; its file is still kept; it is trusted, accepted by a member on a case, or confirmed genuine; it is valid today under the rule; it meets the requirement's own rules (a date, the name, consecutive months); and it matches no fraud learned since it was checked, while the workspace checks reused documents again. When none passes, `reason` says why the newest did not: `reuse_off`, `not_reusable_type`, `confirmed_fraud`, `revoked` (a fact it proved was revoked), `file_deleted`, `checking`, `not_trusted`, `out_of_date`, `expires_too_soon` (only the margin before its expiry fails), `date_not_read`, `failed_rule` or `known_fraud_now`; `none_on_file` when there is none. An identity requirement reuses the newest passed verification still valid, never when the collection opens with an identity verification (`access_step`); a screening is reused within its rule, or for as long as the person is monitored, never one that could not run (`not_run`) or was made with other details than the person's today (`subject_changed`). Anything that cannot be read makes the item asked, with `evaluation_failed`: reuse never guesses. The answer names documents and checks by id, with rules, dates and reasons: never a file or a value read from one.

## List duplicate suggestions

Whatever your workspace calls them on screen, the API, CLI, MCP and webhooks say person and people. Pairs of profiles that look like one person, strong first, then newest: each with the signals that raised it (a shared verified identity, email, phone, an identifier conflict, the same name and date of birth, the same face). The person is never told.

`GET /v1/people/duplicates`. Who may: Owner, Admin, Analyst and Viewer; Developer in test mode. CLI: `kontiga people duplicates [--strength <strong|possible>] [--signal <same_identity|same_email|identifier_conflict|same_phone|same_name_and_birth_date|same_face>] [--status <open|dismissed|merged|obsolete>] [--person-id <per_id>] [--limit <n>] [--cursor <cursor>]`. MCP tool: `list_people_duplicates`.

**Parameters**
- `strength` (enum): `strong` or `possible`.
- `signal` (enum): Only the open suggestions raised by this signal. With a closed `status` it is refused: a closed list is read by status, newest first. One of `same_identity`, `same_email`, `identifier_conflict`, `same_phone`, `same_name_and_birth_date`, `same_face`.
- `status` (enum, default "open"): `open` by default; `dismissed`, `merged` or `obsolete` to look back.
- `person_id` (id (per_)): Only the pairs this person is one of.
- `limit` (integer): How many to answer, 1 to 200, strong first, then newest.
- `cursor` (string): The answer's `next_cursor`, sent back, reads the next page with the same filters. At most 512 characters.

**Returns** list of duplicate suggestions: The suggestions, strong first, each with the two profiles and the signals.

API:

```bash
curl -X GET "https://api.kontiga.com/v1/people/duplicates?strength=strong" \
  -H "Authorization: Bearer $KONTIGA_API_KEY"
```

CLI:

```bash
kontiga people duplicates --strength strong
```

MCP tool `list_people_duplicates`:

```json
{
  "name": "list_people_duplicates",
  "arguments": {
    "strength": "strong"
  }
}
```

TypeScript:

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

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.people.duplicates({
  strength: "strong",
});
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.people.duplicates(strength="strong")
```

Go:

```go
client := kontiga.NewClient() // reads KONTIGA_API_KEY
result, err := client.People.Duplicates(ctx, &kontiga.PeopleDuplicatesParams{
	Strength: "strong",
})
if err != nil {
	return err
}
```

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.people().duplicates(PeopleDuplicatesParams.builder()
    .strength("strong")
    .build());
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.People.DuplicatesAsync(new PeopleDuplicatesOptions
{
    Strength = "strong",
});
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // reads KONTIGA_API_KEY
$result = $kontiga->people->duplicates([
    'strength' => 'strong',
]);
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.people.duplicates(strength: "strong")
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .people()
    .duplicates(kontiga::people::DuplicatesParams {
        strength: "strong".into(),
        ..Default::default()
    })
    .await?;
```

Response, 200 OK:

```json
{
  "items": [{
  "id": "dup_7Rk3Vm2",
  "object": "duplicate_suggestion",
  "person_a": { "id": "per_2Nc6Qs8", "name": "Marta Kowalczyk", "reference": "CUST-55120" },
  "person_b": { "id": "per_9Ld4Tx6", "name": "Marta Kowalczyk", "reference": "CUST-60311" },
  "signals": [{ "kind": "same_email" }],
  "strength": "strong",
  "status": "open",
  "created_at": "2026-11-26T15:02:44Z",
  "signalled_at": "2026-11-26T15:02:44Z",
  "resolved_by": null,
  "resolved_at": null,
  "reason": null,
  "last_dismissal": null
}],
  "next_cursor": null
}
```

## Count open duplicate suggestions

Whatever your workspace calls them on screen, the API, CLI, MCP and webhooks say person and people. How many pairs wait to be looked at, without reading them: exact up to 1,000, and more past it.

`GET /v1/people/duplicates/count`. Who may: Owner, Admin, Analyst and Viewer; Developer in test mode. CLI: `kontiga people duplicates-count`. MCP tool: `count_people_duplicates`.

**Parameters**

**Returns** duplicate count: The open suggestions, counted up to 1,000, and whether there are more.

API:

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

CLI:

```bash
kontiga people duplicates-count
```

MCP tool `count_people_duplicates`:

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

TypeScript:

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

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.people.duplicatesCount();
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.people.duplicates_count()
```

Go:

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

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.people().duplicatesCount();
```

.NET:

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

PHP:

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

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.people.duplicates_count
```

Rust:

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

Response, 200 OK:

```json
{
  "object": "duplicate_count",
  "open": 37,
  "more": false
}
```

The count is exact up to 1,000; past that it answers 1,000 with `more` true. It reads no suggestion, so a badge or a check of the queue costs one small call.

## Get a duplicate suggestion

Whatever your workspace calls them on screen, the API, CLI, MCP and webhooks say person and people. One pair of profiles that may be one person, open or closed: the two profiles, the signals that raised it, and who dismissed or merged it and why.

`GET /v1/people/duplicates/{suggestion_id}`. Who may: Owner, Admin, Analyst and Viewer; Developer in test mode. CLI: `kontiga people duplicate <suggestion_id>`. MCP tool: `get_people_duplicate`.

**Parameters**
- `suggestion_id` (id (dup_), required): The suggestion, open or closed. In the path.

**Returns** duplicate suggestion: The suggestion, with the two profiles and its signals.

API:

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

CLI:

```bash
kontiga people duplicate dup_7Rk3Vm2
```

MCP tool `get_people_duplicate`:

```json
{
  "name": "get_people_duplicate",
  "arguments": {
    "suggestion_id": "dup_7Rk3Vm2"
  }
}
```

TypeScript:

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

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.people.duplicate("dup_7Rk3Vm2");
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.people.duplicate("dup_7Rk3Vm2")
```

Go:

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

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.people().duplicate("dup_7Rk3Vm2");
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.People.DuplicateAsync("dup_7Rk3Vm2");
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // reads KONTIGA_API_KEY
$result = $kontiga->people->duplicate('dup_7Rk3Vm2');
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.people.duplicate("dup_7Rk3Vm2")
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .people()
    .duplicate("dup_7Rk3Vm2".into())
    .await?;
```

Response, 200 OK:

```json
{
  "id": "dup_7Rk3Vm2",
  "object": "duplicate_suggestion",
  "person_a": { "id": "per_2Nc6Qs8", "name": "Marta Kowalczyk", "reference": "CUST-55120" },
  "person_b": { "id": "per_9Ld4Tx6", "name": "Marta Kowalczyk", "reference": "CUST-60311" },
  "signals": [{ "kind": "same_email" }],
  "strength": "strong",
  "status": "open",
  "created_at": "2026-11-26T15:02:44Z",
  "signalled_at": "2026-11-26T15:02:44Z",
  "resolved_by": null,
  "resolved_at": null,
  "reason": null,
  "last_dismissal": null
}
```

## Dismiss a duplicate suggestion

Whatever your workspace calls them on screen, the API, CLI, MCP and webhooks say person and people. Not the same person: the suggestion closes with your reason and is not raised again for the same signals. A new strong signal opens it again.

`POST /v1/people/duplicates/{suggestion_id}/dismiss`. Who may: Owner, Admin and Analyst; Developer in test mode. CLI: `kontiga people dismiss-duplicate <suggestion_id> --reason <text>`. MCP tool: `dismiss_people_duplicate`.

**Parameters**
- `suggestion_id` (id (dup_), required): The suggestion to close. In the path.
- `reason` (string, required): Why they are not the same person, for your team. At most 500 characters.

**Returns** duplicate suggestion: The suggestion, dismissed, with who and why.

API:

```bash
curl -X POST https://api.kontiga.com/v1/people/duplicates/dup_7Rk3Vm2/dismiss \
  -H "Authorization: Bearer $KONTIGA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "reason": "Mother and daughter who share an email address."
  }'
```

CLI:

```bash
kontiga people dismiss-duplicate dup_7Rk3Vm2 \
  --reason 'Mother and daughter who share an email address.'
```

MCP tool `dismiss_people_duplicate`:

```json
{
  "name": "dismiss_people_duplicate",
  "arguments": {
    "suggestion_id": "dup_7Rk3Vm2",
    "reason": "Mother and daughter who share an email address."
  }
}
```

TypeScript:

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

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.people.dismissDuplicate("dup_7Rk3Vm2", {
  reason: "Mother and daughter who share an email address.",
});
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.people.dismiss_duplicate("dup_7Rk3Vm2", reason="Mother and daughter who share an email address.")
```

Go:

```go
client := kontiga.NewClient() // reads KONTIGA_API_KEY
result, err := client.People.DismissDuplicate(ctx, "dup_7Rk3Vm2", &kontiga.PeopleDismissDuplicateParams{
	Reason: "Mother and daughter who share an email address.",
})
if err != nil {
	return err
}
```

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.people().dismissDuplicate("dup_7Rk3Vm2", PeopleDismissDuplicateParams.builder()
    .reason("Mother and daughter who share an email address.")
    .build());
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.People.DismissDuplicateAsync("dup_7Rk3Vm2", new PeopleDismissDuplicateOptions
{
    Reason = "Mother and daughter who share an email address.",
});
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // reads KONTIGA_API_KEY
$result = $kontiga->people->dismissDuplicate('dup_7Rk3Vm2', [
    'reason' => 'Mother and daughter who share an email address.',
]);
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.people.dismiss_duplicate("dup_7Rk3Vm2", reason: "Mother and daughter who share an email address.")
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .people()
    .dismiss_duplicate("dup_7Rk3Vm2".into(), kontiga::people::DismissDuplicateParams {
        reason: "Mother and daughter who share an email address.".into(),
        ..Default::default()
    })
    .await?;
```

Response, 200 OK:

```json
{
  "id": "dup_7Rk3Vm2",
  "object": "duplicate_suggestion",
  "person_a": { "id": "per_2Nc6Qs8", "name": "Marta Kowalczyk", "reference": "CUST-55120" },
  "person_b": { "id": "per_9Ld4Tx6", "name": "Marta Kowalczyk", "reference": "CUST-60311" },
  "signals": [{ "kind": "same_email" }],
  "strength": "strong",
  "status": "dismissed",
  "created_at": "2026-11-26T15:02:44Z",
  "signalled_at": "2026-11-26T15:02:44Z",
  "resolved_by": { "type": "member", "id": "usr_01938c2a5e7b7c41a2f0d3b6e8a91c44", "name": "Ines Moreau" },
  "resolved_at": "2026-11-27T09:14:02Z",
  "reason": "Mother and daughter who share an email address.",
  "last_dismissal": null
}
```

## Merge two people

Whatever your workspace calls them on screen, the API, CLI, MCP and webhooks say person and people. Merge another profile into this one: its cases, documents, verifications, screenings, facts, requests and notes move here, its identifiers become aliases, and it points to this profile from then on. Choose which given details to keep; a merge can be undone.

`POST /v1/people/{person_id}/merge`. Who may: Owner, Admin and Analyst; Developer in test mode. CLI: `kontiga people merge <person_id> --merge <per_id> [--fields '{"email":"merged"}'] [--reason <text>]`. MCP tool: `merge_people`.

**Parameters**
- `person_id` (id (per_), required): The profile that stays. In the path.
- `merge` (id (per_), required): The profile merged into it. From then on it answers with `merged_into`.
- `fields` (record): Which value of each given detail stays: `kept` or `merged`. Left out: the kept profile's, and the merged one's where the kept one is empty.
- `reason` (string): Why, for the timeline. At most 500 characters.

**Returns** person merge: The merge record: the two profiles, how many objects of each kind moved, the choices made, who and when.

API:

```bash
curl -X POST https://api.kontiga.com/v1/people/per_2Nc6Qs8/merge \
  -H "Authorization: Bearer $KONTIGA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "merge": "per_9Ld4Tx6",
    "fields": {
      "phone": "merged"
    },
    "reason": "The same applicant applied twice under two customer numbers."
  }'
```

CLI:

```bash
kontiga people merge per_2Nc6Qs8 \
  --merge per_9Ld4Tx6 \
  --fields '{"phone":"merged"}' \
  --reason 'The same applicant applied twice under two customer numbers.'
```

MCP tool `merge_people`:

```json
{
  "name": "merge_people",
  "arguments": {
    "person_id": "per_2Nc6Qs8",
    "merge": "per_9Ld4Tx6",
    "fields": {
      "phone": "merged"
    },
    "reason": "The same applicant applied twice under two customer numbers."
  }
}
```

TypeScript:

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

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.people.merge("per_2Nc6Qs8", {
  merge: "per_9Ld4Tx6",
  fields: { phone: "merged" },
  reason: "The same applicant applied twice under two customer numbers.",
});
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.people.merge(
    "per_2Nc6Qs8",
    merge="per_9Ld4Tx6",
    fields={"phone": "merged"},
    reason="The same applicant applied twice under two customer numbers.",
)
```

Go:

```go
client := kontiga.NewClient() // reads KONTIGA_API_KEY
result, err := client.People.Merge(ctx, "per_2Nc6Qs8", &kontiga.PeopleMergeParams{
	Merge:  "per_9Ld4Tx6",
	Fields: map[string]any{"phone": "merged"},
	Reason: "The same applicant applied twice under two customer numbers.",
})
if err != nil {
	return err
}
```

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.people().merge("per_2Nc6Qs8", PeopleMergeParams.builder()
    .merge("per_9Ld4Tx6")
    .fields(Map.of("phone", "merged"))
    .reason("The same applicant applied twice under two customer numbers.")
    .build());
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.People.MergeAsync("per_2Nc6Qs8", new PeopleMergeOptions
{
    Merge = "per_9Ld4Tx6",
    Fields = new Dictionary<string, object> { ["phone"] = "merged" },
    Reason = "The same applicant applied twice under two customer numbers.",
});
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // reads KONTIGA_API_KEY
$result = $kontiga->people->merge('per_2Nc6Qs8', [
    'merge' => 'per_9Ld4Tx6',
    'fields' => ['phone' => 'merged'],
    'reason' => 'The same applicant applied twice under two customer numbers.',
]);
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.people.merge(
  "per_2Nc6Qs8",
  merge: "per_9Ld4Tx6",
  fields: { phone: "merged" },
  reason: "The same applicant applied twice under two customer numbers."
)
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .people()
    .merge("per_2Nc6Qs8".into(), kontiga::people::MergeParams {
        merge: "per_9Ld4Tx6".into(),
        fields: serde_json::json!({"phone":"merged"}),
        reason: "The same applicant applied twice under two customer numbers.".into(),
        ..Default::default()
    })
    .await?;
```

Response, 200 OK:

```json
{
  "id": "pmg_4Wc8Hn1",
  "object": "person_merge",
  "kept_id": "per_2Nc6Qs8",
  "merged_id": "per_9Ld4Tx6",
  "status": "done",
  "moved": [
    { "object": "party", "count": 1 },
    { "object": "document", "count": 2 },
    { "object": "request", "count": 1 }
  ],
  "field_choices": { "birth_date": "kept", "country": "kept", "email": "kept", "marital_status": "kept", "name": "kept", "occupation": "kept", "phone": "merged", "reference": "kept" },
  "merged_identifiers": { "references": ["CUST-60311"], "emails": ["marta.kowalczyk@mailbox.example"], "phones": ["+353874120937"], "external_ids": [{ "namespace": "crm:contact", "value": "51234" }] },
  "merged_by": { "type": "member", "id": "usr_01938c2a5e7b7c41a2f0d3b6e8a91c44", "name": "Ines Moreau" },
  "merged_at": "2026-11-27T10:11:30Z",
  "reason": "The same applicant applied twice under two customer numbers.",
  "undone_by": null,
  "undone_at": null,
  "undo_reason": null,
  "moved_back": []
}
```

## Undo a merge

Whatever your workspace calls them on screen, the API, CLI, MCP and webhooks say person and people. Split a merged profile out again: what the merge moved goes back, the profile's own identifiers and details return, and anything added since stays unless you move it too. Only objects added after the merge can be moved. Merges are undone latest first, and not while either profile is on legal hold.

`POST /v1/people/merges/{merge_id}/undo`. Who may: Owner, Admin and Analyst; Developer in test mode. CLI: `kontiga people undo-merge <merge_id> [--move <id>,...] [--reason <text>]`. MCP tool: `undo_person_merge`.

**Parameters**
- `merge_id` (id (pmg_), required): The merge to undo. Merges into one profile are undone latest first. In the path.
- `move` (array of string): Objects added to the kept profile since the merge that go with the restored one, by id, up to 500; list them with the merge's movable objects. An object the kept profile had before the merge, or made in the second after it, is refused by its id: an undo never takes the kept profile's own. An object that is not on the kept profile (another person's, gone, or no such object) is refused by its id too, and nothing changes. A request moves with its party, so it is never named here.
- `reason` (string): Why, for the timeline and the record's `undo_reason`. At most 500 characters.

**Returns** person merge: The merge record, undone, with the profile restored.

API:

```bash
curl -X POST https://api.kontiga.com/v1/people/merges/pmg_4Wc8Hn1/undo \
  -H "Authorization: Bearer $KONTIGA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "reason": "Two sisters, not one person."
  }'
```

CLI:

```bash
kontiga people undo-merge pmg_4Wc8Hn1 \
  --reason 'Two sisters, not one person.'
```

MCP tool `undo_person_merge`:

```json
{
  "name": "undo_person_merge",
  "arguments": {
    "merge_id": "pmg_4Wc8Hn1",
    "reason": "Two sisters, not one person."
  }
}
```

TypeScript:

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

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.people.undoMerge("pmg_4Wc8Hn1", {
  reason: "Two sisters, not one person.",
});
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.people.undo_merge("pmg_4Wc8Hn1", reason="Two sisters, not one person.")
```

Go:

```go
client := kontiga.NewClient() // reads KONTIGA_API_KEY
result, err := client.People.UndoMerge(ctx, "pmg_4Wc8Hn1", &kontiga.PeopleUndoMergeParams{
	Reason: "Two sisters, not one person.",
})
if err != nil {
	return err
}
```

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.people().undoMerge("pmg_4Wc8Hn1", PeopleUndoMergeParams.builder()
    .reason("Two sisters, not one person.")
    .build());
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.People.UndoMergeAsync("pmg_4Wc8Hn1", new PeopleUndoMergeOptions
{
    Reason = "Two sisters, not one person.",
});
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // reads KONTIGA_API_KEY
$result = $kontiga->people->undoMerge('pmg_4Wc8Hn1', [
    'reason' => 'Two sisters, not one person.',
]);
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.people.undo_merge("pmg_4Wc8Hn1", reason: "Two sisters, not one person.")
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .people()
    .undo_merge("pmg_4Wc8Hn1".into(), kontiga::people::UndoMergeParams {
        reason: "Two sisters, not one person.".into(),
        ..Default::default()
    })
    .await?;
```

Response, 200 OK:

```json
{
  "id": "pmg_4Wc8Hn1",
  "object": "person_merge",
  "kept_id": "per_2Nc6Qs8",
  "merged_id": "per_9Ld4Tx6",
  "status": "undone",
  "moved": [
    { "object": "party", "count": 1 },
    { "object": "document", "count": 2 },
    { "object": "request", "count": 1 }
  ],
  "field_choices": { "birth_date": "kept", "country": "kept", "email": "kept", "marital_status": "kept", "name": "kept", "occupation": "kept", "phone": "merged", "reference": "kept" },
  "merged_identifiers": { "references": ["CUST-60311"], "emails": ["marta.kowalczyk@mailbox.example"], "phones": ["+353874120937"], "external_ids": [{ "namespace": "crm:contact", "value": "51234" }] },
  "merged_by": { "type": "member", "id": "usr_01938c2a5e7b7c41a2f0d3b6e8a91c44", "name": "Ines Moreau" },
  "merged_at": "2026-11-27T10:11:30Z",
  "reason": "The same applicant applied twice under two customer numbers.",
  "undone_by": { "type": "member", "id": "usr_01938c2a5e7b7c41a2f0d3b6e8a91c44", "name": "Ines Moreau" },
  "undone_at": "2026-11-28T08:30:05Z",
  "undo_reason": "Two sisters, not one person.",
  "moved_back": [
    { "object": "party", "count": 1 },
    { "object": "document", "count": 3 },
    { "object": "request", "count": 1 }
  ]
}
```

## Get a merge

Whatever your workspace calls them on screen, the API, CLI, MCP and webhooks say person and people. One merge record: the two profiles, how many objects of each kind it moved, the choices made, who merged and why, and when it was undone, by whom and what the undo moved back.

`GET /v1/people/merges/{merge_id}`. Who may: Owner, Admin, Analyst and Viewer; Developer in test mode. CLI: `kontiga people merge-record <merge_id>`. MCP tool: `get_person_merge`.

**Parameters**
- `merge_id` (id (pmg_), required): The merge, done or undone. In the path.

**Returns** person merge: The merge record.

API:

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

CLI:

```bash
kontiga people merge-record pmg_4Wc8Hn1
```

MCP tool `get_person_merge`:

```json
{
  "name": "get_person_merge",
  "arguments": {
    "merge_id": "pmg_4Wc8Hn1"
  }
}
```

TypeScript:

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

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.people.mergeRecord("pmg_4Wc8Hn1");
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.people.merge_record("pmg_4Wc8Hn1")
```

Go:

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

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.people().mergeRecord("pmg_4Wc8Hn1");
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.People.MergeRecordAsync("pmg_4Wc8Hn1");
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // reads KONTIGA_API_KEY
$result = $kontiga->people->mergeRecord('pmg_4Wc8Hn1');
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.people.merge_record("pmg_4Wc8Hn1")
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .people()
    .merge_record("pmg_4Wc8Hn1".into())
    .await?;
```

Response, 200 OK:

```json
{
  "id": "pmg_4Wc8Hn1",
  "object": "person_merge",
  "kept_id": "per_2Nc6Qs8",
  "merged_id": "per_9Ld4Tx6",
  "status": "undone",
  "moved": [
    { "object": "party", "count": 1 },
    { "object": "document", "count": 2 },
    { "object": "request", "count": 1 }
  ],
  "field_choices": { "birth_date": "kept", "country": "kept", "email": "kept", "marital_status": "kept", "name": "kept", "occupation": "kept", "phone": "merged", "reference": "kept" },
  "merged_identifiers": { "references": ["CUST-60311"], "emails": ["marta.kowalczyk@mailbox.example"], "phones": ["+353874120937"], "external_ids": [{ "namespace": "crm:contact", "value": "51234" }] },
  "merged_by": { "type": "member", "id": "usr_01938c2a5e7b7c41a2f0d3b6e8a91c44", "name": "Ines Moreau" },
  "merged_at": "2026-11-27T10:11:30Z",
  "reason": "The same applicant applied twice under two customer numbers.",
  "undone_by": { "type": "member", "id": "usr_01938c2a5e7b7c41a2f0d3b6e8a91c44", "name": "Ines Moreau" },
  "undone_at": "2026-11-28T08:30:05Z",
  "undo_reason": "Two sisters, not one person.",
  "moved_back": [
    { "object": "party", "count": 1 },
    { "object": "document", "count": 3 },
    { "object": "request", "count": 1 }
  ]
}
```

A record counts what moved, by kind: `moved` for the merge, `moved_back` for its undo, each `{ object, count }` for every kind with any (`party`, `document`, `identity_verification`, `screening`, `fact`, `request`, `note`, `link`, `suggestion`), so a merge of a profile in thousands of cases stays a few lines. The ids themselves are listed a page at a time with [what a merge moved](#list-what-a-merge-moved).

## List what a merge moved

Whatever your workspace calls them on screen, the API, CLI, MCP and webhooks say person and people. The ids of every object a merge moved to the kept profile, or its undo moved back, a page at a time: by kind, then as the merge recorded them.

`GET /v1/people/merges/{merge_id}/moved`. Who may: Owner, Admin, Analyst and Viewer; Developer in test mode. CLI: `kontiga people merge-moved <merge_id> [--list <moved|moved_back>] [--kind <party|document|...>] [--limit <n>] [--cursor <cursor>]`. MCP tool: `list_person_merge_moved`.

**Parameters**
- `merge_id` (id (pmg_), required): The merge, done or undone. In the path.
- `list` (enum): `moved` (the default): what the merge moved to the kept profile. `moved_back`: what its undo moved back to the restored profile, without what was gone from the kept profile by then; empty until it is undone.
- `kind` (enum): One kind only: `party`, `document`, `identity_verification`, `screening`, `fact`, `request`, `note`, `link` or `suggestion`.
- `limit` (integer): How many to answer, 1 to 200 (200 by default): by kind in that order, then as the merge recorded them.
- `cursor` (string): The answer's `next_cursor`, sent back, reads the next page; it is null on the last one. A page may hold fewer than `limit` when objects were gone by the undo: follow `next_cursor` until it is null. At most 64 characters.

**Returns** moved objects: A page of the merge's moved objects, each its kind and id, and the next page's cursor.

API:

```bash
curl -X GET "https://api.kontiga.com/v1/people/merges/pmg_4Wc8Hn1/moved?limit=2" \
  -H "Authorization: Bearer $KONTIGA_API_KEY"
```

CLI:

```bash
kontiga people merge-moved pmg_4Wc8Hn1 --limit 2
```

MCP tool `list_person_merge_moved`:

```json
{
  "name": "list_person_merge_moved",
  "arguments": {
    "merge_id": "pmg_4Wc8Hn1",
    "limit": 2
  }
}
```

TypeScript:

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

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.people.mergeMoved("pmg_4Wc8Hn1", {
  limit: 2,
});
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.people.merge_moved("pmg_4Wc8Hn1", limit=2)
```

Go:

```go
client := kontiga.NewClient() // reads KONTIGA_API_KEY
result, err := client.People.MergeMoved(ctx, "pmg_4Wc8Hn1", &kontiga.PeopleMergeMovedParams{
	Limit: 2,
})
if err != nil {
	return err
}
```

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.people().mergeMoved("pmg_4Wc8Hn1", PeopleMergeMovedParams.builder()
    .limit(2)
    .build());
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.People.MergeMovedAsync("pmg_4Wc8Hn1", new PeopleMergeMovedOptions
{
    Limit = 2,
});
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // reads KONTIGA_API_KEY
$result = $kontiga->people->mergeMoved('pmg_4Wc8Hn1', [
    'limit' => 2,
]);
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.people.merge_moved("pmg_4Wc8Hn1", limit: 2)
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .people()
    .merge_moved("pmg_4Wc8Hn1".into(), kontiga::people::MergeMovedParams {
        limit: 2,
        ..Default::default()
    })
    .await?;
```

Response, 200 OK:

```json
{
  "object": "person_merge_moved",
  "merge_id": "pmg_4Wc8Hn1",
  "list": "moved",
  "items": [
    { "object": "party", "id": "pty_6Gm2Ks9" },
    { "object": "document", "id": "doc_1Zr8Pc5" }
  ],
  "next_cursor": "MToy"
}
```

## List what an undo may move

Whatever your workspace calls them on screen, the API, CLI, MCP and webhooks say person and people. The documents, notes, case parties and identity links attached to the kept profile after a merge: the ones an undo can move to the restored profile with it.

`GET /v1/people/merges/{merge_id}/movable`. Who may: Owner, Admin, Analyst and Viewer; Developer in test mode. CLI: `kontiga people merge-movable <merge_id>`. MCP tool: `list_person_merge_movable`.

**Parameters**
- `merge_id` (id (pmg_), required): A merge not yet undone. An undone merge lists none. In the path.

**Returns** movable objects: What was attached to the kept profile after the merge, newest first.

API:

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

CLI:

```bash
kontiga people merge-movable pmg_4Wc8Hn1
```

MCP tool `list_person_merge_movable`:

```json
{
  "name": "list_person_merge_movable",
  "arguments": {
    "merge_id": "pmg_4Wc8Hn1"
  }
}
```

TypeScript:

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

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.people.mergeMovable("pmg_4Wc8Hn1");
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.people.merge_movable("pmg_4Wc8Hn1")
```

Go:

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

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.people().mergeMovable("pmg_4Wc8Hn1");
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.People.MergeMovableAsync("pmg_4Wc8Hn1");
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // reads KONTIGA_API_KEY
$result = $kontiga->people->mergeMovable('pmg_4Wc8Hn1');
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.people.merge_movable("pmg_4Wc8Hn1")
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .people()
    .merge_movable("pmg_4Wc8Hn1".into())
    .await?;
```

Response, 200 OK:

```json
{
  "object": "person_merge_movable",
  "merge_id": "pmg_4Wc8Hn1",
  "items": [
    { "object": "document", "id": "doc_3Vb6Ny4", "created_at": "2026-11-27T16:40:09Z" },
    { "object": "note", "id": "nte_8Jd2Qe5", "created_at": "2026-11-27T14:02:51Z" }
  ],
  "more": false
}
```

The documents, notes, case parties and identity links attached to the kept profile after the merge, newest first, up to 200 (`more` is true past that). The merge moved none of them, so an undo leaves them on the kept profile unless you name them in `move`. Each `merged_by`, `undone_by`, `resolved_by` and `removed_by` is an actor: its `type` (`member`, `key`, `end_customer`, `workflow_run`, `reasoning_agent` or `system`), its `id` where it has one (`usr_` for a member, `key_` for an API key) and its `name`. A merge's `merged_identifiers` are the identifiers it added to the kept profile as aliases; one the kept profile already held is not listed. A pair a new strong signal reopened keeps who dismissed it before, when and why, in `last_dismissal`.

## List a person's merges

Whatever your workspace calls them on screen, the API, CLI, MCP and webhooks say person and people. The merges that kept this profile or merged it into another, newest first, done or undone.

`GET /v1/people/{person_id}/merges`. Who may: Owner, Admin, Analyst and Viewer; Developer in test mode. CLI: `kontiga people merges <person_id> [--limit <n>] [--cursor <pmg_...>]`. MCP tool: `list_person_merges`.

**Parameters**
- `person_id` (id (per_), required): The person: the profile kept by a merge, or one merged into another. In the path.
- `limit` (integer): How many to answer, 1 to 200, newest first.
- `cursor` (id (pmg_)): The answer's `next_cursor`, sent back, reads the older ones.

**Returns** list of person merges: The person's merges, newest first.

API:

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

CLI:

```bash
kontiga people merges per_2Nc6Qs8
```

MCP tool `list_person_merges`:

```json
{
  "name": "list_person_merges",
  "arguments": {
    "person_id": "per_2Nc6Qs8"
  }
}
```

TypeScript:

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

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.people.merges("per_2Nc6Qs8");
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.people.merges("per_2Nc6Qs8")
```

Go:

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

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.people().merges("per_2Nc6Qs8");
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.People.MergesAsync("per_2Nc6Qs8");
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // reads KONTIGA_API_KEY
$result = $kontiga->people->merges('per_2Nc6Qs8');
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.people.merges("per_2Nc6Qs8")
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .people()
    .merges("per_2Nc6Qs8".into())
    .await?;
```

Response, 200 OK:

```json
{
  "items": [{
  "id": "pmg_4Wc8Hn1",
  "object": "person_merge",
  "kept_id": "per_2Nc6Qs8",
  "merged_id": "per_9Ld4Tx6",
  "status": "done",
  "moved": [
    { "object": "party", "count": 1 },
    { "object": "document", "count": 2 },
    { "object": "request", "count": 1 }
  ],
  "field_choices": { "birth_date": "kept", "country": "kept", "email": "kept", "marital_status": "kept", "name": "kept", "occupation": "kept", "phone": "merged", "reference": "kept" },
  "merged_identifiers": { "references": ["CUST-60311"], "emails": ["marta.kowalczyk@mailbox.example"], "phones": ["+353874120937"], "external_ids": [{ "namespace": "crm:contact", "value": "51234" }] },
  "merged_by": { "type": "member", "id": "usr_01938c2a5e7b7c41a2f0d3b6e8a91c44", "name": "Ines Moreau" },
  "merged_at": "2026-11-27T10:11:30Z",
  "reason": "The same applicant applied twice under two customer numbers.",
  "undone_by": null,
  "undone_at": null,
  "undo_reason": null,
  "moved_back": []
}],
  "next_cursor": null
}
```

## List a person's identity links

Whatever your workspace calls them on screen, the API, CLI, MCP and webhooks say person and people. The other profiles a passed identity verification ties this person to: the same identity document, personal number or electronic identity verified on both. A link never reuses one profile's checks for the other.

`GET /v1/people/{person_id}/links`. Who may: Owner, Admin, Analyst and Viewer; Developer in test mode. CLI: `kontiga people links <person_id> [--status <active|removed|all>] [--limit <n>] [--cursor <plk_...>]`. MCP tool: `list_person_links`.

**Parameters**
- `person_id` (id (per_), required): The person whose links to list. In the path.
- `status` (enum, default "active"): `active` by default, `removed`, or `all`.
- `limit` (integer): How many to answer, 1 to 200, newest first.
- `cursor` (id (plk_)): The answer's `next_cursor`, sent back, reads the older ones.

**Returns** list of identity links: Each link with the other profile, what it is keyed on (never the value) and the two verifications.

API:

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

CLI:

```bash
kontiga people links per_2Nc6Qs8
```

MCP tool `list_person_links`:

```json
{
  "name": "list_person_links",
  "arguments": {
    "person_id": "per_2Nc6Qs8"
  }
}
```

TypeScript:

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

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.people.links("per_2Nc6Qs8");
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.people.links("per_2Nc6Qs8")
```

Go:

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

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.people().links("per_2Nc6Qs8");
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.People.LinksAsync("per_2Nc6Qs8");
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // reads KONTIGA_API_KEY
$result = $kontiga->people->links('per_2Nc6Qs8');
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.people.links("per_2Nc6Qs8")
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .people()
    .links("per_2Nc6Qs8".into())
    .await?;
```

Response, 200 OK:

```json
{
  "items": [
  {
    "id": "plk_5Tn9Bc3",
    "object": "person_link",
    "person_id": "per_2Nc6Qs8",
    "other": { "id": "per_3Kd7Wm1", "name": "M. Kowalczyk", "reference": "" },
    "key_kind": "document",
    "check_ids": ["idv_3Qx7Ma2", "idv_8Pf2Rz6"],
    "status": "active",
    "created_at": "2026-11-26T09:40:12Z",
    "removed_by": null,
    "removed_reason": null,
    "removed_at": null
  }
],
  "next_cursor": null
}
```

## Remove an identity link

Whatever your workspace calls them on screen, the API, CLI, MCP and webhooks say person and people. Take away a link between two profiles, with a reason. The removal is remembered, so the same key does not link them again.

`POST /v1/people/{person_id}/links/{link_id}/remove`. Who may: Owner, Admin and Analyst; Developer in test mode. CLI: `kontiga people remove-link <person_id> <link_id> --reason <text>`. MCP tool: `remove_person_link`.

**Parameters**
- `person_id` (id (per_), required): One of the two linked people. In the path.
- `link_id` (id (plk_), required): The link to remove. In the path.
- `reason` (string, required): Why, for your team. The same key does not link them again. At most 500 characters.

**Returns** identity link: The link, removed, with who and why.

API:

```bash
curl -X POST https://api.kontiga.com/v1/people/per_2Nc6Qs8/links/plk_5Tn9Bc3/remove \
  -H "Authorization: Bearer $KONTIGA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "reason": "Twins with one passport each, verified the same day."
  }'
```

CLI:

```bash
kontiga people remove-link per_2Nc6Qs8 plk_5Tn9Bc3 \
  --reason 'Twins with one passport each, verified the same day.'
```

MCP tool `remove_person_link`:

```json
{
  "name": "remove_person_link",
  "arguments": {
    "person_id": "per_2Nc6Qs8",
    "link_id": "plk_5Tn9Bc3",
    "reason": "Twins with one passport each, verified the same day."
  }
}
```

TypeScript:

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

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.people.removeLink("per_2Nc6Qs8", "plk_5Tn9Bc3", {
  reason: "Twins with one passport each, verified the same day.",
});
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.people.remove_link(
    "per_2Nc6Qs8",
    "plk_5Tn9Bc3",
    reason="Twins with one passport each, verified the same day.",
)
```

Go:

```go
client := kontiga.NewClient() // reads KONTIGA_API_KEY
result, err := client.People.RemoveLink(ctx, "per_2Nc6Qs8", "plk_5Tn9Bc3", &kontiga.PeopleRemoveLinkParams{
	Reason: "Twins with one passport each, verified the same day.",
})
if err != nil {
	return err
}
```

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.people().removeLink("per_2Nc6Qs8", "plk_5Tn9Bc3", PeopleRemoveLinkParams.builder()
    .reason("Twins with one passport each, verified the same day.")
    .build());
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.People.RemoveLinkAsync("per_2Nc6Qs8", "plk_5Tn9Bc3", new PeopleRemoveLinkOptions
{
    Reason = "Twins with one passport each, verified the same day.",
});
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // reads KONTIGA_API_KEY
$result = $kontiga->people->removeLink('per_2Nc6Qs8', 'plk_5Tn9Bc3', [
    'reason' => 'Twins with one passport each, verified the same day.',
]);
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.people.remove_link(
  "per_2Nc6Qs8",
  "plk_5Tn9Bc3",
  reason: "Twins with one passport each, verified the same day."
)
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .people()
    .remove_link("per_2Nc6Qs8".into(), "plk_5Tn9Bc3".into(), kontiga::people::RemoveLinkParams {
        reason: "Twins with one passport each, verified the same day.".into(),
        ..Default::default()
    })
    .await?;
```

Response, 200 OK:

```json
{
    "id": "plk_5Tn9Bc3",
    "object": "person_link",
    "person_id": "per_2Nc6Qs8",
    "other": { "id": "per_3Kd7Wm1", "name": "M. Kowalczyk", "reference": "" },
    "key_kind": "document",
    "check_ids": ["idv_3Qx7Ma2", "idv_8Pf2Rz6"],
    "status": "removed",
    "created_at": "2026-11-26T09:40:12Z",
    "removed_by": null,
    "removed_reason": null,
    "removed_at": null
  }
```

A merge moves everything of the merged profile to the kept one in one step and records every object it moved, so it can be undone. Two profiles that were parties of one case both stay on it, and the case asks a member to resolve them. Merges into one profile are undone latest first; what was added to the kept profile since stays there unless you name it in `move`. The person is never told of a suggestion, a link or a merge.

What duplicates, merges and links can answer instead

| Status | Code | When |
| --- | --- | --- |
| 409 | `merge_not_allowed` | The two cannot be merged, and nothing changed. `details.reason` says why: `same_profile`, `different_kinds` (a person and a company), `deleting`, `legal_hold`, `already_merged` (merge into the profile it points to), or `too_many_identifiers` (together they hold more than one profile keeps: a primary and 20 others of each kind, 200 in all; remove some old ones first). |
| 409 | `unmerge_not_allowed` | `details.reason`: `already_undone`; `not_latest` (undo the later merges into the profile first); `kept_changed` (the kept profile was merged into another since, or is being deleted); `legal_hold` (one of the two profiles is on legal hold: an owner or an admin clears the hold first); or `conflict`: an identifier of the merged profile now belongs to the person in `details.conflicting_person`. For `not_latest` and `kept_changed`, `details.blocking_merge_id` names the merge to undo first. |
| 409 | `suggestion_closed` | Only an open suggestion can be dismissed. This one was merged or no longer holds. |
| 409 | `person_busy` | Another call is changing one of the two people at this moment. Try again after `Retry-After` (1 second). |
| 400 | `invalid_input` | On `move`: an object the kept profile had before the merge, or one that is not on it, named in the message. Nothing changed. Name only objects added since, as the merge's movable objects list them. On `signal`: a signal sent with a closed `status`. |
| 503 | `unavailable` | The merge or the undo took too long and was stopped. Nothing changed. Try again after `Retry-After`. |
| 404 | `duplicate_suggestion_not_found` | No suggestion with this id in this workspace and mode. |
| 404 | `person_merge_not_found` | No merge with this id in this workspace and mode. |
| 404 | `person_link_not_found` | No identity link with this id on this person. |
| 404 | `person_not_found` | No person with this id in this workspace and mode. A profile of the other mode answers the same: a test key never sees a live profile. |

## Importing, exporting and deleting

An import is read and previewed first: nothing is written until you commit it, and a preview not committed within 7 days is cancelled. An import only adds people and changes their given details and identifiers; it never writes a fact or touches a check. An export holds everything kept about one person. A deletion removes a person and everything of theirs, answers its deletion request at once, and is refused while a legal hold applies.

## Start an import of people

Read a file of people (CSV with a header, or JSON lines, up to 2 MB of text) and preview what an import would do, writing nothing yet: how many rows would add a person, update one, change nothing, match several, clash with another person's identifier, or are invalid; the rows that need attention first, and every column with the field it fills. A row is matched by its reference, or without one by its email or phone, under the same rule as any new person. Commit it to apply, or cancel it.

`POST /v1/people/imports`. Who may: Owner, Admin and Analyst; Developer in test mode. CLI: `kontiga people imports start --file <people.csv> [--format <csv|jsonl>] [--mapping '{"Customer no":"reference"}'] [--mode <create_or_update|create_only|update_only>] [--screen] [--monitor]`. MCP tool: `start_people_import`.

**Parameters**
- `csv` (string, required): The file's text, up to 2 MB. Split a larger file into parts of 2 MB and import each part.
- `format` (enum, default "csv"): `csv` with a header row, or `jsonl`.
- `mapping` (record): Column to field, over the one proposed from the header: a column named as a field, else one under a name files often use for it (`Customer no`, `Full name`, `First name`, `Surname`, `Mobile`, `E-mail`, `Date of birth`). The columns you name take their fields, a column given as `null` is left out, and every other column keeps what was proposed for it, so `{"Segment": "metadata.segment"}` adds one column to the proposal. A column it cannot place is not read, and the answer's `columns` shows it with `field` null. A bad mapping, or a column the file does not have, is refused with one issue a column, its path `mapping.<column>`.
- `mode` (enum, default "create_or_update"): `create_or_update`, `create_only` or `update_only`.
- `screen` (boolean): Screen each imported person. Each screening is charged, so a restricted key needs `screenings:write` for it, and a key with a daily spend cap cannot: `403` `key_scope_denied` on `screen`, before anything is kept.
- `monitor` (boolean): Keep each imported person monitored, with the same rule as `screen`.

**Returns** person import: The import (pim_), previewed: its counts and the first rows with what each would do.

API:

```bash
curl -X POST https://api.kontiga.com/v1/people/imports \
  -H "Authorization: Bearer $KONTIGA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "csv": "name,email,reference\nSaoirse Brennan,saoirse.brennan@mailbox.example,CUST-55201\nMarta Kowalczyk,marta.kowalczyk@mailbox.example,CUST-55120\n,r.quinn@mailbox.example,CUST-55203",
    "mode": "create_or_update"
  }'
```

CLI:

```bash
kontiga people imports start --mode create_or_update
```

MCP tool `start_people_import`:

```json
{
  "name": "start_people_import",
  "arguments": {
    "csv": "name,email,reference\nSaoirse Brennan,saoirse.brennan@mailbox.example,CUST-55201\nMarta Kowalczyk,marta.kowalczyk@mailbox.example,CUST-55120\n,r.quinn@mailbox.example,CUST-55203",
    "mode": "create_or_update"
  }
}
```

TypeScript:

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

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.personImports.create({
  mode: "create_or_update",
});
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.person_imports.create(mode="create_or_update")
```

Go:

```go
client := kontiga.NewClient() // reads KONTIGA_API_KEY
result, err := client.PersonImports.Create(ctx, &kontiga.PersonImportsCreateParams{
	Mode: "create_or_update",
})
if err != nil {
	return err
}
```

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.personImports().create(PersonImportsCreateParams.builder()
    .mode("create_or_update")
    .build());
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.PersonImports.CreateAsync(new PersonImportsCreateOptions
{
    Mode = "create_or_update",
});
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // reads KONTIGA_API_KEY
$result = $kontiga->personImports->create([
    'mode' => 'create_or_update',
]);
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.person_imports.create(mode: "create_or_update")
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .person_imports()
    .create(kontiga::person_imports::CreateParams {
        mode: "create_or_update".into(),
        ..Default::default()
    })
    .await?;
```

Response, 201 Created:

```json
{
  "id": "pim_3Vk8Ld2",
  "object": "person_import",
  "state": "previewed",
  "format": "csv",
  "mode": "create_or_update",
  "mapping": {
    "name": "name",
    "email": "email",
    "reference": "reference"
  },
  "upload_id": null,
  "screen": false,
  "monitor": false,
  "counts": {
    "rows": 3,
    "create": 1,
    "update": 1,
    "unchanged": 0,
    "ambiguous": 0,
    "conflict": 0,
    "invalid": 1
  },
  "progress": null,
  "rows_done": 0,
  "resumable": false,
  "resumable_until": null,
  "rows": [
    {
      "row": 2,
      "outcome": "create",
      "person_id": null,
      "problem": null
    },
    {
      "row": 3,
      "outcome": "update",
      "person_id": "per_2Nc6Qs8",
      "problem": null
    },
    {
      "row": 4,
      "outcome": "invalid",
      "person_id": null,
      "problem": "The email is not a valid address."
    }
  ],
  "report_url": null,
  "created_by": "Ines Moreau",
  "created_at": "2026-11-27T10:30:00Z",
  "committed_at": null,
  "completed_at": null,
  "cancelled_at": null
}
```

## List imports of people

The workspace's imports of people, newest first, each with its state, counts and row report, kept 30 days after they end. Filter by state. Each item leaves out the file's columns, the mapping and the rows: read one import for them.

`GET /v1/people/imports`. Who may: Owner, Admin, Analyst and Viewer; Developer in test mode. CLI: `kontiga people imports list [--state <previewing|previewed|committing|completed|failed|cancelled>] [--limit <n>] [--cursor <pim_...>]`. MCP tool: `list_people_imports`.

**Parameters**
- `state` (enum): Only the imports in this state (`status` is still taken, its first name). One of `previewing`, `previewed`, `committing`, `completed`, `failed`, `cancelled`.
- `limit` (integer): How many a page, up to 100 (20 when left out).
- `cursor` (id (pim_)): The `next_cursor` of the page before, for older imports.

**Returns** list of imports of people: The imports, newest first, a page at a time.

API:

```bash
curl -X GET "https://api.kontiga.com/v1/people/imports?state=completed&limit=20" \
  -H "Authorization: Bearer $KONTIGA_API_KEY"
```

CLI:

```bash
kontiga people imports list --state completed --limit 20
```

MCP tool `list_people_imports`:

```json
{
  "name": "list_people_imports",
  "arguments": {
    "state": "completed",
    "limit": 20
  }
}
```

TypeScript:

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

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.personImports.list({
  state: "completed",
  limit: 20,
});
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.person_imports.list(state="completed", limit=20)
```

Go:

```go
client := kontiga.NewClient() // reads KONTIGA_API_KEY
result, err := client.PersonImports.List(ctx, &kontiga.PersonImportsListParams{
	State: "completed",
	Limit: 20,
})
if err != nil {
	return err
}
```

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.personImports().list(PersonImportsListParams.builder()
    .state("completed")
    .limit(20)
    .build());
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.PersonImports.ListAsync(new PersonImportsListOptions
{
    State = "completed",
    Limit = 20,
});
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // reads KONTIGA_API_KEY
$result = $kontiga->personImports->list([
    'state' => 'completed',
    'limit' => 20,
]);
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.person_imports.list(state: "completed", limit: 20)
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .person_imports()
    .list(kontiga::person_imports::ListParams {
        state: "completed".into(),
        limit: 20,
        ..Default::default()
    })
    .await?;
```

Response, 200 OK:

```json
{
  "object": "list",
  "items": [
    {
      "id": "pim_3Vk8Ld2",
      "object": "person_import",
      "state": "completed",
      "format": "csv",
      "mode": "create_or_update",
      "mapping": {
        "name": "name",
        "email": "email",
        "reference": "reference"
      },
      "upload_id": null,
      "screen": false,
      "monitor": false,
      "counts": {
        "rows": 3,
        "create": 1,
        "update": 1,
        "unchanged": 0,
        "ambiguous": 0,
        "conflict": 0,
        "invalid": 1
      },
      "progress": {
        "rows_done": 3,
        "create": 1,
        "update": 1,
        "unchanged": 0,
        "ambiguous": 0,
        "conflict": 0,
        "invalid": 1
      },
      "rows_done": 3,
      "resumable": false,
      "resumable_until": null,
      "rows": [
        {
          "row": 2,
          "outcome": "create",
          "person_id": null,
          "problem": null
        },
        {
          "row": 3,
          "outcome": "update",
          "person_id": "per_2Nc6Qs8",
          "problem": null
        },
        {
          "row": 4,
          "outcome": "invalid",
          "person_id": null,
          "problem": "The email is not a valid address."
        }
      ],
      "report_url": null,
      "created_by": "Ines Moreau",
      "created_at": "2026-11-27T10:30:00Z",
      "committed_at": "2026-11-27T10:31:12Z",
      "completed_at": "2026-11-27T10:31:14Z",
      "cancelled_at": null
    }
  ],
  "next_cursor": null
}
```

## Read an import of people

Where an import stands: previewing, previewed, committing, completed, failed (with why, and whether committing it again resumes) or cancelled (a commit stopped by a cancel resumes for 7 days), with the preview's counts, the commit's progress and a link to the row report.

`GET /v1/people/imports/{import_id}`. Who may: Owner, Admin, Analyst and Viewer; Developer in test mode. CLI: `kontiga people imports get <import_id>`. MCP tool: `get_people_import`.

**Parameters**
- `import_id` (id (pim_), required): The import to read. In the path.

**Returns** person import: The import with its state, counts and row report.

API:

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

CLI:

```bash
kontiga people imports get pim_3Vk8Ld2
```

MCP tool `get_people_import`:

```json
{
  "name": "get_people_import",
  "arguments": {
    "import_id": "pim_3Vk8Ld2"
  }
}
```

TypeScript:

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

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

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.person_imports.get("pim_3Vk8Ld2")
```

Go:

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

Java:

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

.NET:

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

PHP:

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

Ruby:

```ruby
require "kontiga"

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

Rust:

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

Response, 200 OK:

```json
{
  "id": "pim_3Vk8Ld2",
  "object": "person_import",
  "state": "committing",
  "format": "csv",
  "mode": "create_or_update",
  "mapping": {
    "name": "name",
    "email": "email",
    "reference": "reference"
  },
  "upload_id": null,
  "screen": false,
  "monitor": false,
  "counts": {
    "rows": 3,
    "create": 1,
    "update": 1,
    "unchanged": 0,
    "ambiguous": 0,
    "conflict": 0,
    "invalid": 1
  },
  "progress": {
    "rows_done": 2,
    "create": 1,
    "update": 1,
    "unchanged": 0,
    "ambiguous": 0,
    "conflict": 0,
    "invalid": 0
  },
  "rows_done": 2,
  "resumable": false,
  "resumable_until": null,
  "rows": [
    {
      "row": 2,
      "outcome": "create",
      "person_id": null,
      "problem": null
    },
    {
      "row": 3,
      "outcome": "update",
      "person_id": "per_2Nc6Qs8",
      "problem": null
    },
    {
      "row": 4,
      "outcome": "invalid",
      "person_id": null,
      "problem": "The email is not a valid address."
    }
  ],
  "report_url": null,
  "created_by": "Ines Moreau",
  "created_at": "2026-11-27T10:30:00Z",
  "committed_at": "2026-11-27T10:31:12Z",
  "completed_at": null,
  "cancelled_at": null
}
```

## Commit an import of people

Apply a previewed import in file order. An import only adds people and their given details and identifiers: it never writes a fact, never touches a check and an empty cell changes nothing. A failed import, or one a cancel stopped while it was being committed (for 7 days), resumes from the next row when committed again.

`POST /v1/people/imports/{import_id}/commit`. Who may: Owner, Admin and Analyst; Developer in test mode. CLI: `kontiga people imports commit <import_id>`. MCP tool: `commit_people_import`.

**Parameters**
- `import_id` (id (pim_), required): A previewed import, a failed one to resume, or one a cancel stopped while it was being committed (`resumable` true, for 7 days). In the path.

**Returns** person import: The import, committing, then completed with what each row did.

API:

```bash
curl -X POST https://api.kontiga.com/v1/people/imports/pim_3Vk8Ld2/commit \
  -H "Authorization: Bearer $KONTIGA_API_KEY"
```

CLI:

```bash
kontiga people imports commit pim_3Vk8Ld2
```

MCP tool `commit_people_import`:

```json
{
  "name": "commit_people_import",
  "arguments": {
    "import_id": "pim_3Vk8Ld2"
  }
}
```

TypeScript:

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

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.personImports.commit("pim_3Vk8Ld2");
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.person_imports.commit("pim_3Vk8Ld2")
```

Go:

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

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.personImports().commit("pim_3Vk8Ld2");
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.PersonImports.CommitAsync("pim_3Vk8Ld2");
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // reads KONTIGA_API_KEY
$result = $kontiga->personImports->commit('pim_3Vk8Ld2');
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.person_imports.commit("pim_3Vk8Ld2")
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .person_imports()
    .commit("pim_3Vk8Ld2".into())
    .await?;
```

Response, 200 OK:

```json
{
  "id": "pim_3Vk8Ld2",
  "object": "person_import",
  "state": "completed",
  "format": "csv",
  "mode": "create_or_update",
  "mapping": {
    "name": "name",
    "email": "email",
    "reference": "reference"
  },
  "upload_id": null,
  "screen": false,
  "monitor": false,
  "counts": {
    "rows": 3,
    "create": 1,
    "update": 1,
    "unchanged": 0,
    "ambiguous": 0,
    "conflict": 0,
    "invalid": 1
  },
  "progress": {
    "rows_done": 3,
    "create": 1,
    "update": 1,
    "unchanged": 0,
    "ambiguous": 0,
    "conflict": 0,
    "invalid": 1
  },
  "rows_done": 3,
  "resumable": false,
  "resumable_until": null,
  "rows": [
    {
      "row": 2,
      "outcome": "create",
      "person_id": null,
      "problem": null
    },
    {
      "row": 3,
      "outcome": "update",
      "person_id": "per_2Nc6Qs8",
      "problem": null
    },
    {
      "row": 4,
      "outcome": "invalid",
      "person_id": null,
      "problem": "The email is not a valid address."
    }
  ],
  "report_url": "https://files.kontiga.com/people-imports/pim_3Vk8Ld2/report.csv",
  "created_by": "Ines Moreau",
  "created_at": "2026-11-27T10:30:00Z",
  "committed_at": "2026-11-27T10:31:12Z",
  "completed_at": "2026-11-27T10:31:14Z",
  "cancelled_at": null
}
```

## Cancel an import of people

Drop a previewed import without applying any row, or stop an import being committed between two batches: the rows done stay done, the row report lists them, and committing it again within 7 days imports the rest. An import not committed within 7 days is cancelled on its own.

`POST /v1/people/imports/{import_id}/cancel`. Who may: Owner, Admin and Analyst; Developer in test mode. CLI: `kontiga people imports cancel <import_id>`. MCP tool: `cancel_people_import`.

**Parameters**
- `import_id` (id (pim_), required): A previewed import, so none of its rows is applied, or one being committed, stopped between two batches: the rows done stay, its row report lists them, and committing it again within 7 days imports the rest. In the path.

**Returns** person import: The import, cancelled; for a stopped commit, with the rows done and its row report.

API:

```bash
curl -X POST https://api.kontiga.com/v1/people/imports/pim_3Vk8Ld2/cancel \
  -H "Authorization: Bearer $KONTIGA_API_KEY"
```

CLI:

```bash
kontiga people imports cancel pim_3Vk8Ld2
```

MCP tool `cancel_people_import`:

```json
{
  "name": "cancel_people_import",
  "arguments": {
    "import_id": "pim_3Vk8Ld2"
  }
}
```

TypeScript:

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

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.personImports.cancel("pim_3Vk8Ld2");
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.person_imports.cancel("pim_3Vk8Ld2")
```

Go:

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

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.personImports().cancel("pim_3Vk8Ld2");
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.PersonImports.CancelAsync("pim_3Vk8Ld2");
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // reads KONTIGA_API_KEY
$result = $kontiga->personImports->cancel('pim_3Vk8Ld2');
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.person_imports.cancel("pim_3Vk8Ld2")
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .person_imports()
    .cancel("pim_3Vk8Ld2".into())
    .await?;
```

Response, 200 OK:

```json
{
  "id": "pim_3Vk8Ld2",
  "object": "person_import",
  "state": "cancelled",
  "format": "csv",
  "mode": "create_or_update",
  "mapping": {
    "name": "name",
    "email": "email",
    "reference": "reference"
  },
  "upload_id": null,
  "screen": false,
  "monitor": false,
  "counts": {
    "rows": 3,
    "create": 1,
    "update": 1,
    "unchanged": 0,
    "ambiguous": 0,
    "conflict": 0,
    "invalid": 1
  },
  "progress": null,
  "rows_done": 0,
  "resumable": false,
  "resumable_until": null,
  "rows": [
    {
      "row": 2,
      "outcome": "create",
      "person_id": null,
      "problem": null
    },
    {
      "row": 3,
      "outcome": "update",
      "person_id": "per_2Nc6Qs8",
      "problem": null
    },
    {
      "row": 4,
      "outcome": "invalid",
      "person_id": null,
      "problem": "The email is not a valid address."
    }
  ],
  "report_url": null,
  "created_by": "Ines Moreau",
  "created_at": "2026-11-27T10:30:00Z",
  "committed_at": null,
  "completed_at": null,
  "cancelled_at": "2026-11-27T10:40:00Z"
}
```

## Export a person

Whatever your workspace calls them on screen, the API, CLI, MCP and webhooks say person and people. Everything kept about one person as one JSON file: their details and identifiers, facts with their proof, checks, documents with links to their files, requests, notes and timeline. Owners and admins only.

`GET /v1/people/{person_id}/export`. Who may: Owner and Admin. CLI: `kontiga people export <person_id> [--output <person.json>]`. MCP tool: `export_person`.

**Parameters**
- `person_id` (id (per_), required): The person to export. Owners and admins, or a full secret key; the export is on the person's timeline once an hour for each caller. A workspace builds two exports at once: a third answers `429` with `Retry-After`. In the path.

**Returns** person export: The profile in full, with a link to each document's file that works for an hour.

API:

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

CLI:

```bash
kontiga people export per_2Nc6Qs8
```

MCP tool `export_person`:

```json
{
  "name": "export_person",
  "arguments": {
    "person_id": "per_2Nc6Qs8"
  }
}
```

TypeScript:

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

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.people.export("per_2Nc6Qs8");
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.people.export("per_2Nc6Qs8")
```

Go:

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

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.people().export("per_2Nc6Qs8");
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.People.ExportAsync("per_2Nc6Qs8");
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // reads KONTIGA_API_KEY
$result = $kontiga->people->export('per_2Nc6Qs8');
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.people.export("per_2Nc6Qs8")
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .people()
    .export("per_2Nc6Qs8".into())
    .await?;
```

Response, 200 OK:

```json
{
  "object": "person_export",
  "exported_at": "2026-11-27T11:02:18Z",
  "person": { "id": "per_2Nc6Qs8", "name": "Marta Kowalczyk", "email": "marta.kowalczyk@mailbox.example", "reference": "CUST-55120", "legal_hold": false },
  "profile": { "person_id": "per_2Nc6Qs8", "risk_level": "low", "legal_hold": false, "facts": [], "checks": [], "documents": [], "notes": [] },
  "timeline": [],
  "files": [
    { "document_id": "doc_5Wm2Hk7", "title": "Payslip, October 2026", "url": "https://api.kontiga.com/v1/documents/doc_5Wm2Hk7/file", "expires_at": "2026-11-27T12:02:18Z" }
  ],
  "request_ids": ["rqs_4Gt7Uy2"]
}
```

## Delete a person

Whatever your workspace calls them on screen, the API, CLI, MCP and webhooks say person and people. Delete a person and everything of theirs, with a reason: open requests stop, then their sessions, verifications, screenings, documents and files, facts, requests and notes go; a case where they were the only party goes with them, and on a shared case they stay as a deleted person. Refused while the person is on legal hold. Owners and admins only.

`DELETE /v1/people/{person_id}`. Who may: Owner and Admin. CLI: `kontiga people delete <person_id> --reason <text>`. MCP tool: `delete_person`.

**Parameters**
- `person_id` (id (per_), required): The person to delete. In the path.
- `reason` (string, required): Why, in the JSON body (`{"reason": "..."}`), never in the address: a URL is kept by logs that outlive the deletion. It is kept until the deletion completes; the record of the deletion keeps who asked, when and what went, and no personal data. At most 500 characters.

**Returns** deletion: The deletion request (del_), pending until every step and every copy of the files is done, with the reason, what went and what is still there by kind; failed when files could not be removed for 24 hours.

API:

```bash
curl -X DELETE https://api.kontiga.com/v1/people/per_9Ld4Tx6 \
  -H "Authorization: Bearer $KONTIGA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "reason": "Asked to be forgotten on 26 November."
  }'
```

CLI:

```bash
kontiga people delete per_9Ld4Tx6 \
  --reason 'Asked to be forgotten on 26 November.'
```

MCP tool `delete_person`:

```json
{
  "name": "delete_person",
  "arguments": {
    "person_id": "per_9Ld4Tx6",
    "reason": "Asked to be forgotten on 26 November."
  }
}
```

TypeScript:

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

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.people.delete("per_9Ld4Tx6", {
  reason: "Asked to be forgotten on 26 November.",
});
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.people.delete("per_9Ld4Tx6", reason="Asked to be forgotten on 26 November.")
```

Go:

```go
client := kontiga.NewClient() // reads KONTIGA_API_KEY
result, err := client.People.Delete(ctx, "per_9Ld4Tx6", &kontiga.PeopleDeleteParams{
	Reason: "Asked to be forgotten on 26 November.",
})
if err != nil {
	return err
}
```

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.people().delete("per_9Ld4Tx6", PeopleDeleteParams.builder()
    .reason("Asked to be forgotten on 26 November.")
    .build());
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.People.DeleteAsync("per_9Ld4Tx6", new PeopleDeleteOptions
{
    Reason = "Asked to be forgotten on 26 November.",
});
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // reads KONTIGA_API_KEY
$result = $kontiga->people->delete('per_9Ld4Tx6', [
    'reason' => 'Asked to be forgotten on 26 November.',
]);
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.people.delete("per_9Ld4Tx6", reason: "Asked to be forgotten on 26 November.")
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .people()
    .delete("per_9Ld4Tx6".into(), kontiga::people::DeleteParams {
        reason: "Asked to be forgotten on 26 November.".into(),
        ..Default::default()
    })
    .await?;
```

Response, 202 Accepted:

```json
{
  "id": "del_6Bx2Qn7",
  "object": "deletion",
  "subject": { "object": "person", "id": "per_9Ld4Tx6" },
  "state": "pending",
  "requested_at": "2026-11-27T11:20:00Z",
  "requested_by": { "kind": "member", "name": "Ines Moreau" },
  "completed_at": null,
  "reason": "Asked to be forgotten on 26 November.",
  "removed": { "requests": 1 },
  "not_removed": {},
  "deleted": [
    "Their open requests, cancelled now",
    "Their sessions, identity verifications and screenings",
    "Their documents and every copy of the files",
    "Their facts, requests, notes and timeline",
    "A case where they were the only party",
    "Their profile and identifiers"
  ],
  "kept": [
    "On a case with other parties, the party as a deleted person with its role and dates",
    "What Kontiga learned from their documents, leading back to no one",
    "The record of this deletion"
  ]
}
```

A file is CSV in UTF-8 with a header row, its separator a comma, a semicolon or a tab, or JSON lines with one object a line: 50,000 rows and 20 MB at most, 2 MB when sent as `csv` text, five imports being read or applied at once in a workspace and twenty previewed and waiting. A column maps to `reference`, `email`, `phone`, `name`, `given_name`, `family_name`, `kind`, `locale`, `risk_level`, `birth_date`, `country`, `metadata.<key>` or `external_id.<namespace>`, and `columns` lists every column of the file with the field it fills; an empty cell changes nothing, and metadata keys are added to the person's. Each row finds its person the way adding one does: by the reference, then an external id, then the email, then the phone, never by a name. The preview counts what each row would do: `create`, `update`, `unchanged`, `ambiguous` (more than one person holds its email or phone), `conflict` (an identifier of the row belongs to another person; the row is left out and the two are suggested as duplicates) and `invalid` (the row's `problem` says why; a row with no name, reference, email or phone names no one and is invalid). Each column name is at most 120 characters on one line, and a header holds at most 64 KB of names. `counts` stays what the preview found; once committed, `progress` counts what the commit has done (`rows_done` and each outcome). `rows` shows up to 50 rows, those that need attention first, then the others, each in file order; the row report has every row. The commit applies the rows in file order, each once, and gives the preview's counts unless People changed in between; a lost connection is tried again on its own. An import that cannot go on stops: it is `failed`, `failure` says why (`stuck` when it made no progress for a while), and committing it again within 7 days imports the rest from its next row. Cancel stops a commit between two batches; the rows done stay, `resumable` is true, and committing it again within 7 days (`resumable_until`) imports the rest from its next row. A one-call dry run keeps nothing and never counts among the imports; a stopped import that can be resumed counts among the twenty waiting. Test and live count apart. A workspace starts at most 500 imports a day in each mode; past that the call answers `429` with `Retry-After`. Imports are listed for 30 days after they end; each list item leaves out the file's `columns`, the `mapping` and the `rows`, which reading one import gives. The row report, one line a row with its outcome, the person and any problem, is kept 30 days after the import ends; `report_url` is a link to it that works for an hour, so read the import again for a fresh one (a link already given keeps working for its hour, also after a cancel). `person_import.completed` fires once the last row is applied, and `person_import.failed` when an import stops with its failure. A workspace reads two files sent as text at once (a file of 64 KB or less is read at once); past that the call answers `429` with `Retry-After`.

A deletion stops the person's open requests at once, so their links stop working, and takes them out of search and matching. Then their sessions, identity verifications, screenings, documents with every copy of the files, facts, requests, notes and timeline go, in that order; a case where they were the only party goes with them, and on a case with other parties they stay as a deleted person with their role and dates. The deletion request stays pending until every step and every file is done, and shows the reason, what went (`removed`) and what is still there (`not_removed`), each counted by kind: `profile`, `identifiers`, `timeline_entries`, `notes`, `facts`, `documents`, `files`, `requests`, `cases`, `sessions`, `verifications`, `screenings`, `links` and `other`; [reading it](https://kontiga.com/docs/deletions#read-a-deletion-request) answers the same object the delete did, and once completed `deleted` lists only what they had; files a storage bucket refuses are tried again for 24 hours, after which it is `failed` until it is asked again. `person.deleted` then carries the person's id, the deletion's id and when it completed, nothing else. A person with no activity for the workspace's retention period (90 days by default) is deleted the same way, but never while on legal hold, a party to a case, or monitored.

What importing, exporting and deleting can answer instead

| Status | Code | When |
| --- | --- | --- |
| 409 | `person_on_hold` | The person is on legal hold. An owner or admin lifts the hold first. |
| 409 | `person_merged` | The profile was merged into the one in `details.merged_into`, and goes when that one is deleted. |
| 409 | `import_state` | The import is not in a state the call takes: commit a previewed import (or a failed one to resume), cancel one not yet committed. |
| 409 | `imports_running` | Five imports are being read or applied in this mode of the workspace, or twenty are previewed, or stopped and resumable, and waiting. `details.mode` says which mode: test and live count apart. Start this one when one has ended, or commit or cancel one. |
| 429 | `rate_limited` | The workspace is reading as many files of people as it may at once (`details.reason` is `imports_busy`), or started 500 imports in this mode in the last 24 hours (`details.reason` is `daily_import_limit`, with `details.mode`). Try again after `Retry-After` seconds. |
| 403 | `key_scope_denied` | On `screen`: the key may not screen (a restricted key without `screenings:write`, or a key with a daily spend cap). Import without `screen` and `monitor`, or use such a key. |
| 400 | `invalid_input` | On `reason`: a deletion's reason sent in the address. Send it in the JSON body. |
| 413 | `import_too_large` | Over 50,000 rows or 20 MB a file, or 2 MB as text (5,000 rows for the one-call import). Split the file into parts and import each part. |
| 409 | `fact_revoked` | The fact is already revoked. |
| 404 | `fact_not_found` | No fact with this id on this person. |
| 404 | `import_not_found` | No import with this id in this workspace and mode. |
| 404 | `deletion_not_found` | No deletion request of a person with this id in this workspace and mode. |
| 404 | `person_not_found` | No person with this id in this workspace and mode. |

## People events

Webhooks and the realtime channel carry these, each named `object.what_happened`: `person.created`, `person.updated`, `person.merged`, `person.unmerged`, `person.linked`, `person.unlinked`, `person.duplicate_suggested`, `person.fact_verified`, `person.fact_revoked`, `person.renewal_window_entered`, `person.validity_ended`, `person.deleted` (ids only) and `person_import.completed`. List them all with [the event types](https://kontiga.com/docs/webhooks).

Every `person.*` event carries a person as `data.object`. `person.merged` carries the person kept, with `merged_id` and `merge_id`; `person.unmerged` the person kept, with `restored` (the profile that is its own again) and `merge_id`. `person.linked` and `person.unlinked` carry the `link` beside the person, its key's kind and never the key. `person.duplicate_suggested` carries the `suggestion` beside the person, once each time it opens or reopens.
