# Field sets

> 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/field-sets

The values Kontiga reads from each type of document with no setup: a standard field set per document type, with the common fields every document gets, and starter lists of your own fields for documents outside Kontiga's types. Read them before you send a file to know what comes back. No key is needed.

Updated November 30, 2026

## The field set object

- `key` (string): The set's key, such as `payslip` or `bank_statement`. `common` is read on every document.
- `version` (integer): A new version may add fields; it never renames or removes one.
- `name` (string): The set's name as members see it.
- `document_types` (array): The document types it is read for; empty for the common set.
- `fields` (array): Each field: its `key`, `name`, `type` (text, name, address, date, money, number, integer, percent, boolean, country, currency, identifier, iban, email or phone), whether it holds several values, and whether it is a key field, one a document of the type normally shows.
- `tables` (array): The tables read row by row, such as a statement's transactions or an invoice's line items, each with its columns.

## List the field sets

Every standard field set: the fields Kontiga reads for each document type with no setup, with their kinds and the key fields, and the common set every document gets.

`GET /v1/field_sets`. Who may: Anyone, with no account yet. CLI: `kontiga field-sets list`. MCP tool: `list_field_sets`.

**Parameters**

**Returns** list of field sets: Every field set with its version, document types and fields.

API:

```bash
curl -X GET https://api.kontiga.com/v1/field_sets
```

CLI:

```bash
kontiga field-sets list
```

MCP tool `list_field_sets`:

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

TypeScript:

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

const kontiga = new Kontiga(); // no key needed
const result = await kontiga.fieldSets.list();
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # no key needed
result = kontiga.field_sets.list()
```

Go:

```go
client := kontiga.NewClient() // no key needed
result, err := client.FieldSets.List(ctx)
if err != nil {
	return err
}
```

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // no key needed
var result = kontiga.fieldSets().list();
```

.NET:

```csharp
var kontiga = new KontigaClient(); // no key needed
var result = await kontiga.FieldSets.ListAsync();
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // no key needed
$result = $kontiga->fieldSets->list();
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # no key needed
result = kontiga.field_sets.list
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // no key needed
let result = kontiga
    .field_sets()
    .list()
    .await?;
```

Response, 200 OK:

```json
{
  "object": "list",
  "items": [
    {
      "key": "payslip",
      "object": "field_set",
      "version": 1,
      "name": "Payslip",
      "document_types": ["payslip"],
      "fields": [
        {
          "key": "issuer_name",
          "name": "Employer",
          "type": "name",
          "multiple": false,
          "key_field": true
        },
        {
          "key": "issuer_address",
          "name": "Issuer address",
          "type": "address",
          "multiple": false,
          "key_field": false
        },
        {
          "key": "pay_date",
          "name": "Pay date",
          "type": "date",
          "multiple": false,
          "key_field": true
        },
        {
          "key": "net_pay",
          "name": "Net pay",
          "type": "money",
          "multiple": false,
          "key_field": true
        }
      ],
      "tables": [
        {
          "key": "earnings",
          "name": "Earnings",
          "columns": [
            {
              "key": "description",
              "type": "text"
            },
            { "key": "hours", "type": "number" },
            { "key": "rate", "type": "money" },
            { "key": "amount", "type": "money" },
            {
              "key": "amount_ytd",
              "type": "money"
            }
          ]
        }
      ]
    }
  ],
  "has_more": false,
  "next_cursor": null,
  "document_types": {
    "payslip": "payslip",
    "bank_statements": "bank_statement",
    "invoice": "invoice",
    "letter": "common"
  }
}
```

`document_types` maps every document type to the set read for it. Each answer carries an `ETag`: send it back in `If-None-Match` and an unchanged list answers `304 Not Modified`.

## Read a field set

One standard field set by its key: its version, the document types it is read for and its fields.

`GET /v1/field_sets/{field_set}`. Who may: Anyone, with no account yet. CLI: `kontiga field-sets get <field_set>`. MCP tool: `get_field_set`.

**Parameters**
- `field_set` (string, required): The set's key, as `field_sets.list` gives it. In the path.

**Returns** field set: The field set with its version, document types and fields.

API:

```bash
curl -X GET https://api.kontiga.com/v1/field_sets/payslip
```

CLI:

```bash
kontiga field-sets get payslip
```

MCP tool `get_field_set`:

```json
{
  "name": "get_field_set",
  "arguments": {
    "field_set": "payslip"
  }
}
```

TypeScript:

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

const kontiga = new Kontiga(); // no key needed
const result = await kontiga.fieldSets.get("payslip");
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # no key needed
result = kontiga.field_sets.get("payslip")
```

Go:

```go
client := kontiga.NewClient() // no key needed
result, err := client.FieldSets.Get(ctx, "payslip")
if err != nil {
	return err
}
```

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // no key needed
var result = kontiga.fieldSets().get("payslip");
```

.NET:

```csharp
var kontiga = new KontigaClient(); // no key needed
var result = await kontiga.FieldSets.GetAsync("payslip");
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // no key needed
$result = $kontiga->fieldSets->get('payslip');
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # no key needed
result = kontiga.field_sets.get("payslip")
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // no key needed
let result = kontiga
    .field_sets()
    .get("payslip".into())
    .await?;
```

Response, 200 OK:

```json
{
  "key": "payslip",
  "object": "field_set",
  "version": 1,
  "name": "Payslip",
  "document_types": ["payslip"],
  "fields": [
    {
      "key": "issuer_name",
      "name": "Employer",
      "type": "name",
      "multiple": false,
      "key_field": true
    },
    {
      "key": "issuer_address",
      "name": "Issuer address",
      "type": "address",
      "multiple": false,
      "key_field": false
    },
    {
      "key": "pay_date",
      "name": "Pay date",
      "type": "date",
      "multiple": false,
      "key_field": true
    },
    {
      "key": "net_pay",
      "name": "Net pay",
      "type": "money",
      "multiple": false,
      "key_field": true
    }
  ],
  "tables": [
    {
      "key": "earnings",
      "name": "Earnings",
      "columns": [
        { "key": "description", "type": "text" },
        { "key": "hours", "type": "number" },
        { "key": "rate", "type": "money" },
        { "key": "amount", "type": "money" },
        { "key": "amount_ytd", "type": "money" }
      ]
    }
  ]
}
```

## List the field templates

The starter lists of custom fields for documents outside Kontiga's types, to pick and edit when asking for one.

`GET /v1/field_templates`. Who may: Anyone, with no account yet. CLI: `kontiga field-templates list`. MCP tool: `list_field_templates`.

**Parameters**

**Returns** list of field templates: Every starter list, with its fields and their kinds.

API:

```bash
curl -X GET https://api.kontiga.com/v1/field_templates
```

CLI:

```bash
kontiga field-templates list
```

MCP tool `list_field_templates`:

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

TypeScript:

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

const kontiga = new Kontiga(); // no key needed
const result = await kontiga.fieldTemplates.list();
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # no key needed
result = kontiga.field_templates.list()
```

Go:

```go
client := kontiga.NewClient() // no key needed
result, err := client.FieldTemplates.List(ctx)
if err != nil {
	return err
}
```

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // no key needed
var result = kontiga.fieldTemplates().list();
```

.NET:

```csharp
var kontiga = new KontigaClient(); // no key needed
var result = await kontiga.FieldTemplates.ListAsync();
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // no key needed
$result = $kontiga->fieldTemplates->list();
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # no key needed
result = kontiga.field_templates.list
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // no key needed
let result = kontiga
    .field_templates()
    .list()
    .await?;
```

Response, 200 OK:

```json
{
  "object": "list",
  "items": [
    {
      "key": "utility_bill",
      "object": "field_template",
      "name": "Utility bill",
      "fields": [
        {
          "name": "supplier_account_number",
          "type": "identifier"
        },
        {
          "name": "service_address",
          "type": "address"
        },
        {
          "name": "billing_period_start",
          "type": "date"
        },
        {
          "name": "billing_period_end",
          "type": "date"
        },
        { "name": "amount_due", "type": "money" },
        { "name": "due_date", "type": "date" },
        {
          "name": "meter_number",
          "type": "identifier"
        }
      ]
    }
  ],
  "has_more": false,
  "next_cursor": null
}
```

A starter list is a list of your own fields, never a document type: pick one when you ask for a document outside Kontiga's types, keep, edit or remove its fields, and the common fields are read as well.
