# Fields

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

The values read from a document, such as the employer, the net pay, the pay date or a closing balance. Each value says how sure the reading is and keeps the value as first read. A member can correct a value; the original reading and every correction stay, and the checks that use it run again.

Updated November 30, 2026

## The field object

- `document_id` (string): The document it was read from.
- `field` (string): The field's key, such as `net_pay` or `pay_date`; one of your own fields as `custom.<name>`.
- `name` (string): The field's name as members see it.
- `type` (string): What it holds: text, name, address, date, money, number, integer, percent, boolean, country, currency, identifier, iban, email or phone.
- `value` (string): The value now, as one line of text: the reading, or the latest correction. Amounts are written with a dot, dates as `yyyy-mm-dd`. Null when it is not on the document.
- `typed_value` (any): The same value as its type: an amount as `{amount, currency}` with the amount a decimal string, a date as `yyyy-mm-dd`.
- `original` (string): The value as first read, before any correction.
- `printed` (string): The text as printed on the page, kept beside the value.
- `source` (string): Where the value comes from: `profile`, `reader`, `id_reader`, `barcode`, `words` or `correction`.
- `confidence` (number): How clearly the printed text was recognised, from 0 to 1; null when the value was not found on the page.
- `level` (string): `high`, `medium` or `low`: how much to trust the reading at a glance.
- `location` (array): Where it is printed: each place a page (from 1) and a box `[x1, y1, x2, y2]` from 0 to 1000 of the page's width and height.
- `review` (array): Why a person should look, such as `not_located`, `low_recognition`, `ambiguous_date`, `currency_unknown` or `page_not_read`. Empty when nothing needs a look.
- `alternatives` (array): Another reading of the document that gives another value, with where it comes from.
- `corrected` (boolean): Whether a correction is in force.
- `pending` (object): A correction waiting for a second member to confirm it, when the workspace asks for one; null otherwise.
- `history` (array): Oldest first: each earlier reading that gave another value and each correction, with the value, who made it, when and their note.

The extraction holds the document's fields in its field set's order, then your own fields; its `tables`, such as a statement's transactions; the `checks` run on the values, each passed, failed or skipped with its reason; and the `findings` a failed check raised, each with its proof in plain words. Its `state` is `reading`, `read`, `partial` (some pages or fields could not be read), `failed` or `not_read`. A live document of a workspace on the free start shows its values once a plan starts: until then the lists are empty and `details_locked` says why.

## Read the values of a document

Every value read from a document, with its confidence, the value as first read, and each correction with who made it and when.

`GET /v1/documents/{document_id}/extraction`. Who may: Owner, Admin, Analyst and Viewer; Developer in test mode. CLI: `kontiga documents fields <document_id>`. MCP tool: `get_document_fields`.

**Parameters**
- `document_id` (id (doc_), required): The document whose values to read. In the path.

**Returns** extraction: The document's values, each with its reading and its history.

API:

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

CLI:

```bash
kontiga documents fields doc_4Fp8Ns2
```

MCP tool `get_document_fields`:

```json
{
  "name": "get_document_fields",
  "arguments": {
    "document_id": "doc_4Fp8Ns2"
  }
}
```

TypeScript:

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

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

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.fields.list("doc_4Fp8Ns2")
```

Go:

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

Java:

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

.NET:

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

PHP:

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

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.fields.list("doc_4Fp8Ns2")
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .fields()
    .list("doc_4Fp8Ns2".into())
    .await?;
```

Response, 200 OK:

```json
{
  "object": "extraction",
  "document_id": "doc_4Fp8Ns2",
  "mode": "live",
  "state": "read",
  "reading_version": 1,
  "document_type": "payslip",
  "field_set": { "key": "payslip", "version": 1 },
  "pages_total": 1,
  "pages_read": 1,
  "read_at": "2026-11-25T09:40:02Z",
  "fields": [
    {
      "document_id": "doc_4Fp8Ns2",
      "field": "issuer_name",
      "name": "Employer",
      "type": "name",
      "multiple": false,
      "value": "Corrib Freight Ltd",
      "typed_value": "Corrib Freight Ltd",
      "original": "Corrib Freight Ltd",
      "printed": "CORRIB FREIGHT LTD",
      "source": "profile",
      "confidence": 0.99,
      "level": "high",
      "location": [
        { "page": 1, "box": [62, 41, 318, 58] }
      ],
      "review": [],
      "alternatives": [],
      "corrected": false,
      "pending": null,
      "history": []
    },
    {
      "document_id": "doc_4Fp8Ns2",
      "field": "net_pay",
      "name": "Net pay",
      "type": "money",
      "multiple": false,
      "value": "3412.60",
      "typed_value": {
        "amount": "3412.60",
        "currency": "EUR"
      },
      "original": "3412.80",
      "printed": "3 412,80",
      "source": "correction",
      "confidence": 0.71,
      "level": "medium",
      "location": [
        { "page": 1, "box": [702, 640, 811, 657] }
      ],
      "review": [],
      "alternatives": [],
      "corrected": true,
      "pending": null,
      "history": [
        {
          "kind": "correction",
          "action": "set",
          "value": "3412.60",
          "from": "3412.80",
          "to": "3412.60",
          "by": "Tomas Lindqvist",
          "actor": {
            "kind": "member",
            "id": "mem_6Tb1Nf8",
            "name": "Tomas Lindqvist"
          },
          "at": "2026-11-25T09:48:16Z",
          "note": "The last digit is smudged on the scan; the bank statement shows 3,412.60.",
          "state": "in_force"
        }
      ]
    }
  ],
  "tables": [],
  "checks": [
    {
      "rule": "W10",
      "key": "payslip_net_pay",
      "state": "passed"
    }
  ],
  "findings": [
    {
      "tag": "trust.extract.payslip_arithmetic_holds",
      "kind": "positive",
      "title": "Payslip adds up",
      "description": "The payslip's amounts add up.",
      "rule": "W10",
      "proof": null
    }
  ],
  "custom_fields": []
}
```

## Correct a value

Change a value read from a document. The original reading, who changed it and when are kept, and the checks run again.

`PATCH /v1/documents/{document_id}/fields/{field}`. Who may: Owner, Admin and Analyst; Developer in test mode. CLI: `kontiga documents correct-field <document_id> <field> --value <value> [--note <text>]`. MCP tool: `correct_field`.

**Parameters**
- `document_id` (id (doc_), required): The document the value was read from. In the path.
- `field` (string, required): The field's key, as `fields.list` gives it. In the path.
- `value` (string, required): The right value, written as the field writes it. Give `not_present: true` instead when it is not on the document, or `restore: true` to go back to the reading. At most 500 characters.
- `note` (string): Why, for the team. It stays in the field's history. A workspace may ask for one on every correction. At most 500 characters.

**Returns** field: The field with its new value and its history.

API:

```bash
curl -X PATCH https://api.kontiga.com/v1/documents/doc_4Fp8Ns2/fields/net_pay \
  -H "Authorization: Bearer $KONTIGA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "value": "3412.60",
    "note": "The last digit is smudged on the scan; the bank statement shows 3,412.60."
  }'
```

CLI:

```bash
kontiga documents correct-field doc_4Fp8Ns2 net_pay \
  --value 3412.60 \
  --note 'The last digit is smudged on the scan; the bank statement shows 3,412.60.'
```

MCP tool `correct_field`:

```json
{
  "name": "correct_field",
  "arguments": {
    "document_id": "doc_4Fp8Ns2",
    "field": "net_pay",
    "value": "3412.60",
    "note": "The last digit is smudged on the scan; the bank statement shows 3,412.60."
  }
}
```

TypeScript:

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

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.fields.correct("doc_4Fp8Ns2", "net_pay", {
  value: "3412.60",
  note: "The last digit is smudged on the scan; the bank statement shows 3,412.60.",
});
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.fields.correct(
    "doc_4Fp8Ns2",
    "net_pay",
    value="3412.60",
    note="The last digit is smudged on the scan; the bank statement shows 3,412.60.",
)
```

Go:

```go
client := kontiga.NewClient() // reads KONTIGA_API_KEY
result, err := client.Fields.Correct(ctx, "doc_4Fp8Ns2", "net_pay", &kontiga.FieldsCorrectParams{
	Value: "3412.60",
	Note:  "The last digit is smudged on the scan; the bank statement shows 3,412.60.",
})
if err != nil {
	return err
}
```

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.fields().correct("doc_4Fp8Ns2", "net_pay", FieldsCorrectParams.builder()
    .value("3412.60")
    .note("The last digit is smudged on the scan; the bank statement shows 3,412.60.")
    .build());
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.Fields.CorrectAsync("doc_4Fp8Ns2", "net_pay", new FieldsCorrectOptions
{
    Value = "3412.60",
    Note = "The last digit is smudged on the scan; the bank statement shows 3,412.60.",
});
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // reads KONTIGA_API_KEY
$result = $kontiga->fields->correct('doc_4Fp8Ns2', 'net_pay', [
    'value' => '3412.60',
    'note' => 'The last digit is smudged on the scan; the bank statement shows 3,412.60.',
]);
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.fields.correct(
  "doc_4Fp8Ns2",
  "net_pay",
  value: "3412.60",
  note: "The last digit is smudged on the scan; the bank statement shows 3,412.60."
)
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .fields()
    .correct("doc_4Fp8Ns2".into(), "net_pay".into(), kontiga::fields::CorrectParams {
        value: "3412.60".into(),
        note: "The last digit is smudged on the scan; the bank statement shows 3,412.60.".into(),
        ..Default::default()
    })
    .await?;
```

Response, 200 OK:

```json
{
  "object": "field",
  "document_id": "doc_4Fp8Ns2",
  "field": "net_pay",
  "name": "Net pay",
  "type": "money",
  "multiple": false,
  "value": "3412.60",
  "typed_value": {
    "amount": "3412.60",
    "currency": "EUR"
  },
  "original": "3412.80",
  "printed": "3 412,80",
  "source": "correction",
  "confidence": 0.71,
  "level": "medium",
  "location": [
    { "page": 1, "box": [702, 640, 811, 657] }
  ],
  "review": [],
  "alternatives": [],
  "corrected": true,
  "pending": null,
  "history": [
    {
      "kind": "correction",
      "action": "set",
      "value": "3412.60",
      "from": "3412.80",
      "to": "3412.60",
      "by": "Tomas Lindqvist",
      "actor": {
        "kind": "member",
        "id": "mem_6Tb1Nf8",
        "name": "Tomas Lindqvist"
      },
      "at": "2026-11-25T09:48:16Z",
      "note": "The last digit is smudged on the scan; the bank statement shows 3,412.60.",
      "state": "in_force"
    }
  ]
}
```

The checks that read the field run again at once, so a finding can be raised or removed. A correction sends `field.corrected` to your webhook endpoints with the document and the field, never the values: read them here. A value that does not fit the field's type, or a missing note the workspace asks for, is refused with `422`; a role that may not correct values gets `403`; a document still being read gets `409`.

## Read one value of a document

One value read from a document, with where it was read, how sure the reading is, and every correction with who made it and when.

`GET /v1/documents/{document_id}/fields/{field}`. Who may: Owner, Admin, Analyst and Viewer; Developer in test mode. CLI: `kontiga documents field <document_id> <field>`. MCP tool: `get_document_field`.

**Parameters**
- `document_id` (id (doc_), required): The document. In the path.
- `field` (string, required): The field's key, as `fields.list` gives it. In the path.

**Returns** field reading: The value, as first read and as it is now, with its confidence and its history.

API:

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

CLI:

```bash
kontiga documents field doc_5Wm2Hk7 net_pay
```

MCP tool `get_document_field`:

```json
{
  "name": "get_document_field",
  "arguments": {
    "document_id": "doc_5Wm2Hk7",
    "field": "net_pay"
  }
}
```

TypeScript:

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

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.fields.get("doc_5Wm2Hk7", "net_pay");
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.fields.get("doc_5Wm2Hk7", "net_pay")
```

Go:

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

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.fields().get("doc_5Wm2Hk7", "net_pay");
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.Fields.GetAsync("doc_5Wm2Hk7", "net_pay");
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // reads KONTIGA_API_KEY
$result = $kontiga->fields->get('doc_5Wm2Hk7', 'net_pay');
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.fields.get("doc_5Wm2Hk7", "net_pay")
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .fields()
    .get("doc_5Wm2Hk7".into(), "net_pay".into())
    .await?;
```

Response, 200 OK:

```json
{
  "object": "field",
  "document_id": "doc_4Fp8Ns2",
  "field": "net_pay",
  "name": "Net pay",
  "type": "money",
  "multiple": false,
  "value": "3412.60",
  "typed_value": {
    "amount": "3412.60",
    "currency": "EUR"
  },
  "original": "3412.80",
  "printed": "3 412,80",
  "source": "correction",
  "confidence": 0.71,
  "level": "medium",
  "location": [
    { "page": 1, "box": [702, 640, 811, 657] }
  ],
  "review": [],
  "alternatives": [],
  "corrected": true,
  "pending": null,
  "history": [
    {
      "kind": "correction",
      "action": "set",
      "value": "3412.60",
      "from": "3412.80",
      "to": "3412.60",
      "by": "Tomas Lindqvist",
      "actor": {
        "kind": "member",
        "id": "mem_6Tb1Nf8",
        "name": "Tomas Lindqvist"
      },
      "at": "2026-11-25T09:48:16Z",
      "note": "The last digit is smudged on the scan; the bank statement shows 3,412.60.",
      "state": "in_force"
    }
  ]
}
```

## Correct a table

Correct a table read from a document: set a cell, add a row or remove one. Each correction is kept with who made it and when, and stays when the document is read again.

`POST /v1/documents/{document_id}/tables/{table}/corrections`. Who may: Owner, Admin and Analyst; Developer in test mode. CLI: `kontiga documents correct-table <document_id> <table> --corrections <json>`. MCP tool: `correct_document_table`.

**Parameters**
- `document_id` (id (doc_), required): The document. In the path.
- `table` (string, required): The table's key: `transactions`, `line_items`. In the path.
- `corrections` (array of object, required): Up to 100, applied in order: `set_cell` (row, column, value), `add_row` (row, the new row goes after it) or `remove_row` (row). A value is checked against its column's type. They stay when the document is read again.

**Returns** table: The table as corrected, with every correction.

API:

```bash
curl -X POST https://api.kontiga.com/v1/documents/doc_3Hy8Vc1/tables/transactions/corrections \
  -H "Authorization: Bearer $KONTIGA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "corrections": [
      {
        "op": "set_cell",
        "row": 4,
        "column": "amount",
        "value": "-1250.00"
      }
    ]
  }'
```

CLI:

```bash
kontiga documents correct-table doc_3Hy8Vc1 transactions \
  --corrections '[{"op":"set_cell","row":4,"column":"amount","value":"-1250.00"}]'
```

MCP tool `correct_document_table`:

```json
{
  "name": "correct_document_table",
  "arguments": {
    "document_id": "doc_3Hy8Vc1",
    "table": "transactions",
    "corrections": [
      {
        "op": "set_cell",
        "row": 4,
        "column": "amount",
        "value": "-1250.00"
      }
    ]
  }
}
```

TypeScript:

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

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.tables.correct("doc_3Hy8Vc1", "transactions", {
  corrections: [{ op: "set_cell", row: 4, column: "amount", value: "-1250.00" }],
});
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.tables.correct(
    "doc_3Hy8Vc1",
    "transactions",
    corrections=[{"op": "set_cell", "row": 4, "column": "amount", "value": "-1250.00"}],
)
```

Go:

```go
client := kontiga.NewClient() // reads KONTIGA_API_KEY
result, err := client.Tables.Correct(ctx, "doc_3Hy8Vc1", "transactions", &kontiga.TablesCorrectParams{
	Corrections: []any{map[string]any{"op": "set_cell", "row": 4, "column": "amount", "value": "-1250.00"}},
})
if err != nil {
	return err
}
```

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.tables().correct("doc_3Hy8Vc1", "transactions", TablesCorrectParams.builder()
    .corrections(List.of(Map.of("op", "set_cell", "row", 4, "column", "amount", "value", "-1250.00")))
    .build());
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.Tables.CorrectAsync("doc_3Hy8Vc1", "transactions", new TablesCorrectOptions
{
    Corrections = new object[] { new Dictionary<string, object> { ["op"] = "set_cell", ["row"] = 4, ["column"] = "amount", ["value"] = "-1250.00" } },
});
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // reads KONTIGA_API_KEY
$result = $kontiga->tables->correct('doc_3Hy8Vc1', 'transactions', [
    'corrections' => [['op' => 'set_cell', 'row' => 4, 'column' => 'amount', 'value' => '-1250.00']],
]);
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.tables.correct(
  "doc_3Hy8Vc1",
  "transactions",
  corrections: [{ op: "set_cell", row: 4, column: "amount", value: "-1250.00" }]
)
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .tables()
    .correct("doc_3Hy8Vc1".into(), "transactions".into(), kontiga::tables::CorrectParams {
        corrections: vec![serde_json::json!({"op":"set_cell","row":4,"column":"amount","value":"-1250.00"})],
        ..Default::default()
    })
    .await?;
```

Response, 200 OK:

```json
{
  "document_id": "doc_3Hy8Vc1",
  "table": "transactions",
  "name": "Transactions",
  "columns": [
    "booking_date",
    "value_date",
    "description",
    "reference",
    "counterparty",
    "amount",
    "balance"
  ],
  "column_types": [
    { "name": "booking_date", "type": "date" },
    { "name": "amount", "type": "money" }
  ],
  "rows": [
    {
      "index": 4,
      "cells": {
        "booking_date": "2026-10-28",
        "description": "Rent",
        "amount": "-1250.00",
        "balance": "2104.35"
      },
      "values": {
        "booking_date": "2026-10-28",
        "description": "Rent",
        "amount": {
          "amount": "-1250.00",
          "currency": "EUR"
        }
      },
      "location": [
        { "page": 2, "box": [48, 412, 951, 427] }
      ],
      "corrected": true
    }
  ],
  "review": [],
  "history": [
    {
      "at": "2026-11-27T11:02:10Z",
      "by": "Jonas Weber",
      "op": "set_cell",
      "row": 4,
      "column": "amount",
      "value": "-1250.00",
      "note": null
    }
  ],
  "object": "table"
}
```

## Read a document again

Read a document's values again as a new version of its reading, with up to 50 fields of your own beside its field set. The corrections made by people are kept over it.

`POST /v1/documents/{document_id}/extraction/reread`. Who may: Owner, Admin and Analyst; Developer in test mode. CLI: `kontiga documents reread <document_id> [--custom-fields <json>]`. MCP tool: `reread_document`.

**Parameters**
- `document_id` (id (doc_), required): The document to read again. Corrections people made stay over the new reading, and the earlier reading stays in each field's history. In the path.
- `custom_fields` (array of object): Optional: up to 50 fields of your own to read beside the field set, each with a `name` (lower case letters, digits and `_`, starting with a letter) or a `label` it is made from, a `type`, and `overwrite_if_exists`. A name that does not fit, or a 51st field, is refused with `422`. Left out, the fields asked for before are read again.

**Returns** extraction reading: The new reading, under way.

API:

```bash
curl -X POST https://api.kontiga.com/v1/documents/doc_5Wm2Hk7/extraction/reread \
  -H "Authorization: Bearer $KONTIGA_API_KEY"
```

CLI:

```bash
kontiga documents reread doc_5Wm2Hk7
```

MCP tool `reread_document`:

```json
{
  "name": "reread_document",
  "arguments": {
    "document_id": "doc_5Wm2Hk7"
  }
}
```

TypeScript:

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

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.extraction.reread("doc_5Wm2Hk7");
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.extraction.reread("doc_5Wm2Hk7")
```

Go:

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

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.extraction().reread("doc_5Wm2Hk7");
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.Extraction.RereadAsync("doc_5Wm2Hk7");
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // reads KONTIGA_API_KEY
$result = $kontiga->extraction->reread('doc_5Wm2Hk7');
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.extraction.reread("doc_5Wm2Hk7")
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .extraction()
    .reread("doc_5Wm2Hk7".into())
    .await?;
```

Response, 202 Accepted:

```json
{
  "object": "extraction_reading",
  "document_id": "doc_5Wm2Hk7",
  "version": 2,
  "state": "reading",
  "started_at": "2026-11-27T11:05:00Z",
  "finished_at": null
}
```
