# Requests

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

A request is what one party of a case was asked for: their checklist from a collection, sent by email, text message or a link you share yourself. Each item of it is a document or an answer, and moves from not started to received, then accepted, asked again or waived. Send requests one at a time or in bulk, follow them, remind, extend and cancel them, and read the whole conversation with the party.

Updated December 1, 2026

## Contents

- [The request object](https://kontiga.com/docs/requests#the-request-object)
- [Send a request](https://kontiga.com/docs/requests#send-a-request)
- [List requests](https://kontiga.com/docs/requests#list-requests)
- [List requests with their progress](https://kontiga.com/docs/requests#list-requests-with-their-progress)
- [Read a request](https://kontiga.com/docs/requests#read-a-request)
- [List a request's items](https://kontiga.com/docs/requests#list-a-requests-items)
- [Count a collection's items](https://kontiga.com/docs/requests#count-a-collection-s-items)
- [Read a request's messages](https://kontiga.com/docs/requests#read-a-requests-messages)
- [Ask for more](https://kontiga.com/docs/requests#ask-for-more)
- [Ask again for a document](https://kontiga.com/docs/requests#ask-again-for-a-document)
- [Accept an item](https://kontiga.com/docs/requests#accept-an-item)
- [Waive an item](https://kontiga.com/docs/requests#waive-an-item)
- [Remind now](https://kontiga.com/docs/requests#remind-now)
- [Send a request again](https://kontiga.com/docs/requests#send-a-request-again)
- [Get a new link](https://kontiga.com/docs/requests#get-a-new-link)
- [Send the identity message](https://kontiga.com/docs/requests#send-the-identity-message)
- [Extend the due date](https://kontiga.com/docs/requests#extend-the-due-date)
- [Pause reminders](https://kontiga.com/docs/requests#pause-reminders)
- [Resume reminders](https://kontiga.com/docs/requests#resume-reminders)
- [Cancel a request](https://kontiga.com/docs/requests#cancel-a-request)
- [Send requests in bulk](https://kontiga.com/docs/requests#send-requests-in-bulk)
- [List batches](https://kontiga.com/docs/requests#list-batches)
- [Follow a batch](https://kontiga.com/docs/requests#follow-a-batch)
- [Download the batch results](https://kontiga.com/docs/requests#download-the-batch-results)
- [List the request languages](https://kontiga.com/docs/requests#list-the-request-languages)
- [Reopen a request](https://kontiga.com/docs/requests#reopen-a-request)
- [Get a client secret for the widget](https://kontiga.com/docs/requests#get-a-client-secret-for-the-widget)
- [List a request's deliveries](https://kontiga.com/docs/requests#list-a-requests-deliveries)
- [When a change is refused](https://kontiga.com/docs/requests#when-a-change-is-refused)
- [How messages go](https://kontiga.com/docs/requests#how-messages-go)
- [Replies by email](https://kontiga.com/docs/requests#replies-by-email)
- [Read the case's email](https://kontiga.com/docs/requests#read-the-case-s-email)
- [Give an email to a party](https://kontiga.com/docs/requests#give-an-email-to-a-party)
- [Delete an email](https://kontiga.com/docs/requests#delete-an-email)
- [Simulate a reply](https://kontiga.com/docs/requests#simulate-a-reply)
- [Request events](https://kontiga.com/docs/requests#request-events)

## The request object

- `id` (string): The request's id, starting with `rqs_`.
- `case_id` (string): The case it belongs to.
- `party_id` (string): The party it was sent to. A party has at most one open request on its case: asking for more adds to it.
- `collection_id` (string): The collection its checklist comes from.
- `collection_version` (integer): The version of the collection it was sent with. Later edits of the collection never change it.
- `state` (enum): `created`, `sent`, `opened`, `in_progress`, `completed`, `expired` or `cancelled`.
- `channel` (enum): `email`, `sms`, `email_and_sms` or `link`.
- `access` (enum): How the link opens: `link`, `code` or `identity`.
- `locale` (string): The language of its messages and page, or `null` to follow the party's browser.
- `created_by` (enum): `member`, `key`, `batch`, `workflow_run` or `public_start`.
- `expires_at` (string): The due date: when its links stop working.
- `last_reminder_at` (string): When the party was last reminded, or `null`.
- `items_required` (integer): The required items that apply: each document or answer asked for is one. Optional items are counted apart in `items_optional`.
- `items_done` (integer): How many of them are in: received, accepted, waived or already on file.
- `reminders` (object): `next_at`, `sent_count` and `paused`.
- `reopened` (boolean): A completed request the case asked more of, open again until the new items are in.
- `items` (array): One per document or answer asked for, each `not_started`, `received`, `needs_redo`, `accepted`, `waived` or `reused`.

**A request**

```json
{
  "id": "rqs_4Gt7Uy2",
  "object": "request",
  "mode": "live",
  "case_id": "case_7Kq2Xw9",
  "party_id": "pty_9Hd4Vb1",
  "collection_id": "col_5Gk3Tm7",
  "collection_version": 3,
  "state": "in_progress",
  "channel": "email_and_sms",
  "access": "link",
  "locale": null,
  "created_by": "member",
  "created_at": "2026-11-24T09:12:40Z",
  "sent_at": "2026-11-24T09:12:52Z",
  "opened_at": "2026-11-24T09:15:30Z",
  "completed_at": null,
  "expired_at": null,
  "cancelled_at": null,
  "expires_at": "2026-12-08T09:12:52Z",
  "last_reminder_at": "2026-11-26T09:13:00Z",
  "items_required": 3,
  "items_done": 2,
  "items_optional": 1,
  "items_optional_done": 0,
  "reminders": { "next_at": "2026-12-03T09:13:00Z", "sent_count": 1, "paused": false },
  "reopened": false,
  "items": [
    { "id": "itm_6Hp1Ra4", "requirement_id": "rqm_1Pa6Ws3", "state": "accepted", "document_id": "doc_2Lm8Ts4" },
    { "id": "itm_2Xc9Lb6", "requirement_id": "rqm_4Yc2Hn8", "state": "received", "document_id": "doc_5Wm2Hk7" },
    { "id": "itm_8Tg3Ve5", "requirement_id": "rqm_7Lq9Dz1", "state": "not_started", "document_id": null },
    { "id": "itm_5Jw7Nc2", "requirement_id": "rqm_2Bv5Kt6", "state": "not_started", "document_id": null }
  ]
}
```

## Send a request

Send a party their checklist on a case, by email, SMS or a link; the case waits on them.

`POST /v1/requests`. Who may: Owner, Admin and Analyst. CLI: `kontiga requests send --case-id <case_id> [--party-id <party_id>] [--channel <email|sms|email_and_sms|link>] [--client-secret]`. MCP tool: `send_request`.

**Parameters**
- `case_id` (id (case_), required): The case the request is for.
- `party_id` (id (pty_)): The party to send it to. The case's first party when left out. A party with an open request is refused with `request_open`: ask for more on it instead.
- `channel` (enum): How it reaches them. The collection's own when left out. `link` sends nothing: the answer's `link.url` is the link to share on your own channel, shown once. One of `email`, `sms`, `email_and_sms`, `link`.
- `client_secret` (boolean): `true` also answers `client_secret` and `client_secret_expires_at`: a secret for the widget, for one hour, made with the request, so your page mounts the widget without a second call. Hand it to the page as it is.

**Returns** request: The request, sent.

API:

```bash
curl -X POST https://api.kontiga.com/v1/requests \
  -H "Authorization: Bearer $KONTIGA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "case_id": "case_7Kq2Xw9",
    "party_id": "pty_9Hd4Vb1",
    "channel": "email_and_sms"
  }'
```

CLI:

```bash
kontiga requests send \
  --case-id case_7Kq2Xw9 \
  --party-id pty_9Hd4Vb1 \
  --channel email_and_sms
```

MCP tool `send_request`:

```json
{
  "name": "send_request",
  "arguments": {
    "case_id": "case_7Kq2Xw9",
    "party_id": "pty_9Hd4Vb1",
    "channel": "email_and_sms"
  }
}
```

TypeScript:

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

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.requests.send({
  case_id: "case_7Kq2Xw9",
  party_id: "pty_9Hd4Vb1",
  channel: "email_and_sms",
});
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.requests.send(
    case_id="case_7Kq2Xw9",
    party_id="pty_9Hd4Vb1",
    channel="email_and_sms",
)
```

Go:

```go
client := kontiga.NewClient() // reads KONTIGA_API_KEY
result, err := client.Requests.Send(ctx, &kontiga.RequestsSendParams{
	CaseId:  "case_7Kq2Xw9",
	PartyId: "pty_9Hd4Vb1",
	Channel: "email_and_sms",
})
if err != nil {
	return err
}
```

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.requests().send(RequestsSendParams.builder()
    .caseId("case_7Kq2Xw9")
    .partyId("pty_9Hd4Vb1")
    .channel("email_and_sms")
    .build());
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.Requests.SendAsync(new RequestsSendOptions
{
    CaseId = "case_7Kq2Xw9",
    PartyId = "pty_9Hd4Vb1",
    Channel = "email_and_sms",
});
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // reads KONTIGA_API_KEY
$result = $kontiga->requests->send([
    'case_id' => 'case_7Kq2Xw9',
    'party_id' => 'pty_9Hd4Vb1',
    'channel' => 'email_and_sms',
]);
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.requests.send(
  case_id: "case_7Kq2Xw9",
  party_id: "pty_9Hd4Vb1",
  channel: "email_and_sms"
)
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .requests()
    .send(kontiga::requests::SendParams {
        case_id: "case_7Kq2Xw9".into(),
        party_id: "pty_9Hd4Vb1".into(),
        channel: "email_and_sms".into(),
        ..Default::default()
    })
    .await?;
```

Response, 201 Created:

```json
{
  "id": "rqs_4Gt7Uy2",
  "object": "request",
  "mode": "live",
  "case_id": "case_7Kq2Xw9",
  "party_id": "pty_9Hd4Vb1",
  "collection_id": "col_5Gk3Tm7",
  "collection_version": 3,
  "state": "in_progress",
  "channel": "email_and_sms",
  "access": "link",
  "locale": null,
  "created_by": "member",
  "created_at": "2026-11-24T09:12:40Z",
  "sent_at": "2026-11-24T09:12:52Z",
  "opened_at": "2026-11-24T09:15:30Z",
  "completed_at": null,
  "expired_at": null,
  "cancelled_at": null,
  "expires_at": "2026-12-08T09:12:52Z",
  "last_reminder_at": "2026-11-26T09:13:00Z",
  "items_required": 3,
  "items_done": 2,
  "items_optional": 1,
  "items_optional_done": 0,
  "reminders": { "next_at": "2026-12-03T09:13:00Z", "sent_count": 1, "paused": false },
  "reopened": false,
  "items": [
    { "id": "itm_6Hp1Ra4", "requirement_id": "rqm_1Pa6Ws3", "state": "accepted", "document_id": "doc_2Lm8Ts4" },
    { "id": "itm_2Xc9Lb6", "requirement_id": "rqm_4Yc2Hn8", "state": "received", "document_id": "doc_5Wm2Hk7" },
    { "id": "itm_8Tg3Ve5", "requirement_id": "rqm_7Lq9Dz1", "state": "not_started", "document_id": null },
    { "id": "itm_5Jw7Nc2", "requirement_id": "rqm_2Bv5Kt6", "state": "not_started", "document_id": null }
  ]
}
```

## List requests

What each party was asked for on each case, and how far they are.

`GET /v1/requests`. Who may: Owner, Admin, Analyst, Developer and Viewer. CLI: `kontiga requests list [--case-id <case_id>] [--collection-id <collection_id>] [--state <created|sent|opened|in_progress|completed|expired|cancelled>] [--limit <n>] [--cursor <next_cursor>]`. MCP tool: `list_requests`.

**Parameters**
- `case_id` (id (case_)): Only the requests of this case.
- `collection_id` (id (col_)): Only the requests sent from this collection, a page at a time (its page in the console reads them so).
- `state` (enum): Only requests in this state. One of `created`, `sent`, `opened`, `in_progress`, `completed`, `expired`, `cancelled`.
- `limit` (integer): How many to answer, 1 to 200; 50 when left out. Newest activity first.
- `cursor` (string): The `next_cursor` of the page before.

**Returns** list of requests: The requests, each with its items and their states.

API:

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

CLI:

```bash
kontiga requests list --case-id case_7Kq2Xw9
```

MCP tool `list_requests`:

```json
{
  "name": "list_requests",
  "arguments": {
    "case_id": "case_7Kq2Xw9"
  }
}
```

TypeScript:

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

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.requests.list({
  case_id: "case_7Kq2Xw9",
});
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.requests.list(case_id="case_7Kq2Xw9")
```

Go:

```go
client := kontiga.NewClient() // reads KONTIGA_API_KEY
result, err := client.Requests.List(ctx, &kontiga.RequestsListParams{
	CaseId: "case_7Kq2Xw9",
})
if err != nil {
	return err
}
```

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.requests().list(RequestsListParams.builder()
    .caseId("case_7Kq2Xw9")
    .build());
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.Requests.ListAsync(new RequestsListOptions
{
    CaseId = "case_7Kq2Xw9",
});
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // reads KONTIGA_API_KEY
$result = $kontiga->requests->list([
    'case_id' => 'case_7Kq2Xw9',
]);
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.requests.list(case_id: "case_7Kq2Xw9")
```

Rust:

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

Response, 200 OK:

```json
{
  "items": [
    {
      "id": "rqs_4Gt7Uy2",
      "object": "request",
      "case_id": "case_7Kq2Xw9",
      "party_id": "pty_9Hd4Vb1",
      "state": "in_progress",
      "channel": "email_and_sms",
      "expires_at": "2026-12-08T09:12:52Z"
    }
  ],
  "next_cursor": null
}
```

## List requests with their progress

Every request with its party, case, collection, state, channel, delivery problems, items done of required, due date and last activity, and how many are in each saved view.

`GET /v1/requests_overview`. Who may: Owner, Admin, Analyst, Developer and Viewer. CLI: `kontiga requests overview [--view <all|waiting|overdue|expiring|delivery_failed|stuck|not_sent|completed>] [--collection-id <collection_id>] [--channel <email|sms|email_and_sms|link>] [--state <state>] [--q <text>] [--reference <reference>] [--created-from <YYYY-MM-DD>] [--created-to <YYYY-MM-DD>] [--cursor <cursor>] [--limit <1-200>]`. MCP tool: `get_requests_overview`.

**Parameters**
- `view` (enum): A saved view: `waiting` on the party with the link still working, `overdue` past the due date with items missing, `expiring` within 2 days, `delivery_failed`, `stuck` with no step by the party for 7 days while it waits on them (the longest first), `not_sent` or `completed`. One of `all`, `waiting`, `overdue`, `expiring`, `delivery_failed`, `stuck`, `not_sent`, `completed`.
- `collection_id` (id (col_)): Only requests from this collection.
- `channel` (enum): Only requests sent this way. One of `email`, `sms`, `email_and_sms`, `link`.
- `state` (enum): Only requests in this state. One of `created`, `sent`, `opened`, `in_progress`, `completed`, `expired`, `cancelled`.
- `q` (string): A name or a reference. At most 120 characters.
- `reference` (string): Your own reference for the case or the person, exactly. At most 255 characters.
- `created_from` (string): Made on or after this day, `yyyy-mm-dd`.
- `created_to` (string): Made on or before this day, `yyyy-mm-dd`.
- `cursor` (string): The `next_cursor` of the page before, to read the next one. Each view has its own. At most 200 characters.
- `limit` (integer): How many requests a page holds: 1 to 200, 200 when left out.

**Returns** list of requests, with view counts: The requests, newest activity first, and the count of each saved view: waiting on a party, overdue, expiring soon, delivery failed, stuck, not sent and completed.

API:

```bash
curl -X GET "https://api.kontiga.com/v1/requests_overview?view=waiting&collection_id=col_5Gk3Tm7" \
  -H "Authorization: Bearer $KONTIGA_API_KEY"
```

CLI:

```bash
kontiga requests overview \
  --view waiting \
  --collection-id col_5Gk3Tm7
```

MCP tool `get_requests_overview`:

```json
{
  "name": "get_requests_overview",
  "arguments": {
    "view": "waiting",
    "collection_id": "col_5Gk3Tm7"
  }
}
```

TypeScript:

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

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.requests.overview({
  view: "waiting",
  collection_id: "col_5Gk3Tm7",
});
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.requests.overview(view="waiting", collection_id="col_5Gk3Tm7")
```

Go:

```go
client := kontiga.NewClient() // reads KONTIGA_API_KEY
result, err := client.Requests.Overview(ctx, &kontiga.RequestsOverviewParams{
	View:         "waiting",
	CollectionId: "col_5Gk3Tm7",
})
if err != nil {
	return err
}
```

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.requests().overview(RequestsOverviewParams.builder()
    .view("waiting")
    .collectionId("col_5Gk3Tm7")
    .build());
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.Requests.OverviewAsync(new RequestsOverviewOptions
{
    View = "waiting",
    CollectionId = "col_5Gk3Tm7",
});
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // reads KONTIGA_API_KEY
$result = $kontiga->requests->overview([
    'view' => 'waiting',
    'collection_id' => 'col_5Gk3Tm7',
]);
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.requests.overview(view: "waiting", collection_id: "col_5Gk3Tm7")
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .requests()
    .overview(kontiga::requests::OverviewParams {
        view: "waiting".into(),
        collection_id: "col_5Gk3Tm7".into(),
        ..Default::default()
    })
    .await?;
```

Response, 200 OK:

```json
{
  "object": "requests_overview",
  "rows": [
    {
      "id": "rqs_4Gt7Uy2",
      "state": "in_progress",
      "channel": "email_and_sms",
      "case_id": "case_7Kq2Xw9",
      "case_title": "Mortgage application, 14 Harbour Row",
      "case_reference": "APP-20418",
      "party_id": "pty_9Hd4Vb1",
      "party_role": "applicant",
      "person_id": "per_2Nc6Qs8",
      "person_name": "Marta Kowalczyk",
      "person_reference": "CUST-55120",
      "owner_id": "mem_3Rt8Lp2",
      "owner_name": "Ines Moreau",
      "collection_id": "col_5Gk3Tm7",
      "collection_name": "Mortgage application",
      "items_required": 3,
      "items_done": 2,
      "items_to_come": 1,
      "items_optional": 1,
      "items_optional_in": 0,
      "items_redo": 0,
      "reopened": false,
      "due_at": "2026-12-08T09:12:52Z",
      "sent_at": "2026-11-24T09:12:52Z",
      "opened_at": "2026-11-24T09:15:30Z",
      "completed_at": null,
      "cancelled_at": null,
      "last_activity": { "at": "2026-11-24T09:31:20Z", "summary": "Payslip, October 2026 uploaded" },
      "delivery_problem": null,
      "first_delivery": "delivered",
      "sent_by": "Ines Moreau",
      "case_outcome": null,
      "reminders_sent": 1,
      "next_reminder_at": "2026-11-29T09:13:00Z",
      "reminders_paused": false,
      "stuck": false,
      "views": ["all", "waiting"]
    }
  ],
  "counts": {
    "all": 74,
    "waiting": 17,
    "overdue": 2,
    "expiring": 4,
    "delivery_failed": 1,
    "stuck": 3,
    "not_sent": 7,
    "completed": 49
  },
  "next_cursor": null
}
```

## Read a request

One request: each item with the files the party uploaded, the instant check's answer and what the party was told to fix, the messages sent and their delivery, the reminders and the due date.

`GET /v1/requests/{request_id}`. Who may: Owner, Admin, Analyst, Developer and Viewer. CLI: `kontiga requests get <request_id>`. MCP tool: `get_request`.

**Parameters**
- `request_id` (id (rqs_), required): The request to read. In the path.

**Returns** request: The request with its items, files, messages, reminders and timeline.

API:

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

CLI:

```bash
kontiga requests get rqs_4Gt7Uy2
```

MCP tool `get_request`:

```json
{
  "name": "get_request",
  "arguments": {
    "request_id": "rqs_4Gt7Uy2"
  }
}
```

TypeScript:

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

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

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.requests.get("rqs_4Gt7Uy2")
```

Go:

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

Java:

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

.NET:

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

PHP:

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

Ruby:

```ruby
require "kontiga"

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

Rust:

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

Response, 200 OK:

```json
{
  "id": "rqs_4Gt7Uy2",
  "object": "request",
  "mode": "live",
  "state": "in_progress",
  "channel": "email_and_sms",
  "case_id": "case_7Kq2Xw9",
  "case_reference": "APP-20418",
  "person_name": "Marta Kowalczyk",
  "collection_name": "Mortgage application",
  "locale": "en",
  "locale_label": "English",
  "contact": { "email": "marta.kowalczyk@mailbox.example", "phone": "+353 87 412 0937" },
  "created_at": "2026-11-24T09:12:40Z",
  "created_by": "Ines Moreau",
  "access": "code",
  "items_required": 3,
  "items_done": 2,
  "due_at": "2026-12-08T09:12:52Z",
  "reminder_schedule": "After 2 days, then every 3 days, and the day before the link expires, at most 4",
  "reminders_sent": 1,
  "reminders_paused": false,
  "next_reminder_at": "2026-11-29T09:13:00Z",
  "manual_reminders_left": 10,
  "next_manual_at": null,
  "items": [
    {
      "id": "itm_2Xc9Lb6",
      "requirement_id": "rqm_4Yc2Hn8",
      "label": "Your payslips",
      "team_label": "Payslips",
      "kind": "document",
      "rule": "The last 3 months, one each",
      "required": true,
      "state": "received",
      "files": [
        {
          "document_id": "doc_5Wm2Hk7",
          "title": "Payslip, October 2026",
          "file_name": "payslip-oct-2026.pdf",
          "received_at": "2026-11-24T09:31:20Z",
          "source": "portal",
          "sent_by": "Marta Kowalczyk",
          "instant_check": { "state": "passed", "reasons": [], "checked_at": "2026-11-24T09:31:24Z" },
          "told": "Got it.",
          "told_by": "screen",
          "kept_with_issues": false,
          "note": null,
          "replaced": false,
          "verdict": "review"
        }
      ],
      "answer": null,
      "redo": null,
      "waive_reason": null
    }
  ],
  "deliveries": [
    { "id": "dlv_1Kc8Wz3", "kind": "request", "channel": "email", "to": "marta.kowalczyk@mailbox.example", "state": "delivered", "error": null, "tries": 1, "at": "2026-11-24T09:12:55Z" }
  ],
  "open_asks": 0,
  "identity_pending": false,
  "opened_language": "en-IE",
  "timeline": [
    { "id": "rtl_3Bn6Xq1", "at": "2026-11-24T09:31:20Z", "summary": "Payslip, October 2026 uploaded", "who": "Marta Kowalczyk", "icon": "upload" },
    { "id": "rtl_9Vm2Hd7", "at": "2026-11-24T09:15:30Z", "summary": "Link opened", "who": "Marta Kowalczyk", "icon": "eye" },
    { "id": "rtl_5Ls4Pe8", "at": "2026-11-24T09:12:52Z", "summary": "Sent by email and text message", "who": "Ines Moreau", "icon": "send" }
  ]
}
```

## List a request's items

What one party was asked for, item by item: received, missing, asked again, accepted or waived, with the reason the end customer reads.

`GET /v1/requests/{request_id}/items`. Who may: Owner, Admin, Analyst, Developer and Viewer. CLI: `kontiga requests items <request_id>`. MCP tool: `list_request_items`.

**Parameters**
- `request_id` (id (rqs_), required): The request whose items to list. In the path.

**Returns** list of items: The request's items with their states and files, and when the party was last reminded.

API:

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

CLI:

```bash
kontiga requests items rqs_4Gt7Uy2
```

MCP tool `list_request_items`:

```json
{
  "name": "list_request_items",
  "arguments": {
    "request_id": "rqs_4Gt7Uy2"
  }
}
```

TypeScript:

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

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.requests.items("rqs_4Gt7Uy2");
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.requests.items("rqs_4Gt7Uy2")
```

Go:

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

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.requests().items("rqs_4Gt7Uy2");
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.Requests.ItemsAsync("rqs_4Gt7Uy2");
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // reads KONTIGA_API_KEY
$result = $kontiga->requests->items('rqs_4Gt7Uy2');
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.requests.items("rqs_4Gt7Uy2")
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .requests()
    .items("rqs_4Gt7Uy2".into())
    .await?;
```

Response, 200 OK:

```json
{
  "object": "list",
  "request_id": "rqs_4Gt7Uy2",
  "last_reminder_at": "2026-11-26T09:13:00Z",
  "items": [
    {
      "id": "itm_2Xc9Lb6",
      "request_id": "rqs_4Gt7Uy2",
      "requirement_id": "rqm_4Yc2Hn8",
      "label": "Payslips",
      "rule": "The last 3 months, one each",
      "kind": "document",
      "required": true,
      "state": "received",
      "document_id": "doc_5Wm2Hk7",
      "reason": null,
      "added": false,
      "answer": null,
      "rejection": null,
      "reused_from": null
    },
    {
      "id": "itm_8Tg3Ve5",
      "request_id": "rqs_4Gt7Uy2",
      "requirement_id": "rqm_7Lq9Dz1",
      "label": "Bank statements",
      "rule": "The last 3 months, the account the salary is paid into",
      "kind": "document",
      "required": true,
      "state": "not_started",
      "document_id": null,
      "reason": null,
      "added": false,
      "answer": null,
      "rejection": null,
      "reused_from": null
    }
  ]
}
```

## Count a collection's items

How many items a request of a collection asks for, as every page counts them: each document or answer is one item, the required ones make the count and the optional ones are counted apart; and whether its link asks for a one-time code.

`GET /v1/collections/{collection_id}/item_count`. Who may: Owner, Admin, Analyst, Developer and Viewer. CLI: `kontiga requests items-asked <collection_id>`. MCP tool: `count_collection_items`.

**Parameters**
- `collection_id` (id (col_), required): The collection to count, from its latest published version (its draft before the first). Each document or answer is one item; an item asked only under a condition counts as asked. `code` is `true` when its link asks for a one-time code first. In the path.

**Returns** item count: The collection's items, required, optional, documents and answers, and whether the portal asks for a code.

API:

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

CLI:

```bash
kontiga requests items-asked col_5Gk3Tm7
```

MCP tool `count_collection_items`:

```json
{
  "name": "count_collection_items",
  "arguments": {
    "collection_id": "col_5Gk3Tm7"
  }
}
```

TypeScript:

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

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.requests.itemsAsked("col_5Gk3Tm7");
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.requests.items_asked("col_5Gk3Tm7")
```

Go:

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

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.requests().itemsAsked("col_5Gk3Tm7");
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.Requests.ItemsAskedAsync("col_5Gk3Tm7");
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // reads KONTIGA_API_KEY
$result = $kontiga->requests->itemsAsked('col_5Gk3Tm7');
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.requests.items_asked("col_5Gk3Tm7")
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .requests()
    .items_asked("col_5Gk3Tm7".into())
    .await?;
```

Response, 200 OK:

```json
{
  "object": "item_count",
  "collection_id": "col_5Gk3Tm7",
  "items": 4,
  "required": 3,
  "optional": 1,
  "documents": 3,
  "answers": 1,
  "code": false
}
```

## Read a request's messages

The conversation with the request's party, oldest first: the request, the reminders, the case's asks and clarifications, the identity message, the one-time codes that open the link, and the party's answers and files, each message to the party with its delivery and rendered as they got it: subject, sender, reply-to, HTML and text, in their language and the brand kit.

`GET /v1/requests/{request_id}/messages`. Who may: Owner, Admin, Analyst, Developer and Viewer. CLI: `kontiga requests messages <request_id>`. MCP tool: `list_request_messages`.

**Parameters**
- `request_id` (id (rqs_), required): The request whose conversation to read. Links and codes in the rendered messages are hidden. In the path.

**Returns** list of messages: Every message to and from the party, oldest first, each one sent with how far it got and its rendered email or text message.

API:

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

CLI:

```bash
kontiga requests messages rqs_4Gt7Uy2
```

MCP tool `list_request_messages`:

```json
{
  "name": "list_request_messages",
  "arguments": {
    "request_id": "rqs_4Gt7Uy2"
  }
}
```

TypeScript:

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

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.requests.messages("rqs_4Gt7Uy2");
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.requests.messages("rqs_4Gt7Uy2")
```

Go:

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

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.requests().messages("rqs_4Gt7Uy2");
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.Requests.MessagesAsync("rqs_4Gt7Uy2");
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // reads KONTIGA_API_KEY
$result = $kontiga->requests->messages('rqs_4Gt7Uy2');
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.requests.messages("rqs_4Gt7Uy2")
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .requests()
    .messages("rqs_4Gt7Uy2".into())
    .await?;
```

Response, 200 OK:

```json
{
  "items": [
    {
      "id": "msg_2Fk9Tq4",
      "direction": "to_party",
      "kind": "request",
      "from": "Harbourline Lending",
      "text": "Harbourline Lending needs a few documents from you for your mortgage application.",
      "item": null,
      "document": null,
      "delivery": { "channel": "email", "state": "opened", "to": "ma•••@mailbox.example", "error": null, "at": "2026-11-24T09:12:55Z" },
      "reply_to": null,
      "note": null,
      "at": "2026-11-24T09:12:52Z",
      "rendered": {
        "subject": "Harbourline Lending needs a few documents",
        "from": "Harbourline Lending",
        "reply_to": "r-7k2m9xq4hb3tvw6ne8pa5dz2cy@reply.kontiga.com",
        "to": "ma•••@mailbox.example",
        "locale": "en",
        "text": "Hello Marta, Harbourline Lending needs a few documents from you for your mortgage application. Open your checklist: https://collect.kontiga.com/r/••••••••",
        "html": "<p>Hello Marta,</p><p>Harbourline Lending needs a few documents from you for your mortgage application.</p>"
      }
    },
    {
      "id": "msg_7Wd3Lm8",
      "direction": "from_party",
      "kind": "upload",
      "from": "Marta Kowalczyk",
      "text": "Uploaded payslip-oct-2026.pdf",
      "item": { "id": "itm_2Xc9Lb6", "label": "Payslips" },
      "document": { "id": "doc_5Wm2Hk7", "title": "Payslip, October 2026" },
      "delivery": null,
      "reply_to": null,
      "note": null,
      "at": "2026-11-24T09:31:20Z",
      "rendered": null
    }
  ],
  "next_cursor": null
}
```

## Ask for more

Ask a party for a further document or an answer, with the reason they will read; it goes on their link, on the same channel.

`POST /v1/requests/{request_id}/items`. Who may: Owner, Admin and Analyst. CLI: `kontiga requests add-item <request_id> --kind <document|question> --label <text> --reason <text> [--document-types <type,...>]`. MCP tool: `ask_for_more`.

**Parameters**
- `request_id` (id (rqs_), required): The request to add it to. It goes on the party's link, on the same channel. In the path.
- `kind` (enum, required): A further document, or an answer in words. One of `document`, `question`.
- `label` (string, required): What you ask for, in a few words. At most 120 characters.
- `document_types` (array of string, default []): For a document: the types that satisfy it. At most 10 items.
- `reason` (string, required): Why, in words the party reads. Never give a fraud finding as the reason. At most 500 characters.

**Returns** list of items: The request's items, with the new one added.

API:

```bash
curl -X POST https://api.kontiga.com/v1/requests/rqs_4Gt7Uy2/items \
  -H "Authorization: Bearer $KONTIGA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "kind": "document",
    "label": "Employment contract",
    "document_types": [
      "contract"
    ],
    "reason": "We need your contract to confirm your start date with Dunmore Freight."
  }'
```

CLI:

```bash
kontiga requests add-item rqs_4Gt7Uy2 \
  --kind document \
  --label 'Employment contract' \
  --document-types contract \
  --reason 'We need your contract to confirm your start date with Dunmore Freight.'
```

MCP tool `ask_for_more`:

```json
{
  "name": "ask_for_more",
  "arguments": {
    "request_id": "rqs_4Gt7Uy2",
    "kind": "document",
    "label": "Employment contract",
    "document_types": [
      "contract"
    ],
    "reason": "We need your contract to confirm your start date with Dunmore Freight."
  }
}
```

TypeScript:

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

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.requests.addItem("rqs_4Gt7Uy2", {
  kind: "document",
  label: "Employment contract",
  document_types: ["contract"],
  reason: "We need your contract to confirm your start date with Dunmore Freight.",
});
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.requests.add_item(
    "rqs_4Gt7Uy2",
    kind="document",
    label="Employment contract",
    document_types=["contract"],
    reason="We need your contract to confirm your start date with Dunmore Freight.",
)
```

Go:

```go
client := kontiga.NewClient() // reads KONTIGA_API_KEY
result, err := client.Requests.AddItem(ctx, "rqs_4Gt7Uy2", &kontiga.RequestsAddItemParams{
	Kind:          "document",
	Label:         "Employment contract",
	DocumentTypes: []string{"contract"},
	Reason:        "We need your contract to confirm your start date with Dunmore Freight.",
})
if err != nil {
	return err
}
```

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.requests().addItem("rqs_4Gt7Uy2", RequestsAddItemParams.builder()
    .kind("document")
    .label("Employment contract")
    .documentTypes(List.of("contract"))
    .reason("We need your contract to confirm your start date with Dunmore Freight.")
    .build());
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.Requests.AddItemAsync("rqs_4Gt7Uy2", new RequestsAddItemOptions
{
    Kind = "document",
    Label = "Employment contract",
    DocumentTypes = new[] { "contract" },
    Reason = "We need your contract to confirm your start date with Dunmore Freight.",
});
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // reads KONTIGA_API_KEY
$result = $kontiga->requests->addItem('rqs_4Gt7Uy2', [
    'kind' => 'document',
    'label' => 'Employment contract',
    'document_types' => ['contract'],
    'reason' => 'We need your contract to confirm your start date with Dunmore Freight.',
]);
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.requests.add_item(
  "rqs_4Gt7Uy2",
  kind: "document",
  label: "Employment contract",
  document_types: ["contract"],
  reason: "We need your contract to confirm your start date with Dunmore Freight."
)
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .requests()
    .add_item("rqs_4Gt7Uy2".into(), kontiga::requests::AddItemParams {
        kind: "document".into(),
        label: "Employment contract".into(),
        document_types: vec!["contract".into()],
        reason: "We need your contract to confirm your start date with Dunmore Freight.".into(),
        ..Default::default()
    })
    .await?;
```

Response, 201 Created:

```json
{
  "object": "list",
  "request_id": "rqs_4Gt7Uy2",
  "last_reminder_at": "2026-11-26T09:13:00Z",
  "items": [
    {
      "id": "itm_4Qd8Ks1",
      "request_id": "rqs_4Gt7Uy2",
      "requirement_id": null,
      "label": "Employment contract",
      "rule": "",
      "kind": "document",
      "required": true,
      "state": "not_started",
      "document_id": null,
      "reason": "We need your contract to confirm your start date with Dunmore Freight.",
      "added": true,
      "answer": null,
      "rejection": null
    }
  ]
}
```

## Ask again for a document

Send one item back to the end customer with the reason they will read; the case waits on them.

`POST /v1/cases/{case_id}/follow_ups`. Who may: Owner, Admin and Analyst. CLI: `kontiga cases ask-again <case_id> --item-id <item_id> [--reason <text>]`. MCP tool: `ask_again`.

**Parameters**
- `case_id` (id (case_), required): The case the item is on. In the path.
- `item_id` (id (itm_), required): The item to send back.
- `reason` (string): What to send instead, in words the party reads. Never a fraud finding. At most 500 characters.

**Returns** request: The request, with the item asked again.

API:

```bash
curl -X POST https://api.kontiga.com/v1/cases/case_7Kq2Xw9/follow_ups \
  -H "Authorization: Bearer $KONTIGA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "item_id": "itm_2Xc9Lb6",
    "reason": "The September payslip is cut off at the bottom. Please send the whole page."
  }'
```

CLI:

```bash
kontiga cases ask-again case_7Kq2Xw9 \
  --item-id itm_2Xc9Lb6 \
  --reason 'The September payslip is cut off at the bottom. Please send the whole page.'
```

MCP tool `ask_again`:

```json
{
  "name": "ask_again",
  "arguments": {
    "case_id": "case_7Kq2Xw9",
    "item_id": "itm_2Xc9Lb6",
    "reason": "The September payslip is cut off at the bottom. Please send the whole page."
  }
}
```

TypeScript:

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

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.requests.askAgain("case_7Kq2Xw9", {
  item_id: "itm_2Xc9Lb6",
  reason: "The September payslip is cut off at the bottom. Please send the whole page.",
});
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.requests.ask_again(
    "case_7Kq2Xw9",
    item_id="itm_2Xc9Lb6",
    reason="The September payslip is cut off at the bottom. Please send the whole page.",
)
```

Go:

```go
client := kontiga.NewClient() // reads KONTIGA_API_KEY
result, err := client.Requests.AskAgain(ctx, "case_7Kq2Xw9", &kontiga.RequestsAskAgainParams{
	ItemId: "itm_2Xc9Lb6",
	Reason: "The September payslip is cut off at the bottom. Please send the whole page.",
})
if err != nil {
	return err
}
```

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.requests().askAgain("case_7Kq2Xw9", RequestsAskAgainParams.builder()
    .itemId("itm_2Xc9Lb6")
    .reason("The September payslip is cut off at the bottom. Please send the whole page.")
    .build());
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.Requests.AskAgainAsync("case_7Kq2Xw9", new RequestsAskAgainOptions
{
    ItemId = "itm_2Xc9Lb6",
    Reason = "The September payslip is cut off at the bottom. Please send the whole page.",
});
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // reads KONTIGA_API_KEY
$result = $kontiga->requests->askAgain('case_7Kq2Xw9', [
    'item_id' => 'itm_2Xc9Lb6',
    'reason' => 'The September payslip is cut off at the bottom. Please send the whole page.',
]);
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.requests.ask_again(
  "case_7Kq2Xw9",
  item_id: "itm_2Xc9Lb6",
  reason: "The September payslip is cut off at the bottom. Please send the whole page."
)
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .requests()
    .ask_again("case_7Kq2Xw9".into(), kontiga::requests::AskAgainParams {
        item_id: "itm_2Xc9Lb6".into(),
        reason: "The September payslip is cut off at the bottom. Please send the whole page.".into(),
        ..Default::default()
    })
    .await?;
```

Response, 200 OK:

```json
{
  "id": "rqs_4Gt7Uy2",
  "object": "request",
  "mode": "live",
  "case_id": "case_7Kq2Xw9",
  "state": "in_progress",
  "items": [
    { "id": "itm_2Xc9Lb6", "requirement_id": "rqm_4Yc2Hn8", "state": "needs_redo", "document_id": "doc_5Wm2Hk7" }
  ]
}
```

## Accept an item

Accept what a party sent for one item of their checklist.

`POST /v1/items/{item_id}/accept`. Who may: Owner, Admin and Analyst; Developer in test mode. CLI: `kontiga items accept <item_id>`. MCP tool: `accept_item`.

**Parameters**
- `item_id` (id (itm_), required): A received item. In the path.

**Returns** item: The item, accepted.

API:

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

CLI:

```bash
kontiga items accept itm_2Xc9Lb6
```

MCP tool `accept_item`:

```json
{
  "name": "accept_item",
  "arguments": {
    "item_id": "itm_2Xc9Lb6"
  }
}
```

TypeScript:

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

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

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.items.accept("itm_2Xc9Lb6")
```

Go:

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

Java:

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

.NET:

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

PHP:

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

Ruby:

```ruby
require "kontiga"

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

Rust:

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

Response, 200 OK:

```json
{
  "id": "itm_2Xc9Lb6",
  "object": "item",
  "request_id": "rqs_4Gt7Uy2",
  "requirement_id": "rqm_4Yc2Hn8",
  "label": "Payslips",
  "kind": "document",
  "state": "accepted",
  "document_id": "doc_5Wm2Hk7",
  "reason": null,
  "added": false
}
```

## Waive an item

Stop asking a party for one item of their checklist, with the reason the team reads.

`POST /v1/items/{item_id}/waive`. Who may: Owner, Admin and Analyst; Developer in test mode. CLI: `kontiga items waive <item_id> --reason <text>`. MCP tool: `waive_item`.

**Parameters**
- `item_id` (id (itm_), required): The item to stop asking for. It no longer counts as missing. In the path.
- `reason` (string, required): Why, for your team. At most 500 characters.

**Returns** item: The item, waived.

API:

```bash
curl -X POST https://api.kontiga.com/v1/items/itm_5Jw7Nc2/waive \
  -H "Authorization: Bearer $KONTIGA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "reason": "The bank statement already shows her current address."
  }'
```

CLI:

```bash
kontiga items waive itm_5Jw7Nc2 \
  --reason 'The bank statement already shows her current address.'
```

MCP tool `waive_item`:

```json
{
  "name": "waive_item",
  "arguments": {
    "item_id": "itm_5Jw7Nc2",
    "reason": "The bank statement already shows her current address."
  }
}
```

TypeScript:

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

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.items.waive("itm_5Jw7Nc2", {
  reason: "The bank statement already shows her current address.",
});
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.items.waive("itm_5Jw7Nc2", reason="The bank statement already shows her current address.")
```

Go:

```go
client := kontiga.NewClient() // reads KONTIGA_API_KEY
result, err := client.Items.Waive(ctx, "itm_5Jw7Nc2", &kontiga.ItemsWaiveParams{
	Reason: "The bank statement already shows her current address.",
})
if err != nil {
	return err
}
```

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.items().waive("itm_5Jw7Nc2", ItemsWaiveParams.builder()
    .reason("The bank statement already shows her current address.")
    .build());
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.Items.WaiveAsync("itm_5Jw7Nc2", new ItemsWaiveOptions
{
    Reason = "The bank statement already shows her current address.",
});
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // reads KONTIGA_API_KEY
$result = $kontiga->items->waive('itm_5Jw7Nc2', [
    'reason' => 'The bank statement already shows her current address.',
]);
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.items.waive("itm_5Jw7Nc2", reason: "The bank statement already shows her current address.")
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .items()
    .waive("itm_5Jw7Nc2".into(), kontiga::items::WaiveParams {
        reason: "The bank statement already shows her current address.".into(),
        ..Default::default()
    })
    .await?;
```

Response, 200 OK:

```json
{
  "id": "itm_5Jw7Nc2",
  "object": "item",
  "request_id": "rqs_4Gt7Uy2",
  "requirement_id": "rqm_2Bv5Kt6",
  "label": "Proof of address",
  "kind": "document",
  "state": "waived",
  "document_id": null,
  "reason": "The bank statement already shows her current address.",
  "added": false
}
```

## Remind now

Send the party a reminder now, on the request's channel, naming what is still missing, with an optional note in your own words. At most once every 3 minutes and 10 times per request.

`POST /v1/requests/{request_id}/remind`. Who may: Owner, Admin and Analyst. CLI: `kontiga requests remind <request_id> [--note <text>]`. MCP tool: `remind_request`.

**Parameters**
- `request_id` (id (rqs_), required): The request to remind about. The reminder names what is still missing. In the path.
- `note` (string): A line in your own words, quoted in the reminder. At most 500 characters.

**Returns** request: The request, with the reminder in its messages.

API:

```bash
curl -X POST https://api.kontiga.com/v1/requests/rqs_4Gt7Uy2/remind \
  -H "Authorization: Bearer $KONTIGA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "note": "Only the bank statements are left. Thank you!"
  }'
```

CLI:

```bash
kontiga requests remind rqs_4Gt7Uy2 \
  --note 'Only the bank statements are left. Thank you!'
```

MCP tool `remind_request`:

```json
{
  "name": "remind_request",
  "arguments": {
    "request_id": "rqs_4Gt7Uy2",
    "note": "Only the bank statements are left. Thank you!"
  }
}
```

TypeScript:

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

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.requests.remind("rqs_4Gt7Uy2", {
  note: "Only the bank statements are left. Thank you!",
});
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.requests.remind("rqs_4Gt7Uy2", note="Only the bank statements are left. Thank you!")
```

Go:

```go
client := kontiga.NewClient() // reads KONTIGA_API_KEY
result, err := client.Requests.Remind(ctx, "rqs_4Gt7Uy2", &kontiga.RequestsRemindParams{
	Note: "Only the bank statements are left. Thank you!",
})
if err != nil {
	return err
}
```

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.requests().remind("rqs_4Gt7Uy2", RequestsRemindParams.builder()
    .note("Only the bank statements are left. Thank you!")
    .build());
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.Requests.RemindAsync("rqs_4Gt7Uy2", new RequestsRemindOptions
{
    Note = "Only the bank statements are left. Thank you!",
});
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // reads KONTIGA_API_KEY
$result = $kontiga->requests->remind('rqs_4Gt7Uy2', [
    'note' => 'Only the bank statements are left. Thank you!',
]);
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.requests.remind("rqs_4Gt7Uy2", note: "Only the bank statements are left. Thank you!")
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .requests()
    .remind("rqs_4Gt7Uy2".into(), kontiga::requests::RemindParams {
        note: "Only the bank statements are left. Thank you!".into(),
        ..Default::default()
    })
    .await?;
```

Response, 200 OK:

```json
{
  "id": "rqs_4Gt7Uy2",
  "object": "request",
  "mode": "live",
  "state": "in_progress",
  "channel": "email_and_sms",
  "case_id": "case_7Kq2Xw9",
  "case_reference": "APP-20418",
  "person_name": "Marta Kowalczyk",
  "collection_name": "Mortgage application",
  "locale": "en",
  "locale_label": "English",
  "contact": { "email": "marta.kowalczyk@mailbox.example", "phone": "+353 87 412 0937" },
  "created_at": "2026-11-24T09:12:40Z",
  "created_by": "Ines Moreau",
  "access": "code",
  "items_required": 3,
  "items_done": 2,
  "due_at": "2026-12-08T09:12:52Z",
  "reminder_schedule": "After 2 days, then every 3 days, and the day before the link expires, at most 4",
  "reminders_sent": 1,
  "reminders_paused": false,
  "next_reminder_at": "2026-11-29T09:13:00Z",
  "manual_reminders_left": 10,
  "next_manual_at": null,
  "items": [
    {
      "id": "itm_2Xc9Lb6",
      "requirement_id": "rqm_4Yc2Hn8",
      "label": "Your payslips",
      "team_label": "Payslips",
      "kind": "document",
      "rule": "The last 3 months, one each",
      "required": true,
      "state": "received",
      "files": [
        {
          "document_id": "doc_5Wm2Hk7",
          "title": "Payslip, October 2026",
          "file_name": "payslip-oct-2026.pdf",
          "received_at": "2026-11-24T09:31:20Z",
          "source": "portal",
          "sent_by": "Marta Kowalczyk",
          "instant_check": { "state": "passed", "reasons": [], "checked_at": "2026-11-24T09:31:24Z" },
          "told": "Got it.",
          "told_by": "screen",
          "kept_with_issues": false,
          "note": null,
          "replaced": false,
          "verdict": "review"
        }
      ],
      "answer": null,
      "redo": null,
      "waive_reason": null
    }
  ],
  "deliveries": [
    { "id": "dlv_1Kc8Wz3", "kind": "request", "channel": "email", "to": "marta.kowalczyk@mailbox.example", "state": "delivered", "error": null, "tries": 1, "at": "2026-11-24T09:12:55Z" }
  ],
  "open_asks": 0,
  "identity_pending": false,
  "opened_language": "en-IE",
  "timeline": [
    { "id": "rtl_3Bn6Xq1", "at": "2026-11-24T09:31:20Z", "summary": "Payslip, October 2026 uploaded", "who": "Marta Kowalczyk", "icon": "upload" },
    { "id": "rtl_9Vm2Hd7", "at": "2026-11-24T09:15:30Z", "summary": "Link opened", "who": "Marta Kowalczyk", "icon": "eye" },
    { "id": "rtl_5Ls4Pe8", "at": "2026-11-24T09:12:52Z", "summary": "Sent by email and text message", "who": "Ines Moreau", "icon": "send" }
  ]
}
```

## Send a request again

Send a request that was not sent, or whose message did not arrive, on the same channel or another one.

`POST /v1/requests/{request_id}/send`. Who may: Owner, Admin and Analyst. CLI: `kontiga requests resend <request_id> [--channel <email|sms|email_and_sms|link>] [--note <text>]`. MCP tool: `resend_request`.

**Parameters**
- `request_id` (id (rqs_), required): A request that was not sent, or whose message did not arrive. In the path.
- `channel` (enum): Another way to send it. The request's own channel when left out. One of `email`, `sms`, `email_and_sms`, `link`.
- `note` (string): A line in your own words, quoted in the message. At most 500 characters.

**Returns** request: The request, sent.

API:

```bash
curl -X POST https://api.kontiga.com/v1/requests/rqs_4Gt7Uy2/send \
  -H "Authorization: Bearer $KONTIGA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "channel": "sms"
  }'
```

CLI:

```bash
kontiga requests resend rqs_4Gt7Uy2 --channel sms
```

MCP tool `resend_request`:

```json
{
  "name": "resend_request",
  "arguments": {
    "request_id": "rqs_4Gt7Uy2",
    "channel": "sms"
  }
}
```

TypeScript:

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

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.requests.resend("rqs_4Gt7Uy2", {
  channel: "sms",
});
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.requests.resend("rqs_4Gt7Uy2", channel="sms")
```

Go:

```go
client := kontiga.NewClient() // reads KONTIGA_API_KEY
result, err := client.Requests.Resend(ctx, "rqs_4Gt7Uy2", &kontiga.RequestsResendParams{
	Channel: "sms",
})
if err != nil {
	return err
}
```

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.requests().resend("rqs_4Gt7Uy2", RequestsResendParams.builder()
    .channel("sms")
    .build());
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.Requests.ResendAsync("rqs_4Gt7Uy2", new RequestsResendOptions
{
    Channel = "sms",
});
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // reads KONTIGA_API_KEY
$result = $kontiga->requests->resend('rqs_4Gt7Uy2', [
    'channel' => 'sms',
]);
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.requests.resend("rqs_4Gt7Uy2", channel: "sms")
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .requests()
    .resend("rqs_4Gt7Uy2".into(), kontiga::requests::ResendParams {
        channel: "sms".into(),
        ..Default::default()
    })
    .await?;
```

Response, 200 OK:

```json
{
  "id": "rqs_4Gt7Uy2",
  "object": "request",
  "mode": "live",
  "state": "in_progress",
  "channel": "email_and_sms",
  "case_id": "case_7Kq2Xw9",
  "case_reference": "APP-20418",
  "person_name": "Marta Kowalczyk",
  "collection_name": "Mortgage application",
  "locale": "en",
  "locale_label": "English",
  "contact": { "email": "marta.kowalczyk@mailbox.example", "phone": "+353 87 412 0937" },
  "created_at": "2026-11-24T09:12:40Z",
  "created_by": "Ines Moreau",
  "access": "code",
  "items_required": 3,
  "items_done": 2,
  "due_at": "2026-12-08T09:12:52Z",
  "reminder_schedule": "After 2 days, then every 3 days, and the day before the link expires, at most 4",
  "reminders_sent": 1,
  "reminders_paused": false,
  "next_reminder_at": "2026-11-29T09:13:00Z",
  "manual_reminders_left": 10,
  "next_manual_at": null,
  "items": [
    {
      "id": "itm_2Xc9Lb6",
      "requirement_id": "rqm_4Yc2Hn8",
      "label": "Your payslips",
      "team_label": "Payslips",
      "kind": "document",
      "rule": "The last 3 months, one each",
      "required": true,
      "state": "received",
      "files": [
        {
          "document_id": "doc_5Wm2Hk7",
          "title": "Payslip, October 2026",
          "file_name": "payslip-oct-2026.pdf",
          "received_at": "2026-11-24T09:31:20Z",
          "source": "portal",
          "sent_by": "Marta Kowalczyk",
          "instant_check": { "state": "passed", "reasons": [], "checked_at": "2026-11-24T09:31:24Z" },
          "told": "Got it.",
          "told_by": "screen",
          "kept_with_issues": false,
          "note": null,
          "replaced": false,
          "verdict": "review"
        }
      ],
      "answer": null,
      "redo": null,
      "waive_reason": null
    }
  ],
  "deliveries": [
    { "id": "dlv_1Kc8Wz3", "kind": "request", "channel": "email", "to": "marta.kowalczyk@mailbox.example", "state": "delivered", "error": null, "tries": 1, "at": "2026-11-24T09:12:55Z" }
  ],
  "open_asks": 0,
  "identity_pending": false,
  "opened_language": "en-IE",
  "timeline": [
    { "id": "rtl_3Bn6Xq1", "at": "2026-11-24T09:31:20Z", "summary": "Payslip, October 2026 uploaded", "who": "Marta Kowalczyk", "icon": "upload" },
    { "id": "rtl_9Vm2Hd7", "at": "2026-11-24T09:15:30Z", "summary": "Link opened", "who": "Marta Kowalczyk", "icon": "eye" },
    { "id": "rtl_5Ls4Pe8", "at": "2026-11-24T09:12:52Z", "summary": "Sent by email and text message", "who": "Ines Moreau", "icon": "send" }
  ]
}
```

## Get a new link

A new link to the same request, for you to send on your own channel. It is shown once; earlier links keep working until the due date.

`POST /v1/requests/{request_id}/link`. Who may: Owner, Admin and Analyst. CLI: `kontiga requests link <request_id>`. MCP tool: `create_request_link`.

**Parameters**
- `request_id` (id (rqs_), required): The request to make a new link for. Earlier links keep working until the due date. In the path.

**Returns** request link: The new link and when it stops working. Kontiga keeps only its hash, so it cannot be shown again.

API:

```bash
curl -X POST https://api.kontiga.com/v1/requests/rqs_4Gt7Uy2/link \
  -H "Authorization: Bearer $KONTIGA_API_KEY"
```

CLI:

```bash
kontiga requests link rqs_4Gt7Uy2
```

MCP tool `create_request_link`:

```json
{
  "name": "create_request_link",
  "arguments": {
    "request_id": "rqs_4Gt7Uy2"
  }
}
```

TypeScript:

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

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.requests.link("rqs_4Gt7Uy2");
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.requests.link("rqs_4Gt7Uy2")
```

Go:

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

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.requests().link("rqs_4Gt7Uy2");
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.Requests.LinkAsync("rqs_4Gt7Uy2");
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // reads KONTIGA_API_KEY
$result = $kontiga->requests->link('rqs_4Gt7Uy2');
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.requests.link("rqs_4Gt7Uy2")
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .requests()
    .link("rqs_4Gt7Uy2".into())
    .await?;
```

Response, 201 Created:

```json
{
  "object": "request_link",
  "request_id": "rqs_4Gt7Uy2",
  "url": "https://r.kontiga.com/Q7mXk2Lp9rTb4WnZ",
  "expires_at": "2026-12-08T09:12:52Z"
}
```

## Send the identity message

Send the party the message that starts their identity verification, on the request's channel: what it is for, the three tips, and the link, which works for 24 hours. Only while the checklist's identity verification is not in.

`POST /v1/requests/{request_id}/identity_message`. Who may: Owner, Admin and Analyst. CLI: `kontiga requests send-identity <request_id> [--note <text>]`. MCP tool: `send_identity_message`.

**Parameters**
- `request_id` (id (rqs_), required): A request whose checklist asks for an identity verification that is not in yet. In the path.
- `note` (string): A line in your own words, quoted in the message. At most 500 characters.

**Returns** request: The request, with the identity message in its conversation.

API:

```bash
curl -X POST https://api.kontiga.com/v1/requests/rqs_4Gt7Uy2/identity_message \
  -H "Authorization: Bearer $KONTIGA_API_KEY"
```

CLI:

```bash
kontiga requests send-identity rqs_4Gt7Uy2
```

MCP tool `send_identity_message`:

```json
{
  "name": "send_identity_message",
  "arguments": {
    "request_id": "rqs_4Gt7Uy2"
  }
}
```

TypeScript:

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

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.requests.sendIdentity("rqs_4Gt7Uy2");
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.requests.send_identity("rqs_4Gt7Uy2")
```

Go:

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

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.requests().sendIdentity("rqs_4Gt7Uy2");
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.Requests.SendIdentityAsync("rqs_4Gt7Uy2");
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // reads KONTIGA_API_KEY
$result = $kontiga->requests->sendIdentity('rqs_4Gt7Uy2');
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.requests.send_identity("rqs_4Gt7Uy2")
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .requests()
    .send_identity("rqs_4Gt7Uy2".into())
    .await?;
```

Response, 200 OK:

```json
{
  "id": "rqs_4Gt7Uy2",
  "object": "request",
  "mode": "live",
  "state": "in_progress",
  "channel": "email_and_sms",
  "case_id": "case_7Kq2Xw9",
  "case_reference": "APP-20418",
  "person_name": "Marta Kowalczyk",
  "collection_name": "Mortgage application",
  "locale": "en",
  "locale_label": "English",
  "contact": { "email": "marta.kowalczyk@mailbox.example", "phone": "+353 87 412 0937" },
  "created_at": "2026-11-24T09:12:40Z",
  "created_by": "Ines Moreau",
  "access": "code",
  "items_required": 3,
  "items_done": 2,
  "due_at": "2026-12-08T09:12:52Z",
  "reminder_schedule": "After 2 days, then every 3 days, and the day before the link expires, at most 4",
  "reminders_sent": 1,
  "reminders_paused": false,
  "next_reminder_at": "2026-11-29T09:13:00Z",
  "manual_reminders_left": 10,
  "next_manual_at": null,
  "items": [
    {
      "id": "itm_2Xc9Lb6",
      "requirement_id": "rqm_4Yc2Hn8",
      "label": "Your payslips",
      "team_label": "Payslips",
      "kind": "document",
      "rule": "The last 3 months, one each",
      "required": true,
      "state": "received",
      "files": [
        {
          "document_id": "doc_5Wm2Hk7",
          "title": "Payslip, October 2026",
          "file_name": "payslip-oct-2026.pdf",
          "received_at": "2026-11-24T09:31:20Z",
          "source": "portal",
          "sent_by": "Marta Kowalczyk",
          "instant_check": { "state": "passed", "reasons": [], "checked_at": "2026-11-24T09:31:24Z" },
          "told": "Got it.",
          "told_by": "screen",
          "kept_with_issues": false,
          "note": null,
          "replaced": false,
          "verdict": "review"
        }
      ],
      "answer": null,
      "redo": null,
      "waive_reason": null
    }
  ],
  "deliveries": [
    { "id": "dlv_1Kc8Wz3", "kind": "request", "channel": "email", "to": "marta.kowalczyk@mailbox.example", "state": "delivered", "error": null, "tries": 1, "at": "2026-11-24T09:12:55Z" }
  ],
  "open_asks": 0,
  "identity_pending": false,
  "opened_language": "en-IE",
  "timeline": [
    { "id": "rtl_3Bn6Xq1", "at": "2026-11-24T09:31:20Z", "summary": "Payslip, October 2026 uploaded", "who": "Marta Kowalczyk", "icon": "upload" },
    { "id": "rtl_9Vm2Hd7", "at": "2026-11-24T09:15:30Z", "summary": "Link opened", "who": "Marta Kowalczyk", "icon": "eye" },
    { "id": "rtl_5Ls4Pe8", "at": "2026-11-24T09:12:52Z", "summary": "Sent by email and text message", "who": "Ines Moreau", "icon": "send" }
  ]
}
```

## Extend the due date

Give the party more time: a new due date. An expired request opens again where it was, and its earlier links work again.

`POST /v1/requests/{request_id}/extend`. Who may: Owner, Admin and Analyst. CLI: `kontiga requests extend <request_id> --expires-at <YYYY-MM-DD>`. MCP tool: `extend_request`.

**Parameters**
- `request_id` (id (rqs_), required): The request to give more time. In the path.
- `expires_at` (string, required): The new due date, `yyyy-mm-dd`, at most 90 days ahead.

**Returns** request: The request with its new due date.

API:

```bash
curl -X POST https://api.kontiga.com/v1/requests/rqs_4Gt7Uy2/extend \
  -H "Authorization: Bearer $KONTIGA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "expires_at": "2026-12-15"
  }'
```

CLI:

```bash
kontiga requests extend rqs_4Gt7Uy2 --expires-at 2026-12-15
```

MCP tool `extend_request`:

```json
{
  "name": "extend_request",
  "arguments": {
    "request_id": "rqs_4Gt7Uy2",
    "expires_at": "2026-12-15"
  }
}
```

TypeScript:

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

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.requests.extend("rqs_4Gt7Uy2", {
  expires_at: "2026-12-15",
});
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.requests.extend("rqs_4Gt7Uy2", expires_at="2026-12-15")
```

Go:

```go
client := kontiga.NewClient() // reads KONTIGA_API_KEY
result, err := client.Requests.Extend(ctx, "rqs_4Gt7Uy2", &kontiga.RequestsExtendParams{
	ExpiresAt: "2026-12-15",
})
if err != nil {
	return err
}
```

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.requests().extend("rqs_4Gt7Uy2", RequestsExtendParams.builder()
    .expiresAt("2026-12-15")
    .build());
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.Requests.ExtendAsync("rqs_4Gt7Uy2", new RequestsExtendOptions
{
    ExpiresAt = "2026-12-15",
});
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // reads KONTIGA_API_KEY
$result = $kontiga->requests->extend('rqs_4Gt7Uy2', [
    'expires_at' => '2026-12-15',
]);
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.requests.extend("rqs_4Gt7Uy2", expires_at: "2026-12-15")
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .requests()
    .extend("rqs_4Gt7Uy2".into(), kontiga::requests::ExtendParams {
        expires_at: "2026-12-15".into(),
        ..Default::default()
    })
    .await?;
```

Response, 200 OK:

```json
{
  "id": "rqs_4Gt7Uy2",
  "object": "request",
  "mode": "live",
  "state": "in_progress",
  "channel": "email_and_sms",
  "case_id": "case_7Kq2Xw9",
  "case_reference": "APP-20418",
  "person_name": "Marta Kowalczyk",
  "collection_name": "Mortgage application",
  "locale": "en",
  "locale_label": "English",
  "contact": { "email": "marta.kowalczyk@mailbox.example", "phone": "+353 87 412 0937" },
  "created_at": "2026-11-24T09:12:40Z",
  "created_by": "Ines Moreau",
  "access": "code",
  "items_required": 3,
  "items_done": 2,
  "due_at": "2026-12-08T09:12:52Z",
  "reminder_schedule": "After 2 days, then every 3 days, and the day before the link expires, at most 4",
  "reminders_sent": 1,
  "reminders_paused": false,
  "next_reminder_at": "2026-11-29T09:13:00Z",
  "manual_reminders_left": 10,
  "next_manual_at": null,
  "items": [
    {
      "id": "itm_2Xc9Lb6",
      "requirement_id": "rqm_4Yc2Hn8",
      "label": "Your payslips",
      "team_label": "Payslips",
      "kind": "document",
      "rule": "The last 3 months, one each",
      "required": true,
      "state": "received",
      "files": [
        {
          "document_id": "doc_5Wm2Hk7",
          "title": "Payslip, October 2026",
          "file_name": "payslip-oct-2026.pdf",
          "received_at": "2026-11-24T09:31:20Z",
          "source": "portal",
          "sent_by": "Marta Kowalczyk",
          "instant_check": { "state": "passed", "reasons": [], "checked_at": "2026-11-24T09:31:24Z" },
          "told": "Got it.",
          "told_by": "screen",
          "kept_with_issues": false,
          "note": null,
          "replaced": false,
          "verdict": "review"
        }
      ],
      "answer": null,
      "redo": null,
      "waive_reason": null
    }
  ],
  "deliveries": [
    { "id": "dlv_1Kc8Wz3", "kind": "request", "channel": "email", "to": "marta.kowalczyk@mailbox.example", "state": "delivered", "error": null, "tries": 1, "at": "2026-11-24T09:12:55Z" }
  ],
  "open_asks": 0,
  "identity_pending": false,
  "opened_language": "en-IE",
  "timeline": [
    { "id": "rtl_3Bn6Xq1", "at": "2026-11-24T09:31:20Z", "summary": "Payslip, October 2026 uploaded", "who": "Marta Kowalczyk", "icon": "upload" },
    { "id": "rtl_9Vm2Hd7", "at": "2026-11-24T09:15:30Z", "summary": "Link opened", "who": "Marta Kowalczyk", "icon": "eye" },
    { "id": "rtl_5Ls4Pe8", "at": "2026-11-24T09:12:52Z", "summary": "Sent by email and text message", "who": "Ines Moreau", "icon": "send" }
  ]
}
```

## Pause reminders

Stop the automatic reminders on one request until they are resumed. Remind now still works.

`POST /v1/requests/{request_id}/pause_reminders`. Who may: Owner, Admin and Analyst. CLI: `kontiga requests pause-reminders <request_id>`. MCP tool: `pause_request_reminders`.

**Parameters**
- `request_id` (id (rqs_), required): The request whose automatic reminders to stop. In the path.

**Returns** request: The request with its reminders paused.

API:

```bash
curl -X POST https://api.kontiga.com/v1/requests/rqs_4Gt7Uy2/pause_reminders \
  -H "Authorization: Bearer $KONTIGA_API_KEY"
```

CLI:

```bash
kontiga requests pause-reminders rqs_4Gt7Uy2
```

MCP tool `pause_request_reminders`:

```json
{
  "name": "pause_request_reminders",
  "arguments": {
    "request_id": "rqs_4Gt7Uy2"
  }
}
```

TypeScript:

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

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.requests.pauseReminders("rqs_4Gt7Uy2");
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.requests.pause_reminders("rqs_4Gt7Uy2")
```

Go:

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

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.requests().pauseReminders("rqs_4Gt7Uy2");
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.Requests.PauseRemindersAsync("rqs_4Gt7Uy2");
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // reads KONTIGA_API_KEY
$result = $kontiga->requests->pauseReminders('rqs_4Gt7Uy2');
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.requests.pause_reminders("rqs_4Gt7Uy2")
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .requests()
    .pause_reminders("rqs_4Gt7Uy2".into())
    .await?;
```

Response, 200 OK:

```json
{
  "id": "rqs_4Gt7Uy2",
  "object": "request",
  "mode": "live",
  "state": "in_progress",
  "channel": "email_and_sms",
  "case_id": "case_7Kq2Xw9",
  "case_reference": "APP-20418",
  "person_name": "Marta Kowalczyk",
  "collection_name": "Mortgage application",
  "locale": "en",
  "locale_label": "English",
  "contact": { "email": "marta.kowalczyk@mailbox.example", "phone": "+353 87 412 0937" },
  "created_at": "2026-11-24T09:12:40Z",
  "created_by": "Ines Moreau",
  "access": "code",
  "items_required": 3,
  "items_done": 2,
  "due_at": "2026-12-08T09:12:52Z",
  "reminder_schedule": "After 2 days, then every 3 days, and the day before the link expires, at most 4",
  "reminders_sent": 1,
  "reminders_paused": false,
  "next_reminder_at": "2026-11-29T09:13:00Z",
  "manual_reminders_left": 10,
  "next_manual_at": null,
  "items": [
    {
      "id": "itm_2Xc9Lb6",
      "requirement_id": "rqm_4Yc2Hn8",
      "label": "Your payslips",
      "team_label": "Payslips",
      "kind": "document",
      "rule": "The last 3 months, one each",
      "required": true,
      "state": "received",
      "files": [
        {
          "document_id": "doc_5Wm2Hk7",
          "title": "Payslip, October 2026",
          "file_name": "payslip-oct-2026.pdf",
          "received_at": "2026-11-24T09:31:20Z",
          "source": "portal",
          "sent_by": "Marta Kowalczyk",
          "instant_check": { "state": "passed", "reasons": [], "checked_at": "2026-11-24T09:31:24Z" },
          "told": "Got it.",
          "told_by": "screen",
          "kept_with_issues": false,
          "note": null,
          "replaced": false,
          "verdict": "review"
        }
      ],
      "answer": null,
      "redo": null,
      "waive_reason": null
    }
  ],
  "deliveries": [
    { "id": "dlv_1Kc8Wz3", "kind": "request", "channel": "email", "to": "marta.kowalczyk@mailbox.example", "state": "delivered", "error": null, "tries": 1, "at": "2026-11-24T09:12:55Z" }
  ],
  "open_asks": 0,
  "identity_pending": false,
  "opened_language": "en-IE",
  "timeline": [
    { "id": "rtl_3Bn6Xq1", "at": "2026-11-24T09:31:20Z", "summary": "Payslip, October 2026 uploaded", "who": "Marta Kowalczyk", "icon": "upload" },
    { "id": "rtl_9Vm2Hd7", "at": "2026-11-24T09:15:30Z", "summary": "Link opened", "who": "Marta Kowalczyk", "icon": "eye" },
    { "id": "rtl_5Ls4Pe8", "at": "2026-11-24T09:12:52Z", "summary": "Sent by email and text message", "who": "Ines Moreau", "icon": "send" }
  ]
}
```

## Resume reminders

Start the automatic reminders of a request again, on its schedule.

`POST /v1/requests/{request_id}/resume_reminders`. Who may: Owner, Admin and Analyst. CLI: `kontiga requests resume-reminders <request_id>`. MCP tool: `resume_request_reminders`.

**Parameters**
- `request_id` (id (rqs_), required): The request whose automatic reminders to start again. In the path.

**Returns** request: The request with its reminders running.

API:

```bash
curl -X POST https://api.kontiga.com/v1/requests/rqs_4Gt7Uy2/resume_reminders \
  -H "Authorization: Bearer $KONTIGA_API_KEY"
```

CLI:

```bash
kontiga requests resume-reminders rqs_4Gt7Uy2
```

MCP tool `resume_request_reminders`:

```json
{
  "name": "resume_request_reminders",
  "arguments": {
    "request_id": "rqs_4Gt7Uy2"
  }
}
```

TypeScript:

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

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.requests.resumeReminders("rqs_4Gt7Uy2");
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.requests.resume_reminders("rqs_4Gt7Uy2")
```

Go:

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

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.requests().resumeReminders("rqs_4Gt7Uy2");
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.Requests.ResumeRemindersAsync("rqs_4Gt7Uy2");
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // reads KONTIGA_API_KEY
$result = $kontiga->requests->resumeReminders('rqs_4Gt7Uy2');
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.requests.resume_reminders("rqs_4Gt7Uy2")
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .requests()
    .resume_reminders("rqs_4Gt7Uy2".into())
    .await?;
```

Response, 200 OK:

```json
{
  "id": "rqs_4Gt7Uy2",
  "object": "request",
  "mode": "live",
  "state": "in_progress",
  "channel": "email_and_sms",
  "case_id": "case_7Kq2Xw9",
  "case_reference": "APP-20418",
  "person_name": "Marta Kowalczyk",
  "collection_name": "Mortgage application",
  "locale": "en",
  "locale_label": "English",
  "contact": { "email": "marta.kowalczyk@mailbox.example", "phone": "+353 87 412 0937" },
  "created_at": "2026-11-24T09:12:40Z",
  "created_by": "Ines Moreau",
  "access": "code",
  "items_required": 3,
  "items_done": 2,
  "due_at": "2026-12-08T09:12:52Z",
  "reminder_schedule": "After 2 days, then every 3 days, and the day before the link expires, at most 4",
  "reminders_sent": 1,
  "reminders_paused": false,
  "next_reminder_at": "2026-11-29T09:13:00Z",
  "manual_reminders_left": 10,
  "next_manual_at": null,
  "items": [
    {
      "id": "itm_2Xc9Lb6",
      "requirement_id": "rqm_4Yc2Hn8",
      "label": "Your payslips",
      "team_label": "Payslips",
      "kind": "document",
      "rule": "The last 3 months, one each",
      "required": true,
      "state": "received",
      "files": [
        {
          "document_id": "doc_5Wm2Hk7",
          "title": "Payslip, October 2026",
          "file_name": "payslip-oct-2026.pdf",
          "received_at": "2026-11-24T09:31:20Z",
          "source": "portal",
          "sent_by": "Marta Kowalczyk",
          "instant_check": { "state": "passed", "reasons": [], "checked_at": "2026-11-24T09:31:24Z" },
          "told": "Got it.",
          "told_by": "screen",
          "kept_with_issues": false,
          "note": null,
          "replaced": false,
          "verdict": "review"
        }
      ],
      "answer": null,
      "redo": null,
      "waive_reason": null
    }
  ],
  "deliveries": [
    { "id": "dlv_1Kc8Wz3", "kind": "request", "channel": "email", "to": "marta.kowalczyk@mailbox.example", "state": "delivered", "error": null, "tries": 1, "at": "2026-11-24T09:12:55Z" }
  ],
  "open_asks": 0,
  "identity_pending": false,
  "opened_language": "en-IE",
  "timeline": [
    { "id": "rtl_3Bn6Xq1", "at": "2026-11-24T09:31:20Z", "summary": "Payslip, October 2026 uploaded", "who": "Marta Kowalczyk", "icon": "upload" },
    { "id": "rtl_9Vm2Hd7", "at": "2026-11-24T09:15:30Z", "summary": "Link opened", "who": "Marta Kowalczyk", "icon": "eye" },
    { "id": "rtl_5Ls4Pe8", "at": "2026-11-24T09:12:52Z", "summary": "Sent by email and text message", "who": "Ines Moreau", "icon": "send" }
  ]
}
```

## Cancel a request

Withdraw a request with a reason. Every link to it stops working and the party sees that nothing more is needed.

`POST /v1/requests/{request_id}/cancel`. Who may: Owner, Admin and Analyst. CLI: `kontiga requests cancel <request_id> --reason <text>`. MCP tool: `cancel_request`.

**Parameters**
- `request_id` (id (rqs_), required): A request not completed yet. This cannot be undone: send a new request instead. In the path.
- `reason` (string, required): Why, kept on the case. At most 500 characters.

**Returns** request: The request, cancelled.

API:

```bash
curl -X POST https://api.kontiga.com/v1/requests/rqs_4Gt7Uy2/cancel \
  -H "Authorization: Bearer $KONTIGA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "reason": "The applicant withdrew her application by phone."
  }'
```

CLI:

```bash
kontiga requests cancel rqs_4Gt7Uy2 \
  --reason 'The applicant withdrew her application by phone.'
```

MCP tool `cancel_request`:

```json
{
  "name": "cancel_request",
  "arguments": {
    "request_id": "rqs_4Gt7Uy2",
    "reason": "The applicant withdrew her application by phone."
  }
}
```

TypeScript:

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

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.requests.cancel("rqs_4Gt7Uy2", {
  reason: "The applicant withdrew her application by phone.",
});
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.requests.cancel("rqs_4Gt7Uy2", reason="The applicant withdrew her application by phone.")
```

Go:

```go
client := kontiga.NewClient() // reads KONTIGA_API_KEY
result, err := client.Requests.Cancel(ctx, "rqs_4Gt7Uy2", &kontiga.RequestsCancelParams{
	Reason: "The applicant withdrew her application by phone.",
})
if err != nil {
	return err
}
```

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.requests().cancel("rqs_4Gt7Uy2", RequestsCancelParams.builder()
    .reason("The applicant withdrew her application by phone.")
    .build());
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.Requests.CancelAsync("rqs_4Gt7Uy2", new RequestsCancelOptions
{
    Reason = "The applicant withdrew her application by phone.",
});
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // reads KONTIGA_API_KEY
$result = $kontiga->requests->cancel('rqs_4Gt7Uy2', [
    'reason' => 'The applicant withdrew her application by phone.',
]);
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.requests.cancel("rqs_4Gt7Uy2", reason: "The applicant withdrew her application by phone.")
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .requests()
    .cancel("rqs_4Gt7Uy2".into(), kontiga::requests::CancelParams {
        reason: "The applicant withdrew her application by phone.".into(),
        ..Default::default()
    })
    .await?;
```

Response, 200 OK:

```json
{
  "id": "rqs_4Gt7Uy2",
  "object": "request",
  "mode": "live",
  "state": "in_progress",
  "channel": "email_and_sms",
  "case_id": "case_7Kq2Xw9",
  "case_reference": "APP-20418",
  "person_name": "Marta Kowalczyk",
  "collection_name": "Mortgage application",
  "locale": "en",
  "locale_label": "English",
  "contact": { "email": "marta.kowalczyk@mailbox.example", "phone": "+353 87 412 0937" },
  "created_at": "2026-11-24T09:12:40Z",
  "created_by": "Ines Moreau",
  "access": "code",
  "items_required": 3,
  "items_done": 2,
  "due_at": "2026-12-08T09:12:52Z",
  "reminder_schedule": "After 2 days, then every 3 days, and the day before the link expires, at most 4",
  "reminders_sent": 1,
  "reminders_paused": false,
  "next_reminder_at": "2026-11-29T09:13:00Z",
  "manual_reminders_left": 10,
  "next_manual_at": null,
  "items": [
    {
      "id": "itm_2Xc9Lb6",
      "requirement_id": "rqm_4Yc2Hn8",
      "label": "Your payslips",
      "team_label": "Payslips",
      "kind": "document",
      "rule": "The last 3 months, one each",
      "required": true,
      "state": "received",
      "files": [
        {
          "document_id": "doc_5Wm2Hk7",
          "title": "Payslip, October 2026",
          "file_name": "payslip-oct-2026.pdf",
          "received_at": "2026-11-24T09:31:20Z",
          "source": "portal",
          "sent_by": "Marta Kowalczyk",
          "instant_check": { "state": "passed", "reasons": [], "checked_at": "2026-11-24T09:31:24Z" },
          "told": "Got it.",
          "told_by": "screen",
          "kept_with_issues": false,
          "note": null,
          "replaced": false,
          "verdict": "review"
        }
      ],
      "answer": null,
      "redo": null,
      "waive_reason": null
    }
  ],
  "deliveries": [
    { "id": "dlv_1Kc8Wz3", "kind": "request", "channel": "email", "to": "marta.kowalczyk@mailbox.example", "state": "delivered", "error": null, "tries": 1, "at": "2026-11-24T09:12:55Z" }
  ],
  "open_asks": 0,
  "identity_pending": false,
  "opened_language": "en-IE",
  "timeline": [
    { "id": "rtl_3Bn6Xq1", "at": "2026-11-24T09:31:20Z", "summary": "Payslip, October 2026 uploaded", "who": "Marta Kowalczyk", "icon": "upload" },
    { "id": "rtl_9Vm2Hd7", "at": "2026-11-24T09:15:30Z", "summary": "Link opened", "who": "Marta Kowalczyk", "icon": "eye" },
    { "id": "rtl_5Ls4Pe8", "at": "2026-11-24T09:12:52Z", "summary": "Sent by email and text message", "who": "Ines Moreau", "icon": "send" }
  ]
}
```

## Send requests in bulk

One request per row of a file, on one collection: each row finds or creates the person and the case, then sends. With dry_run, every row is checked and nothing is sent.

`POST /v1/request_batches`. Who may: Owner, Admin and Analyst. CLI: `kontiga request-batches create --collection-id <collection_id> --file <rows.csv> [--dry-run]`. MCP tool: `create_request_batch`.

**Parameters**
- `collection_id` (id (col_), required): The collection whose checklist every row is sent.
- `rows` (array of object, required): One per request, each with `reference`, `first_name`, `last_name`, `email`, `phone`, `locale`, `channel` (`email`, `sms`, `email_and_sms` or `own`), `case_reference`, `party_role`, `expires_in_days` and `context` (values for the checklist's conditions). With an API key, at most 1,000 rows a call; a file sent from the console holds up to 10,000. The CLI reads them from a CSV file.
- `dry_run` (boolean, default false): Check every row and send nothing (200, nothing kept). Run it first: it lists each row's problems. Without it the batch is kept and sent (201).
- `file_name` (string, default "requests.csv"): The file's name, shown with the batch. At most 200 characters.

**Returns** request batch: The batch with each row's outcome: ready (dry run), created, skipped with the reason, or failed with the error.

API:

```bash
curl -X POST https://api.kontiga.com/v1/request_batches \
  -H "Authorization: Bearer $KONTIGA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "collection_id": "col_5Gk3Tm7",
    "rows": [
      {
        "reference": "CUST-55210",
        "first_name": "Eoin",
        "last_name": "Fitzgerald",
        "email": "eoin.fitzgerald@mailbox.example",
        "channel": "email",
        "locale": "en"
      },
      {
        "reference": "CUST-55211",
        "first_name": "Niamh",
        "last_name": "Doherty",
        "phone": "+353862104418",
        "channel": "sms",
        "locale": "en"
      },
      {
        "reference": "CUST-55120",
        "first_name": "Marta",
        "last_name": "Kowalczyk",
        "email": "marta.kowalczyk@mailbox.example",
        "channel": "email",
        "locale": "en"
      }
    ],
    "dry_run": true,
    "file_name": "november-applicants.csv"
  }'
```

CLI:

```bash
kontiga request-batches create \
  --collection-id col_5Gk3Tm7 \
  --dry-run
```

MCP tool `create_request_batch`:

```json
{
  "name": "create_request_batch",
  "arguments": {
    "collection_id": "col_5Gk3Tm7",
    "rows": [
      {
        "reference": "CUST-55210",
        "first_name": "Eoin",
        "last_name": "Fitzgerald",
        "email": "eoin.fitzgerald@mailbox.example",
        "channel": "email",
        "locale": "en"
      },
      {
        "reference": "CUST-55211",
        "first_name": "Niamh",
        "last_name": "Doherty",
        "phone": "+353862104418",
        "channel": "sms",
        "locale": "en"
      },
      {
        "reference": "CUST-55120",
        "first_name": "Marta",
        "last_name": "Kowalczyk",
        "email": "marta.kowalczyk@mailbox.example",
        "channel": "email",
        "locale": "en"
      }
    ],
    "dry_run": true,
    "file_name": "november-applicants.csv"
  }
}
```

TypeScript:

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

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.requestBatches.create({
  collection_id: "col_5Gk3Tm7",
  dry_run: true,
});
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.request_batches.create(collection_id="col_5Gk3Tm7", dry_run=True)
```

Go:

```go
client := kontiga.NewClient() // reads KONTIGA_API_KEY
result, err := client.RequestBatches.Create(ctx, &kontiga.RequestBatchesCreateParams{
	CollectionId: "col_5Gk3Tm7",
	DryRun:       true,
})
if err != nil {
	return err
}
```

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.requestBatches().create(RequestBatchesCreateParams.builder()
    .collectionId("col_5Gk3Tm7")
    .dryRun(true)
    .build());
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.RequestBatches.CreateAsync(new RequestBatchesCreateOptions
{
    CollectionId = "col_5Gk3Tm7",
    DryRun = true,
});
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // reads KONTIGA_API_KEY
$result = $kontiga->requestBatches->create([
    'collection_id' => 'col_5Gk3Tm7',
    'dry_run' => true,
]);
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.request_batches.create(collection_id: "col_5Gk3Tm7", dry_run: true)
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .request_batches()
    .create(kontiga::request_batches::CreateParams {
        collection_id: "col_5Gk3Tm7".into(),
        dry_run: true,
        ..Default::default()
    })
    .await?;
```

Response, 200 OK:

```json
{
  "id": "rqb_5Ke9Wt3",
  "object": "request_batch",
  "collection_id": "col_5Gk3Tm7",
  "collection_name": "Mortgage application",
  "dry_run": true,
  "state": "checked",
  "file_name": "november-applicants.csv",
  "created_at": "2026-11-27T11:01:40Z",
  "created_by": "Ines Moreau",
  "completed_at": "2026-11-27T11:01:41Z",
  "total": 3,
  "processed": 3,
  "counts": { "ready": 2, "created": 0, "skipped": 1, "failed": 0 },
  "rows": [
    { "line": 1, "name": "Eoin Fitzgerald", "contact": "eoin.fitzgerald@mailbox.example", "channel": "email", "outcome": "ready", "problems": [], "request_id": null, "case_id": null },
    { "line": 2, "name": "Niamh Doherty", "contact": "+353 86 210 4418", "channel": "sms", "outcome": "ready", "problems": [], "request_id": null, "case_id": null },
    { "line": 3, "name": "Marta Kowalczyk", "contact": "marta.kowalczyk@mailbox.example", "channel": "email", "outcome": "skipped", "problems": [{ "field": null, "message": "Marta Kowalczyk already has an open request on this collection (KT-7Q2M9X4HB3)." }], "request_id": null, "case_id": null }
  ]
}
```

To send a whole file of up to 10,000 rows with an API key, send the CSV itself as the body with `Content-Type: text/csv`, and `collection_id`, `dry_run` and `file_name` in the query: `POST /v1/request_batches?collection_id=col_5Gk3Tm7&dry_run=true`. Its header row names the columns, one of the fields above each, and `context.<key>` for a condition's value. Send it with an `Idempotency-Key`: the same key answers the first batch again and makes nothing twice. A row whose person already has an open request on the collection is skipped, so the same file sent again creates no second request. Rows are sent in the background; read the batch until its state is `completed`. When it ends, the `request_batch.completed` event carries its counts.

## List batches

The bulk sends of the workspace, newest first, with their counts.

`GET /v1/request_batches`. Who may: Owner, Admin, Analyst, Developer and Viewer. CLI: `kontiga request-batches list`. MCP tool: `list_request_batches`.

**Parameters**

**Returns** list of request batches: The batches, newest first, without their rows.

API:

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

CLI:

```bash
kontiga request-batches list
```

MCP tool `list_request_batches`:

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

TypeScript:

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

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

Python:

```python
from kontiga import Kontiga

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

Go:

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

Java:

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

.NET:

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

PHP:

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

Ruby:

```ruby
require "kontiga"

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

Rust:

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

Response, 200 OK:

```json
{
  "items": [
    {
      "object": "request_batch",
      "id": "rqb_8Nx2Cv6",
      "collection_id": "col_5Gk3Tm7",
      "collection_name": "Mortgage application",
      "dry_run": false,
      "state": "completed",
      "file_name": "november-applicants.csv",
      "created_at": "2026-11-27T11:02:10Z",
      "created_by": "Ines Moreau",
      "completed_at": "2026-11-27T11:02:31Z",
      "total": 3,
      "processed": 3,
      "counts": { "ready": 0, "created": 2, "skipped": 1, "failed": 0 },
      "rows": []
    }
  ],
  "next_cursor": null
}
```

## Follow a batch

Where a batch is: rows done of the total, and how many were created, skipped and failed, with each row's outcome.

`GET /v1/request_batches/{batch_id}`. Who may: Owner, Admin, Analyst, Developer and Viewer. CLI: `kontiga request-batches get <batch_id>`. MCP tool: `get_request_batch`.

**Parameters**
- `batch_id` (id (rqb_), required): The batch to follow. Read it until its state is `completed`. In the path.

**Returns** request batch: The batch as it stands, its rows included.

API:

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

CLI:

```bash
kontiga request-batches get rqb_8Nx2Cv6
```

MCP tool `get_request_batch`:

```json
{
  "name": "get_request_batch",
  "arguments": {
    "batch_id": "rqb_8Nx2Cv6"
  }
}
```

TypeScript:

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

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

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.request_batches.get("rqb_8Nx2Cv6")
```

Go:

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

Java:

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

.NET:

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

PHP:

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

Ruby:

```ruby
require "kontiga"

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

Rust:

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

Response, 200 OK:

```json
{
  "id": "rqb_8Nx2Cv6",
  "object": "request_batch",
  "collection_id": "col_5Gk3Tm7",
  "collection_name": "Mortgage application",
  "dry_run": false,
  "state": "completed",
  "file_name": "november-applicants.csv",
  "created_at": "2026-11-27T11:02:10Z",
  "created_by": "Ines Moreau",
  "completed_at": "2026-11-27T11:02:31Z",
  "total": 3,
  "processed": 3,
  "counts": { "ready": 0, "created": 2, "skipped": 1, "failed": 0 },
  "rows": [
    { "line": 1, "name": "Eoin Fitzgerald", "contact": "eoin.fitzgerald@mailbox.example", "channel": "email", "outcome": "created", "problems": [], "request_id": "rqs_3Ws8Kb1", "case_id": "case_5Rt2Mn9" },
    { "line": 2, "name": "Niamh Doherty", "contact": "+353 86 210 4418", "channel": "sms", "outcome": "created", "problems": [], "request_id": "rqs_6Yh1Dq4", "case_id": "case_8Lc4Vx2" },
    { "line": 3, "name": "Marta Kowalczyk", "contact": "marta.kowalczyk@mailbox.example", "channel": "email", "outcome": "skipped", "problems": [{ "field": null, "message": "Marta Kowalczyk already has an open request on this collection (KT-7Q2M9X4HB3)." }], "request_id": null, "case_id": null }
  ]
}
```

## Download the batch results

Every row of a batch with its outcome, the reason a row was skipped or failed, and the request it created, as CSV.

`GET /v1/request_batches/{batch_id}/rows`. Who may: Owner, Admin, Analyst, Developer and Viewer. CLI: `kontiga request-batches rows <batch_id> [--output <path>]`. MCP tool: `list_request_batch_rows`.

**Parameters**
- `batch_id` (id (rqb_), required): The batch whose rows to read. In the path.

**Returns** list of batch rows: Each row with its line, outcome, problems and the request and case it created.

API:

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

CLI:

```bash
kontiga request-batches rows rqb_8Nx2Cv6
```

MCP tool `list_request_batch_rows`:

```json
{
  "name": "list_request_batch_rows",
  "arguments": {
    "batch_id": "rqb_8Nx2Cv6"
  }
}
```

TypeScript:

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

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.requestBatches.rows("rqb_8Nx2Cv6");
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.request_batches.rows("rqb_8Nx2Cv6")
```

Go:

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

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.requestBatches().rows("rqb_8Nx2Cv6");
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.RequestBatches.RowsAsync("rqb_8Nx2Cv6");
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // reads KONTIGA_API_KEY
$result = $kontiga->requestBatches->rows('rqb_8Nx2Cv6');
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.request_batches.rows("rqb_8Nx2Cv6")
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .request_batches()
    .rows("rqb_8Nx2Cv6".into())
    .await?;
```

Response, 200 OK:

```json
{
  "items": [
    { "line": 1, "name": "Eoin Fitzgerald", "contact": "eoin.fitzgerald@mailbox.example", "channel": "email", "outcome": "created", "problems": [], "request_id": "rqs_3Ws8Kb1", "case_id": "case_5Rt2Mn9" },
    { "line": 2, "name": "Niamh Doherty", "contact": "+353 86 210 4418", "channel": "sms", "outcome": "created", "problems": [], "request_id": "rqs_6Yh1Dq4", "case_id": "case_8Lc4Vx2" },
    { "line": 3, "name": "Marta Kowalczyk", "contact": "marta.kowalczyk@mailbox.example", "channel": "email", "outcome": "skipped", "problems": [{ "field": null, "message": "Marta Kowalczyk already has an open request on this collection (KT-7Q2M9X4HB3)." }], "request_id": null, "case_id": null }
  ],
  "next_cursor": null
}
```

## List the request languages

The 12 languages a request, its messages and the portal can be sent in, each with its code and its name.

`GET /v1/requests/locales`. Who may: Owner, Admin, Analyst, Developer and Viewer. CLI: `kontiga request-locales list`. MCP tool: `list_request_locales`.

**Parameters**

**Returns** list of request languages: Each language's code (the value of locale) and its name, in the order of Bynn's list.

API:

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

CLI:

```bash
kontiga request-locales list
```

MCP tool `list_request_locales`:

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

TypeScript:

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

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

Python:

```python
from kontiga import Kontiga

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

Go:

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

Java:

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

.NET:

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

PHP:

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

Ruby:

```ruby
require "kontiga"

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

Rust:

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

Response, 200 OK:

```json
{
  "items": [
    { "code": "en", "name": "English" },
    { "code": "pt", "name": "Portuguese" },
    { "code": "es", "name": "Spanish" },
    { "code": "ar", "name": "Arabic" },
    { "code": "zht", "name": "Chinese (traditional)" },
    { "code": "zhs", "name": "Chinese (simplified)" },
    { "code": "fr", "name": "French" },
    { "code": "de", "name": "German" },
    { "code": "ja", "name": "Japanese" },
    { "code": "hi", "name": "Hindi" },
    { "code": "ru", "name": "Russian" },
    { "code": "sv", "name": "Swedish" }
  ],
  "next_cursor": null
}
```

## Reopen a request

Open a completed or expired request again, with the reason the party reads and a new due date (7 days from now unless you choose one). What they sent stays; they can add or replace files until they send again.

`POST /v1/requests/{request_id}/reopen`. Who may: Owner, Admin and Analyst. CLI: `kontiga requests reopen <request_id> --reason <text> [--expires-at <YYYY-MM-DD>]`. MCP tool: `reopen_request`.

**Parameters**
- `request_id` (id (rqs_), required): A completed or expired request. In the path.
- `reason` (string, required): What the party reads when they open the link. Never a fraud finding. At most 500 characters.
- `expires_at` (string): The new due date, `yyyy-mm-dd`, within 90 days. 7 days from now when left out.

**Returns** request: The request, in progress again, with its new due date.

API:

```bash
curl -X POST https://api.kontiga.com/v1/requests/rqs_4Gt7Uy2/reopen \
  -H "Authorization: Bearer $KONTIGA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "reason": "We need your November payslip as well, now that it has been paid.",
    "expires_at": "2026-12-11"
  }'
```

CLI:

```bash
kontiga requests reopen rqs_4Gt7Uy2 \
  --reason 'We need your November payslip as well, now that it has been paid.' \
  --expires-at 2026-12-11
```

MCP tool `reopen_request`:

```json
{
  "name": "reopen_request",
  "arguments": {
    "request_id": "rqs_4Gt7Uy2",
    "reason": "We need your November payslip as well, now that it has been paid.",
    "expires_at": "2026-12-11"
  }
}
```

TypeScript:

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

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.requests.reopen("rqs_4Gt7Uy2", {
  reason: "We need your November payslip as well, now that it has been paid.",
  expires_at: "2026-12-11",
});
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.requests.reopen(
    "rqs_4Gt7Uy2",
    reason="We need your November payslip as well, now that it has been paid.",
    expires_at="2026-12-11",
)
```

Go:

```go
client := kontiga.NewClient() // reads KONTIGA_API_KEY
result, err := client.Requests.Reopen(ctx, "rqs_4Gt7Uy2", &kontiga.RequestsReopenParams{
	Reason:    "We need your November payslip as well, now that it has been paid.",
	ExpiresAt: "2026-12-11",
})
if err != nil {
	return err
}
```

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.requests().reopen("rqs_4Gt7Uy2", RequestsReopenParams.builder()
    .reason("We need your November payslip as well, now that it has been paid.")
    .expiresAt("2026-12-11")
    .build());
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.Requests.ReopenAsync("rqs_4Gt7Uy2", new RequestsReopenOptions
{
    Reason = "We need your November payslip as well, now that it has been paid.",
    ExpiresAt = "2026-12-11",
});
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // reads KONTIGA_API_KEY
$result = $kontiga->requests->reopen('rqs_4Gt7Uy2', [
    'reason' => 'We need your November payslip as well, now that it has been paid.',
    'expires_at' => '2026-12-11',
]);
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.requests.reopen(
  "rqs_4Gt7Uy2",
  reason: "We need your November payslip as well, now that it has been paid.",
  expires_at: "2026-12-11"
)
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .requests()
    .reopen("rqs_4Gt7Uy2".into(), kontiga::requests::ReopenParams {
        reason: "We need your November payslip as well, now that it has been paid.".into(),
        expires_at: "2026-12-11".into(),
        ..Default::default()
    })
    .await?;
```

Response, 200 OK:

```json
{
  "id": "rqs_4Gt7Uy2",
  "object": "request",
  "mode": "live",
  "state": "in_progress",
  "channel": "email_and_sms",
  "case_id": "case_7Kq2Xw9",
  "case_reference": "APP-20418",
  "person_name": "Marta Kowalczyk",
  "collection_name": "Mortgage application",
  "locale": "en",
  "locale_label": "English",
  "contact": { "email": "marta.kowalczyk@mailbox.example", "phone": "+353 87 412 0937" },
  "created_at": "2026-11-24T09:12:40Z",
  "created_by": "Ines Moreau",
  "access": "code",
  "items_required": 3,
  "items_done": 2,
  "due_at": "2026-12-08T09:12:52Z",
  "reminder_schedule": "After 2 days, then every 3 days, and the day before the link expires, at most 4",
  "reminders_sent": 1,
  "reminders_paused": false,
  "next_reminder_at": "2026-11-29T09:13:00Z",
  "manual_reminders_left": 10,
  "next_manual_at": null,
  "items": [
    {
      "id": "itm_2Xc9Lb6",
      "requirement_id": "rqm_4Yc2Hn8",
      "label": "Your payslips",
      "team_label": "Payslips",
      "kind": "document",
      "rule": "The last 3 months, one each",
      "required": true,
      "state": "received",
      "files": [
        {
          "document_id": "doc_5Wm2Hk7",
          "title": "Payslip, October 2026",
          "file_name": "payslip-oct-2026.pdf",
          "received_at": "2026-11-24T09:31:20Z",
          "source": "portal",
          "sent_by": "Marta Kowalczyk",
          "instant_check": { "state": "passed", "reasons": [], "checked_at": "2026-11-24T09:31:24Z" },
          "told": "Got it.",
          "told_by": "screen",
          "kept_with_issues": false,
          "note": null,
          "replaced": false,
          "verdict": "review"
        }
      ],
      "answer": null,
      "redo": null,
      "waive_reason": null
    }
  ],
  "deliveries": [
    { "id": "dlv_1Kc8Wz3", "kind": "request", "channel": "email", "to": "marta.kowalczyk@mailbox.example", "state": "delivered", "error": null, "tries": 1, "at": "2026-11-24T09:12:55Z" }
  ],
  "open_asks": 0,
  "identity_pending": false,
  "opened_language": "en-IE",
  "timeline": [
    { "id": "rtl_3Bn6Xq1", "at": "2026-11-24T09:31:20Z", "summary": "Payslip, October 2026 uploaded", "who": "Marta Kowalczyk", "icon": "upload" },
    { "id": "rtl_9Vm2Hd7", "at": "2026-11-24T09:15:30Z", "summary": "Link opened", "who": "Marta Kowalczyk", "icon": "eye" },
    { "id": "rtl_5Ls4Pe8", "at": "2026-11-24T09:12:52Z", "summary": "Sent by email and text message", "who": "Ines Moreau", "icon": "send" }
  ]
}
```

## Get a client secret for the widget

A new client secret for one request, for your page to mount the widget with its publishable key. It opens that request alone, works for one hour, and is shown once.

`POST /v1/requests/{request_id}/client_secret`. Who may: Owner, Admin and Analyst. CLI: `kontiga requests client-secret <request_id>`. MCP tool: `create_request_client_secret`.

**Parameters**
- `request_id` (id (rqs_), required): The request your page opens in the widget. Make the secret on your server, one for each time the page is shown, and hand it to the page; it works for one hour. For a request you are making, `client_secret: true` on `requests.send` or `cases.start` makes it with the request. In the path.

**Returns** client secret: The client secret and when it stops working. Kontiga keeps only its hash.

API:

```bash
curl -X POST https://api.kontiga.com/v1/requests/rqs_4Gt7Uy2/client_secret \
  -H "Authorization: Bearer $KONTIGA_API_KEY"
```

CLI:

```bash
kontiga requests client-secret rqs_4Gt7Uy2
```

MCP tool `create_request_client_secret`:

```json
{
  "name": "create_request_client_secret",
  "arguments": {
    "request_id": "rqs_4Gt7Uy2"
  }
}
```

TypeScript:

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

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.requests.clientSecret("rqs_4Gt7Uy2");
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.requests.client_secret("rqs_4Gt7Uy2")
```

Go:

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

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.requests().clientSecret("rqs_4Gt7Uy2");
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.Requests.ClientSecretAsync("rqs_4Gt7Uy2");
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // reads KONTIGA_API_KEY
$result = $kontiga->requests->clientSecret('rqs_4Gt7Uy2');
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.requests.client_secret("rqs_4Gt7Uy2")
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .requests()
    .client_secret("rqs_4Gt7Uy2".into())
    .await?;
```

Response, 201 Created:

```json
{
  "object": "client_secret",
  "request_id": "rqs_4Gt7Uy2",
  "client_secret": "rqs_4Gt7Uy2_secret_Hb7Qx2Lm9TcwR4Nd8Vk3Pz6F",
  "client_secret_expires_at": "2026-11-27T11:15:00Z"
}
```

## List a request's deliveries

Every message sent for a request, one record per message and channel: what it was (the request, a reminder, a redo, a code, the link again), where it went (masked), how far it got and why it did not arrive.

`GET /v1/requests/{request_id}/deliveries`. Who may: Owner, Admin, Analyst, Developer and Viewer. CLI: `kontiga requests deliveries <request_id>`. MCP tool: `list_request_deliveries`.

**Parameters**
- `request_id` (id (rqs_), required): The request whose messages to follow: one record per message and channel, oldest first, the address masked, the reason a message did not arrive in plain words. In the path.

**Returns** list of deliveries: The delivery records, oldest first, each with its state, tries and error.

API:

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

CLI:

```bash
kontiga requests deliveries rqs_4Gt7Uy2
```

MCP tool `list_request_deliveries`:

```json
{
  "name": "list_request_deliveries",
  "arguments": {
    "request_id": "rqs_4Gt7Uy2"
  }
}
```

TypeScript:

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

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.requests.deliveries("rqs_4Gt7Uy2");
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.requests.deliveries("rqs_4Gt7Uy2")
```

Go:

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

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.requests().deliveries("rqs_4Gt7Uy2");
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.Requests.DeliveriesAsync("rqs_4Gt7Uy2");
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // reads KONTIGA_API_KEY
$result = $kontiga->requests->deliveries('rqs_4Gt7Uy2');
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.requests.deliveries("rqs_4Gt7Uy2")
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .requests()
    .deliveries("rqs_4Gt7Uy2".into())
    .await?;
```

Response, 200 OK:

```json
{
  "items": [
    { "id": "dlv_1Kc8Wz3", "kind": "request", "channel": "email", "to": "ma***@mailbox.example", "state": "delivered", "error": null, "tries": 1, "at": "2026-11-24T09:12:55Z" },
    { "id": "dlv_6Rq2Tm8", "kind": "request", "channel": "sms", "to": "+353 87 *** 0937", "state": "delivered", "error": null, "tries": 1, "at": "2026-11-24T09:12:58Z" },
    { "id": "dlv_9Pd4Xc1", "kind": "reminder", "channel": "email", "to": "ma***@mailbox.example", "state": "bounced", "error": "The mailbox is full", "tries": 1, "at": "2026-11-26T09:00:12Z" }
  ],
  "next_cursor": null
}
```

## When a change is refused

Refusals of the requests and their items, by `error.code`

| Code | Status | When |
| --- | --- | --- |
| `request_transition_invalid` | 409 | The request's state does not allow it, for example cancelling a completed request or reminding one not sent yet. `details` names the state and the action. |
| `item_transition_invalid` | 409 | The item's state does not allow it, for example accepting an item nothing was sent for. `details` names the state and the action. |
| `request_open` | 409 | The party already has an open request on the case. `details.request_id` names it: ask for more on it. |
| `request_delivered` | 409 | Sending again a request that reached the party. Remind them instead. |
| `nothing_missing` | 409 | A reminder when every required item is in. |
| `items_missing` | 409 | Sending while a required item is not in or was asked for again. `details.missing` lists them. |
| `case_decided` | 409 | The case is decided. |
| `cooldown_active` | 429 | A request is sent by hand at most once every 3 minutes. `Retry-After` says when. |
| `max_attempts_reached` | 422 | A request is sent by hand at most 10 times. Send a new request to continue. |
| `contact_missing` | 422 | No address for the channel: an email for `email`, a phone number for `sms`, both for `email_and_sms`. |
| `channel_not_allowed` | 422 | The channel is not allowed in Collect's settings or the collection's. |
| `invalid_answer` | 422 | An answer that does not fit its question, with the field and the words the party reads. |
| `too_many_files` | 422 | An item holds at most 10 files. |
| `collection_not_found` | 404 | The collection was deleted. A draft or archived collection is sent as it stands. |
| `request_not_found`, `item_not_found`, `case_not_found`, `party_not_found` | 404 | No such object in this workspace and mode. |

## How messages go

- Each message is one delivery record per channel: the request, each reminder, a redo, a question from the case, a code, the link sent again and the identity message. It goes in the request's language; an email has an HTML part and a plain text part that keeps its line breaks.
- An email comes from your brand kit's sender name on your workspace's own address, such as `brightwater-lending@mail.kontiga.com`, or on your own sending domain once it is `verified` (Settings, Collect). A request, a reminder and a question go with the party's own reply address as Reply-To, so a reply lands on the case.
- A message that cannot go now is tried again, three times in all over 15 minutes. A record ends `sent`, then `delivered`, `bounced` or `failed`; a message is never sent twice. A request whose first message did not reach the party stays not sent, shows in the `delivery_failed` view, and its case's owner is told by email.
- Reminders never go in the quiet hours of Collect's settings (21:00 to 08:00 by default) in the party's time zone; one due then waits until they end.
- On your own channel nothing is sent: each due reminder is the event `request.reminder_due`, with a new link to deliver and what is still missing.
- In test mode, messages go only to your members' own email addresses. Any other message is recorded as `failed`, says why, and is not sent.

Why a message did not arrive (`error`)

| Error | When |
| --- | --- |
| The mailbox does not exist | The address bounced for good. |
| The mailbox is full | The recipient's mailbox took no more mail. |
| Messages to this address are stopped after earlier bounces or complaints | Earlier messages to it bounced or were marked as spam. |
| The message was refused by the recipient's side | The recipient's mail server or phone network refused it. |
| The recipient marked the message as spam | It arrived and was marked as spam. |
| The number is not a valid mobile number | The number cannot take a text message. |
| The number could not be reached | The phone was off or out of reach until the message ran out of time. |
| The address could not be reached | The recipient's mail server could not be reached. |
| The message was not delivered in time | It could not be handed over in time. |
| The message could not be sent. Send it again later | Every try failed on Kontiga's side. |
| In test mode, messages go only to the workspace's members' own addresses | A test-mode message to anyone else. |

The case's owner, the member who sent the request (or your owners and admins when an API key did), gets an email when a request expires with items missing, when its first message does not reach the party, when its code gate closes after too many wrong codes, and when the party asks for more time on an expired link, at most once a day for that.

## Replies by email

Every party has a reply address of their own, and every request, reminder and question goes out with it, so a party can answer by email. A reply from the party's email address on file, which their email provider confirms they sent, is `delivered`: it joins their conversation and each of its files becomes their document (`source` `email`), checked like any upload and answering an open item it fits. Mail from any other address waits on the case as `unknown_sender`: unchecked, not counted on any item and never answered, until a member gives it to a party or deletes it. After 30 days it is deleted with its files. Kontiga never answers a reply by email.

The case also has an address for your team (`team_address`), which never reaches a party. Mail to it from a member of the workspace, sent from the email address of their account, adds its files to the case as documents with `source` `email` and no party. A member whose email had no file that could be added gets one reply saying why. Mail to it from anyone else is dropped and never answered. Turning off `email_intake` in Collect's settings closes the team's addresses; parties' replies still arrive.

- An email is read up to 40 MB, and up to 20 of its files. PDF files and photos (JPEG, PNG, HEIC) up to 64 MB become documents; other files are listed on the email with the reason in `refused`.
- Files inside a forwarded email are taken too. Images under 20 KB shown in the email itself, such as a logo in a signature, are not files.
- Outlook's `winmail.dat` cannot be opened: ask for the files to be sent as PDF files or photos.
- A file flagged as harmful is never kept, and an email whose files could not be checked for harm keeps its words without documents.
- The text kept is the sender's own words, without the earlier email quoted below them.

## Read the case's email

The case's own addresses (the team's, and each party's reply address) and every email that reached it, newest first: a party's reply with its files, and mail from an unknown sender waiting for a member.

`GET /v1/cases/{case_id}/inbound_mail`. Who may: Owner, Admin, Analyst and Viewer; Developer in test mode. CLI: `kontiga inbound-mail list <case_id>`. MCP tool: `list_inbound_mail`.

**Parameters**
- `case_id` (id (case_), required): The case whose email to read: its addresses and the 100 latest emails, newest first. In the path.

**Returns** case mail: The team's address, each party's reply address, the mail that reached the case and how many emails wait for a member.

API:

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

CLI:

```bash
kontiga inbound-mail list case_7Kq2Xw9
```

MCP tool `list_inbound_mail`:

```json
{
  "name": "list_inbound_mail",
  "arguments": {
    "case_id": "case_7Kq2Xw9"
  }
}
```

TypeScript:

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

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

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.inbound_mail.list("case_7Kq2Xw9")
```

Go:

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

Java:

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

.NET:

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

PHP:

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

Ruby:

```ruby
require "kontiga"

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

Rust:

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

Response, 200 OK:

```json
{
  "object": "case_mail",
  "case_id": "case_7Kq2Xw9",
  "team_address": "case-4hn8c2pa9ux6rk3mfs7bv2td5q@reply.kontiga.com",
  "parties": [
    {
      "party_id": "pty_9Hd4Vb1",
      "person_id": "per_2Nc6Qs8",
      "person_name": "Marta Kowalczyk",
      "address": "r-7k2m9xq4hb3tvw6ne8pa5dz2cy@reply.kontiga.com"
    }
  ],
  "mail": [
    {
      "id": "inm_5Tq8Wc2",
      "object": "inbound_mail",
      "case_id": "case_7Kq2Xw9",
      "from": {
        "address": "m.kowalczyk.work@mailbox.example",
        "name": "Marta Kowalczyk"
      },
      "to": "r-7k2m9xq4hb3tvw6ne8pa5dz2cy@reply.kontiga.com",
      "subject": "Re: Your documents for Brightwater Lending",
      "text": "Here is my November payslip, sent from my work address.",
      "received_at": "2026-11-26T09:58:00Z",
      "state": "unknown_sender",
      "party_id": null,
      "attachments": [
        {
          "file_name": "payslip-november.pdf",
          "content_type": "application/pdf",
          "byte_size": 182044,
          "document_id": null,
          "refused": null
        }
      ],
      "handled": null,
      "simulated": false
    }
  ],
  "waiting": 1
}
```

## Give an email to a party

Mail from an unknown sender is the party's: its files become their documents, each checked like any upload and answering an item of theirs it fits, and its words join their conversation.

`POST /v1/inbound_mail/{mail_id}/assign`. Who may: Owner, Admin and Analyst; Developer in test mode. CLI: `kontiga inbound-mail assign <mail_id> --party-id <party_id>`. MCP tool: `assign_inbound_mail`.

**Parameters**
- `mail_id` (id (inm_), required): An email that waits: from an address that is not the party's. In the path.
- `party_id` (id (pty_), required): The party it belongs to. Its files become their documents.

**Returns** email: The email, given to the party, with the documents its files became.

API:

```bash
curl -X POST https://api.kontiga.com/v1/inbound_mail/inm_5Tq8Wc2/assign \
  -H "Authorization: Bearer $KONTIGA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "party_id": "pty_9Hd4Vb1"
  }'
```

CLI:

```bash
kontiga inbound-mail assign inm_5Tq8Wc2 --party-id pty_9Hd4Vb1
```

MCP tool `assign_inbound_mail`:

```json
{
  "name": "assign_inbound_mail",
  "arguments": {
    "mail_id": "inm_5Tq8Wc2",
    "party_id": "pty_9Hd4Vb1"
  }
}
```

TypeScript:

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

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.inboundMail.assign("inm_5Tq8Wc2", {
  party_id: "pty_9Hd4Vb1",
});
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.inbound_mail.assign("inm_5Tq8Wc2", party_id="pty_9Hd4Vb1")
```

Go:

```go
client := kontiga.NewClient() // reads KONTIGA_API_KEY
result, err := client.InboundMail.Assign(ctx, "inm_5Tq8Wc2", &kontiga.InboundMailAssignParams{
	PartyId: "pty_9Hd4Vb1",
})
if err != nil {
	return err
}
```

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.inboundMail().assign("inm_5Tq8Wc2", InboundMailAssignParams.builder()
    .partyId("pty_9Hd4Vb1")
    .build());
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.InboundMail.AssignAsync("inm_5Tq8Wc2", new InboundMailAssignOptions
{
    PartyId = "pty_9Hd4Vb1",
});
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // reads KONTIGA_API_KEY
$result = $kontiga->inboundMail->assign('inm_5Tq8Wc2', [
    'party_id' => 'pty_9Hd4Vb1',
]);
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.inbound_mail.assign("inm_5Tq8Wc2", party_id: "pty_9Hd4Vb1")
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .inbound_mail()
    .assign("inm_5Tq8Wc2".into(), kontiga::inbound_mail::AssignParams {
        party_id: "pty_9Hd4Vb1".into(),
        ..Default::default()
    })
    .await?;
```

Response, 200 OK:

```json
{
  "id": "inm_5Tq8Wc2",
  "object": "inbound_mail",
  "case_id": "case_7Kq2Xw9",
  "from": {
    "address": "m.kowalczyk.work@mailbox.example",
    "name": "Marta Kowalczyk"
  },
  "to": "r-7k2m9xq4hb3tvw6ne8pa5dz2cy@reply.kontiga.com",
  "subject": "Re: Your documents for Brightwater Lending",
  "text": "Here is my November payslip, sent from my work address.",
  "received_at": "2026-11-26T09:58:00Z",
  "state": "assigned",
  "party_id": "pty_9Hd4Vb1",
  "attachments": [
    {
      "file_name": "payslip-november.pdf",
      "content_type": "application/pdf",
      "byte_size": 182044,
      "document_id": "doc_3Rv9Lm4",
      "refused": null
    }
  ],
  "handled": {
    "by": "Ines Moreau",
    "at": "2026-11-26T10:05:00Z"
  },
  "simulated": false
}
```

## Delete an email

Removes mail from an unknown sender from the case. Its files are deleted and the sender is not answered; the case keeps a line that it was deleted.

`DELETE /v1/inbound_mail/{mail_id}`. Who may: Owner, Admin and Analyst; Developer in test mode. CLI: `kontiga inbound-mail delete <mail_id>`. MCP tool: `delete_inbound_mail`.

**Parameters**
- `mail_id` (id (inm_), required): An email that waits. Its files are deleted; the sender is not answered. In the path.

**Returns** email: The email, deleted: its files are gone, the line stays.

API:

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

CLI:

```bash
kontiga inbound-mail delete inm_5Tq8Wc2
```

MCP tool `delete_inbound_mail`:

```json
{
  "name": "delete_inbound_mail",
  "arguments": {
    "mail_id": "inm_5Tq8Wc2"
  }
}
```

TypeScript:

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

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.inboundMail.delete("inm_5Tq8Wc2");
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.inbound_mail.delete("inm_5Tq8Wc2")
```

Go:

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

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.inboundMail().delete("inm_5Tq8Wc2");
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.InboundMail.DeleteAsync("inm_5Tq8Wc2");
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // reads KONTIGA_API_KEY
$result = $kontiga->inboundMail->delete('inm_5Tq8Wc2');
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.inbound_mail.delete("inm_5Tq8Wc2")
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .inbound_mail()
    .delete("inm_5Tq8Wc2".into())
    .await?;
```

Response, 200 OK:

```json
{
  "id": "inm_5Tq8Wc2",
  "object": "inbound_mail",
  "case_id": "case_7Kq2Xw9",
  "from": {
    "address": "m.kowalczyk.work@mailbox.example",
    "name": "Marta Kowalczyk"
  },
  "to": "r-7k2m9xq4hb3tvw6ne8pa5dz2cy@reply.kontiga.com",
  "subject": "Re: Your documents for Brightwater Lending",
  "text": "Here is my November payslip, sent from my work address.",
  "received_at": "2026-11-26T09:58:00Z",
  "state": "deleted",
  "party_id": null,
  "attachments": [
    {
      "file_name": "payslip-november.pdf",
      "content_type": "application/pdf",
      "byte_size": 182044,
      "document_id": null,
      "refused": "Deleted with the email."
    }
  ],
  "handled": {
    "by": "Ines Moreau",
    "at": "2026-11-26T10:06:00Z"
  },
  "simulated": false
}
```

- `mail_not_found` (404): no email with this id in this workspace and mode.
- `mail_deleted` (409): the email is already deleted. `mail_assigned` (409): it already belongs to a party. `mail_not_waiting` (409): only an email that waits can be deleted.
- `case_decided` (409): reopen the case before you give it an email.

## Simulate a reply

Test mode only: plays a party replying to their request by email with a file attached, or a reply from an unknown sender, so the flow can be tried end to end without sending real mail.

`POST /v1/test_helpers/inbound_mail`. Who may: Owner, Admin and Analyst; Developer in test mode. CLI: `kontiga inbound-mail simulate <case_id> [--party-id <party_id>] [--unknown-sender <true|false>]`. MCP tool: `simulate_inbound_mail`.

**Parameters**
- `case_id` (id (case_), required): A case in test mode. A live key or workspace is refused with `forbidden` (403).
- `party_id` (id (pty_)): The party whose reply to play. When left out, the first party with an open request.
- `unknown_sender` (boolean): `true` plays a reply from an address that is not the party's, which waits for a member.

**Returns** email: The reply as it arrived: from the party, its file a document being checked; or from an unknown sender, waiting.

API:

```bash
curl -X POST https://api.kontiga.com/v1/test_helpers/inbound_mail \
  -H "Authorization: Bearer $KONTIGA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "case_id": "case_7Kq2Xw9",
    "party_id": "pty_9Hd4Vb1"
  }'
```

CLI:

```bash
kontiga inbound-mail simulate case_7Kq2Xw9 \
  --party-id pty_9Hd4Vb1
```

MCP tool `simulate_inbound_mail`:

```json
{
  "name": "simulate_inbound_mail",
  "arguments": {
    "case_id": "case_7Kq2Xw9",
    "party_id": "pty_9Hd4Vb1"
  }
}
```

TypeScript:

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

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.inboundMail.simulate({
  case_id: "case_7Kq2Xw9",
  party_id: "pty_9Hd4Vb1",
});
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.inbound_mail.simulate(case_id="case_7Kq2Xw9", party_id="pty_9Hd4Vb1")
```

Go:

```go
client := kontiga.NewClient() // reads KONTIGA_API_KEY
result, err := client.InboundMail.Simulate(ctx, &kontiga.InboundMailSimulateParams{
	CaseId:  "case_7Kq2Xw9",
	PartyId: "pty_9Hd4Vb1",
})
if err != nil {
	return err
}
```

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.inboundMail().simulate(InboundMailSimulateParams.builder()
    .caseId("case_7Kq2Xw9")
    .partyId("pty_9Hd4Vb1")
    .build());
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.InboundMail.SimulateAsync(new InboundMailSimulateOptions
{
    CaseId = "case_7Kq2Xw9",
    PartyId = "pty_9Hd4Vb1",
});
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // reads KONTIGA_API_KEY
$result = $kontiga->inboundMail->simulate([
    'case_id' => 'case_7Kq2Xw9',
    'party_id' => 'pty_9Hd4Vb1',
]);
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.inbound_mail.simulate(case_id: "case_7Kq2Xw9", party_id: "pty_9Hd4Vb1")
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .inbound_mail()
    .simulate(kontiga::inbound_mail::SimulateParams {
        case_id: "case_7Kq2Xw9".into(),
        party_id: "pty_9Hd4Vb1".into(),
        ..Default::default()
    })
    .await?;
```

Response, 201 Created:

```json
{
  "id": "inm_5Tq8Wc2",
  "object": "inbound_mail",
  "case_id": "case_7Kq2Xw9",
  "from": {
    "address": "marta.kowalczyk@mailbox.example",
    "name": "Marta Kowalczyk"
  },
  "to": "r-7k2m9xq4hb3tvw6ne8pa5dz2cy@reply.kontiga.com",
  "subject": "Re: Your documents for Brightwater Lending",
  "text": "Here is my November payslip, sent from my work address.",
  "received_at": "2026-11-26T09:58:00Z",
  "state": "delivered",
  "party_id": "pty_9Hd4Vb1",
  "attachments": [
    {
      "file_name": "payslip-november.pdf",
      "content_type": "application/pdf",
      "byte_size": 182044,
      "document_id": "doc_3Rv9Lm4",
      "refused": null
    }
  ],
  "handled": null,
  "simulated": true
}
```

## Request events

Webhooks and the realtime channel carry a request's life, each named `object.what_happened`: `request.created`, `request.sent`, `request.opened`, `request.completed`, `request.expired`, `request.cancelled`, `request.reopened`, `request.extended`, `request.reminder_due` (for a request on your own channel), `request.reminder_sent`, `request.delivered`, `request.delivery_failed`; an item's: `item.received`, `item.accepted`, `item.waived`, `item.reused`, `item.needs_redo`; and `request_batch.completed` when a bulk send is done. None carries a check's result: those are the document's own events.
