# Billing and plan

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

How a workspace pays: its plan and the documents it includes, its credit, card and auto reload, the company printed on its receipts, the add-ons it uses and the budgets that cap them, and meetings with sales for Enterprise. Usage shows what was counted and what paid for it, day by day. Every payment and every card goes through a secure payment page. Owners, admins and billing members read and change billing; every change is logged.

Updated November 30, 2026

## Contents

- [How a unit is paid for](https://kontiga.com/docs/billing#how-a-unit-is-paid-for)
- [Read billing and plan](https://kontiga.com/docs/billing#read-billing-and-plan)
- [List the plans and prices](https://kontiga.com/docs/billing#list-the-plans)
- [The plan](https://kontiga.com/docs/billing#the-plan)
- [Preview a plan change](https://kontiga.com/docs/billing#preview-a-plan-change)
- [Change the plan](https://kontiga.com/docs/billing#change-the-plan)
- [Cancel the plan](https://kontiga.com/docs/billing#cancel-the-plan)
- [Keep the plan](https://kontiga.com/docs/billing#keep-the-plan)
- [Credit and the card](https://kontiga.com/docs/billing#credit-and-the-card)
- [Add credit](https://kontiga.com/docs/billing#add-credit)
- [Replace the card](https://kontiga.com/docs/billing#replace-the-card)
- [Remove the card](https://kontiga.com/docs/billing#remove-the-card)
- [Change auto reload](https://kontiga.com/docs/billing#change-auto-reload)
- [Change the low-balance email](https://kontiga.com/docs/billing#change-the-low-balance-email)
- [Usage and receipts](https://kontiga.com/docs/billing#usage-and-receipts)
- [Read usage](https://kontiga.com/docs/billing#read-usage)
- [List receipts](https://kontiga.com/docs/billing#list-receipts)
- [Download a receipt](https://kontiga.com/docs/billing#download-a-receipt)
- [List changes to billing](https://kontiga.com/docs/billing#list-changes-to-billing)
- [Company and who pays](https://kontiga.com/docs/billing#company-and-who-pays)
- [Change company details](https://kontiga.com/docs/billing#change-company-details)
- [Choose who pays](https://kontiga.com/docs/billing#choose-who-pays)
- [Meeting sales](https://kontiga.com/docs/billing#meeting-sales)
- [List times to meet sales](https://kontiga.com/docs/billing#list-times-to-meet-sales)
- [Book a meeting with sales](https://kontiga.com/docs/billing#book-a-meeting-with-sales)
- [List meetings with sales](https://kontiga.com/docs/billing#list-meetings-with-sales)
- [Add-ons and budgets](https://kontiga.com/docs/billing#add-ons-and-budgets)
- [List the add-ons](https://kontiga.com/docs/billing#list-the-add-ons)
- [Turn an add-on on or off](https://kontiga.com/docs/billing#turn-an-add-on-on-or-off)
- [Change expert review settings](https://kontiga.com/docs/billing#change-expert-review-settings)
- [Set the Kompisar budget](https://kontiga.com/docs/billing#set-the-kompisar-budget)

## How a unit is paid for

- A plan includes a count of documents each period. Documents past the count, and units priced per use (identity verifications, screenings, expert reviews, Kompis tokens), are paid from credit. `billing_form` reads `plan`.
- Per outcome, one price for each case that reaches an outcome with everything in it covered, is only an Enterprise contract, arranged with sales. Under one, `billing_form` reads `per_outcome` and `contract` holds the workspace's own terms; no call switches it.
- Credit is bought from $5 to $10,000 on a secure payment page and lasts 12 months. Auto reload buys more with the card saved there when the balance falls below the amount you set, up to a monthly cap.
- Requests, the portal, reminders, test mode, reuse and work that fails on Kontiga's side are never charged.
- A larger plan starts at once, with a fresh count and credit back for the unused part of the old one. A smaller one waits for the period's end, and can be undone until then.

## Read billing and plan

The plan and its period, how the workspace is billed, the included documents used, an Enterprise contract's own terms, the credit balance, the card, auto reload, the company on receipts, the add-ons and the budgets. Owners, admins and billing members.

`GET /v1/billing`. Who may: Owner, Admin and Billing. CLI: `kontiga billing get`. MCP tool: `get_billing`.

**Parameters**

**Returns** billing: Everything about how the workspace pays, as it is now.

API:

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

CLI:

```bash
kontiga billing get
```

MCP tool `get_billing`:

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

TypeScript:

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

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

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.billing.get()
```

Go:

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

Java:

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

.NET:

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

PHP:

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

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.billing.get
```

Rust:

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

Response, 200 OK:

```json
{
  "object": "billing",
  "workspace_id": "ws_8Rq4Lm2",
  "workspace_name": "Brightwater Lending",
  "currency": "USD",
  "prices_are_samples": true,
  "plan": {
    "id": "growth",
    "name": "Growth",
    "interval": "month",
    "fee": 399,
    "state": "active",
    "started_at": "2026-09-14T10:22:00Z",
    "period_start": "2026-11-14",
    "period_end": "2026-12-13",
    "pending": null
  },
  "billing_form": "plan",
  "contract": null,
  "allowance": {
    "unit": "document",
    "included": 1250,
    "used": 206,
    "used_up_at": null,
    "resets_at": "2026-12-14T00:00:00Z"
  },
  "free_start": {
    "documents": {
      "used": 50,
      "total": 50
    },
    "identity_verifications": {
      "used": 5,
      "total": 5
    },
    "screenings": {
      "used": 5,
      "total": 5
    }
  },
  "balance": 270.08,
  "reserved": 4.2,
  "lots": [
    {
      "id": "lot_3Bq8Ws1",
      "source": "top_up",
      "amount": 200,
      "remaining": 20.08,
      "bought_at": "2026-09-15T13:40:00Z",
      "expires_at": "2027-09-15T13:40:00Z"
    },
    {
      "id": "lot_7Hd2Lk5",
      "source": "auto_reload",
      "amount": 250,
      "remaining": 250,
      "bought_at": "2026-11-21T02:10:00Z",
      "expires_at": "2027-11-21T02:10:00Z"
    }
  ],
  "card": {
    "brand": "Visa",
    "last4": "4417",
    "exp_month": 8,
    "exp_year": 2028
  },
  "auto_reload": {
    "enabled": true,
    "threshold": 50,
    "amount": 250,
    "monthly_cap": 1000,
    "reloaded_this_month": 250,
    "failures": 0,
    "last_decline": null,
    "state": "on"
  },
  "low_balance_email": {
    "amount": 100,
    "last_sent_at": null
  },
  "company": {
    "name": "Brightwater Lending B.V.",
    "billing_email": "finance@brightwater.example",
    "tax_id": "NL862035417B01",
    "tax_id_state": "valid",
    "address_line1": "Keizersgracht 214",
    "address_line2": "",
    "city": "Amsterdam",
    "state_region": "Noord-Holland",
    "postal_code": "1016 DZ",
    "country": "NL",
    "po": "PO-BW-2026-118",
    "registration_number": "70345128"
  },
  "billing_workspace": {
    "id": "ws_8Rq4Lm2",
    "name": "Brightwater Lending",
    "self": true
  },
  "billing_workspace_options": [
    {
      "id": "ws_2Vp6Gh9",
      "name": "Halden Mutual"
    }
  ],
  "addons": {
    "income": {
      "enabled": true,
      "covered_by_outcome": false
    },
    "reasoning_agent": {
      "enabled": true,
      "covered_by_outcome": false
    },
    "expert_review": {
      "enabled": true,
      "covered_by_outcome": false
    }
  },
  "expert_review": {
    "roles": [
      "owner",
      "admin",
      "analyst"
    ],
    "monthly_cap": 10,
    "rules": [
      "identity_needs_review"
    ],
    "used_this_month": 3
  },
  "kompisar_budget": {
    "amount": null,
    "spent": 7.4,
    "tokens": 739009,
    "month_resets_at": "2026-12-01T00:00:00Z",
    "price_per_million_tokens": 10,
    "paused_at_budget": false,
    "kompisar": []
  },
  "may": {
    "manage": true,
    "addons_income_reasoning": true,
    "expert_roles": true,
    "billing_workspace": true
  }
}
```

## List the plans and prices

Every self-serve plan with its fee and included documents, the price of a document past them, the per-use prices, the same on every plan, and what Enterprise adds. Enterprise has no public price. The prices are samples.

`GET /v1/plans`. Who may: Owner, Admin and Billing. CLI: `kontiga plans list`. MCP tool: `list_plans`.

**Parameters**

**Returns** list of plans: The plans, the per-use prices and the free start.

API:

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

CLI:

```bash
kontiga plans list
```

MCP tool `list_plans`:

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

TypeScript:

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

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

Python:

```python
from kontiga import Kontiga

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

Go:

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

Java:

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

.NET:

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

PHP:

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

Ruby:

```ruby
require "kontiga"

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

Rust:

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

Response, 200 OK:

```json
{
  "object": "plans",
  "plans": [
    {
      "id": "starter",
      "name": "Starter",
      "fee_month": 99,
      "fee_year": 990,
      "included_documents": 250,
      "sold_by": "self_serve",
      "adds": [],
      "api_keys": "10",
      "brand_kits": "2",
      "requests_per_second": "10",
      "single_sign_on": true,
      "custom_domain": false,
      "support": "Email",
      "sample": true
    },
    {
      "id": "growth",
      "name": "Growth",
      "fee_month": 399,
      "fee_year": 3990,
      "included_documents": 1250,
      "sold_by": "self_serve",
      "adds": [],
      "api_keys": "50",
      "brand_kits": "10",
      "requests_per_second": "25",
      "single_sign_on": true,
      "custom_domain": true,
      "support": "Email, answered in one business day",
      "sample": true
    },
    {
      "id": "business",
      "name": "Business",
      "fee_month": 999,
      "fee_year": 9990,
      "included_documents": 3500,
      "sold_by": "self_serve",
      "adds": [],
      "api_keys": "200",
      "brand_kits": "50",
      "requests_per_second": "100",
      "single_sign_on": true,
      "custom_domain": true,
      "support": "Priority, answered in four hours",
      "sample": true
    },
    {
      "id": "enterprise",
      "name": "Enterprise",
      "fee_month": null,
      "fee_year": null,
      "included_documents": null,
      "sold_by": "sales",
      "adds": [
        "Per outcome pricing: one price for each case that reaches an outcome, everything done in it covered",
        "Contract terms: an order form for your volume, with an invoice each month",
        "Volume prices: for documents, verifications and screenings at your scale"
      ],
      "api_keys": "By contract",
      "brand_kits": "By contract",
      "requests_per_second": "By contract",
      "single_sign_on": true,
      "custom_domain": true,
      "support": "By contract",
      "sample": false
    }
  ],
  "document": {
    "key": "price.document",
    "unit": "document",
    "what": "A document checked and read",
    "amount": 0.5,
    "per": "per document",
    "sample": true
  },
  "prices": [
    {
      "key": "price.identity_verification",
      "unit": "identity_verification",
      "what": "An identity verification, any method",
      "amount": 1,
      "per": "per verification",
      "sample": true
    },
    {
      "key": "price.screening",
      "unit": "screening",
      "what": "A screening of one person",
      "amount": 0.2,
      "per": "per screening",
      "sample": true
    },
    {
      "key": "price.kompis",
      "unit": "kompis_run",
      "what": "A Kompis at work, by the tokens it reads and writes",
      "amount": 10,
      "per": "per million tokens",
      "sample": true
    }
  ],
  "annual_months": 10,
  "free_start": {
    "documents": 50,
    "identity_verifications": 5,
    "screenings": 5
  },
  "prices_are_samples": true
}
```

## The plan

## Preview a plan change

What a change to another plan would do before it is made: when it takes effect, what is charged today with its tax, the credit that comes back, and what the workspace gains or loses.

`GET /v1/billing/plan/preview`. Who may: Owner, Admin and Billing. CLI: `kontiga plan preview --plan <starter|growth|business> --interval <month|year>`. MCP tool: `preview_plan_change`.

**Parameters**
- `plan` (enum, required): The plan to move to. One of `starter`, `growth`, `business`, `enterprise`.
- `interval` (enum, required): Pay by the month, or by the year for ten months' price. One of `month`, `year`.

**Returns** plan change preview: When it takes effect, due today (fee, tax, total), credit back, the balance after, and the gains and losses.

API:

```bash
curl -X GET "https://api.kontiga.com/v1/billing/plan/preview?plan=business&interval=month" \
  -H "Authorization: Bearer $KONTIGA_API_KEY"
```

CLI:

```bash
kontiga plan preview --plan business --interval month
```

MCP tool `preview_plan_change`:

```json
{
  "name": "preview_plan_change",
  "arguments": {
    "plan": "business",
    "interval": "month"
  }
}
```

TypeScript:

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

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.plan.preview({
  plan: "business",
  interval: "month",
});
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.plan.preview(plan="business", interval="month")
```

Go:

```go
client := kontiga.NewClient() // reads KONTIGA_API_KEY
result, err := client.Plan.Preview(ctx, &kontiga.PlanPreviewParams{
	Plan:     "business",
	Interval: "month",
})
if err != nil {
	return err
}
```

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.plan().preview(PlanPreviewParams.builder()
    .plan("business")
    .interval("month")
    .build());
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.Plan.PreviewAsync(new PlanPreviewOptions
{
    Plan = "business",
    Interval = "month",
});
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // reads KONTIGA_API_KEY
$result = $kontiga->plan->preview([
    'plan' => 'business',
    'interval' => 'month',
]);
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.plan.preview(plan: "business", interval: "month")
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .plan()
    .preview(kontiga::plan::PreviewParams {
        plan: "business".into(),
        interval: "month".into(),
        ..Default::default()
    })
    .await?;
```

Response, 200 OK:

```json
{
  "object": "plan_change_preview",
  "plan_id": "business",
  "plan_name": "Business",
  "interval": "month",
  "from": {
    "plan_id": "growth",
    "plan_name": "Growth",
    "interval": "month"
  },
  "takes_effect_at": "2026-11-26T09:50:00Z",
  "starts_now": true,
  "due_today": {
    "fee": 999,
    "tax": 0,
    "total": 999
  },
  "next_fee": 999,
  "tax_note": "Reverse charge: no VAT is added, as NL862035417B01 is a valid EU VAT number.",
  "credit_back": 333.24,
  "balance": 270.08,
  "balance_after": 603.32,
  "included_before": 1250,
  "included_after": 3500,
  "unit_word": "documents",
  "gains": [
    "3,500 documents included each month",
    "200 API keys",
    "50 brand kits",
    "100 requests a second",
    "Priority support, answered in four hours"
  ],
  "loses": [],
  "paid_with": "Visa ending 4417"
}
```

## Change the plan

Start a plan, or move to another. Paying for it opens a secure payment page; a larger plan starts once it is paid, with a fresh count and credit back for the unused part; a smaller one waits for the period's end and charges nothing today. Enterprise is arranged with sales: book a meeting.

`POST /v1/billing/plan`. Who may: Owner, Admin and Billing. CLI: `kontiga plan change --plan <starter|growth|business> --interval <month|year>`. MCP tool: `change_plan`.

**Parameters**
- `plan` (enum, required): The plan to start or move to. One of `starter`, `growth`, `business`, `enterprise`.
- `interval` (enum, required): Pay by the month or by the year. One of `month`, `year`.

**Returns** plan change: The plan as changed, with the payment session that pays for it.

API:

```bash
curl -X POST https://api.kontiga.com/v1/billing/plan \
  -H "Authorization: Bearer $KONTIGA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "plan": "business",
    "interval": "month"
  }'
```

CLI:

```bash
kontiga plan change --plan business --interval month
```

MCP tool `change_plan`:

```json
{
  "name": "change_plan",
  "arguments": {
    "plan": "business",
    "interval": "month"
  }
}
```

TypeScript:

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

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.plan.change({
  plan: "business",
  interval: "month",
});
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.plan.change(plan="business", interval="month")
```

Go:

```go
client := kontiga.NewClient() // reads KONTIGA_API_KEY
result, err := client.Plan.Change(ctx, &kontiga.PlanChangeParams{
	Plan:     "business",
	Interval: "month",
})
if err != nil {
	return err
}
```

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.plan().change(PlanChangeParams.builder()
    .plan("business")
    .interval("month")
    .build());
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.Plan.ChangeAsync(new PlanChangeOptions
{
    Plan = "business",
    Interval = "month",
});
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // reads KONTIGA_API_KEY
$result = $kontiga->plan->change([
    'plan' => 'business',
    'interval' => 'month',
]);
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.plan.change(plan: "business", interval: "month")
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .plan()
    .change(kontiga::plan::ChangeParams {
        plan: "business".into(),
        interval: "month".into(),
        ..Default::default()
    })
    .await?;
```

Response, 200 OK:

```json
{
  "object": "plan_change",
  "billing": {
    "object": "billing",
    "workspace_id": "ws_8Rq4Lm2",
    "plan": {
      "id": "growth",
      "name": "Growth",
      "interval": "month",
      "fee": 399,
      "state": "active",
      "started_at": "2026-09-14T10:22:00Z",
      "period_start": "2026-11-14",
      "period_end": "2026-12-13",
      "pending": null
    },
    "balance": 270.08
  },
  "takes_effect_at": "2026-11-26T09:50:00Z",
  "checkout": {
    "object": "checkout",
    "session_id": "cs_live_a1Kq7Vb3",
    "url": "https://pay.kontiga.com/c/cs_live_a1Kq7Vb3",
    "state": "open",
    "purpose": "plan",
    "description": "Business plan, one month",
    "amount": 999,
    "card": null
  },
  "checkout_url": "https://pay.kontiga.com/c/cs_live_a1Kq7Vb3",
  "credit_back": 333.24
}
```

Whatever is charged today is paid on a secure payment page: `checkout_url` is that page while it is open, and the plan starts when it is paid. A smaller plan waits for the period's end and has no session. `plan: enterprise` is refused: book a meeting with sales instead.

## Cancel the plan

The plan ends at the period's end. Purchased credit stays; live work then needs a plan again.

`DELETE /v1/billing/plan`. Who may: Owner, Admin and Billing. CLI: `kontiga plan cancel`. MCP tool: `cancel_plan`.

**Parameters**

**Returns** billing: Billing, with the plan ending at the period's end.

API:

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

CLI:

```bash
kontiga plan cancel
```

MCP tool `cancel_plan`:

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

TypeScript:

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

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

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.plan.cancel()
```

Go:

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

Java:

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

.NET:

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

PHP:

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

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.plan.cancel
```

Rust:

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

Response, 200 OK:

```json
{
  "object": "billing",
  "workspace_id": "ws_8Rq4Lm2",
  "plan": {
    "id": "growth",
    "name": "Growth",
    "interval": "month",
    "fee": 399,
    "state": "cancelling",
    "started_at": "2026-09-14T10:22:00Z",
    "period_start": "2026-11-14",
    "period_end": "2026-12-13",
    "pending": {
      "kind": "cancel",
      "at": "2026-12-14T00:00:00Z"
    }
  }
}
```

## Keep the plan

Undo a cancellation or a downgrade waiting for the period's end, so the plan carries on as it is.

`POST /v1/billing/plan/resume`. Who may: Owner, Admin and Billing. CLI: `kontiga plan resume`. MCP tool: `resume_plan`.

**Parameters**

**Returns** billing: Billing, with nothing waiting.

API:

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

CLI:

```bash
kontiga plan resume
```

MCP tool `resume_plan`:

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

TypeScript:

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

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

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.plan.resume()
```

Go:

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

Java:

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

.NET:

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

PHP:

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

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.plan.resume
```

Rust:

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

Response, 200 OK:

```json
{
  "object": "billing",
  "workspace_id": "ws_8Rq4Lm2",
  "plan": {
    "id": "growth",
    "name": "Growth",
    "interval": "month",
    "fee": 399,
    "state": "active",
    "started_at": "2026-09-14T10:22:00Z",
    "period_start": "2026-11-14",
    "period_end": "2026-12-13",
    "pending": null
  }
}
```

## Credit and the card

## Add credit

Buy credit from $5 to $10,000 on a secure payment page, which saves the card for auto reload. Credit pays for units past the plan's count and units priced per use, and lasts 12 months.

`POST /v1/credit`. Who may: Owner, Admin and Billing. CLI: `kontiga credit add --amount <5-10000>`. MCP tool: `add_credit`.

**Parameters**
- `amount` (number, required): How much credit to buy, in USD, from 5 to 10,000. It is paid on a secure payment page, which offers the saved card first and saves the card used.

**Returns** credit, paid: Billing, and the payment session that pays for the credit.

API:

```bash
curl -X POST https://api.kontiga.com/v1/credit \
  -H "Authorization: Bearer $KONTIGA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "amount": 200
  }'
```

CLI:

```bash
kontiga credit add --amount 200
```

MCP tool `add_credit`:

```json
{
  "name": "add_credit",
  "arguments": {
    "amount": 200
  }
}
```

TypeScript:

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

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.credit.add({
  amount: 200,
});
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.credit.add(amount=200)
```

Go:

```go
client := kontiga.NewClient() // reads KONTIGA_API_KEY
result, err := client.Credit.Add(ctx, &kontiga.CreditAddParams{
	Amount: 200,
})
if err != nil {
	return err
}
```

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.credit().add(CreditAddParams.builder()
    .amount(200)
    .build());
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.Credit.AddAsync(new CreditAddOptions
{
    Amount = 200,
});
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // reads KONTIGA_API_KEY
$result = $kontiga->credit->add([
    'amount' => 200,
]);
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.credit.add(amount: 200)
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .credit()
    .add(kontiga::credit::AddParams {
        amount: 200,
        ..Default::default()
    })
    .await?;
```

Response, 200 OK:

```json
{
  "object": "checkout_result",
  "billing": {
    "object": "billing",
    "workspace_id": "ws_8Rq4Lm2",
    "balance": 270.08
  },
  "checkout": {
    "object": "checkout",
    "session_id": "cs_live_7Hd2Lk5",
    "url": "https://pay.kontiga.com/c/cs_live_7Hd2Lk5",
    "state": "open",
    "purpose": "credit",
    "description": "Credit",
    "amount": 200,
    "card": null
  }
}
```

The credit lands, with its receipt, once the payment is confirmed.

## Replace the card

Add or replace the card on a secure payment page; Kontiga never sees the number. It pays the plan, auto reloads and a failed payment's retry from then on.

`POST /v1/billing/card`. Who may: Owner, Admin and Billing. CLI: `kontiga billing card replace`. MCP tool: `replace_card`.

**Parameters**

**Returns** card, saved: Billing, and the payment session that saves the card.

API:

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

CLI:

```bash
kontiga billing card replace
```

MCP tool `replace_card`:

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

TypeScript:

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

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.card.replace();
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.card.replace()
```

Go:

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

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.card().replace();
```

.NET:

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

PHP:

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

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.card.replace
```

Rust:

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

Response, 200 OK:

```json
{
  "object": "checkout_result",
  "billing": {
    "object": "billing",
    "workspace_id": "ws_8Rq4Lm2",
    "card": {
      "brand": "Visa",
      "last4": "4417",
      "exp_month": 8,
      "exp_year": 2028
    }
  },
  "checkout": {
    "object": "checkout",
    "session_id": "cs_live_3Bq8Ws1",
    "url": "https://pay.kontiga.com/c/cs_live_3Bq8Ws1",
    "state": "open",
    "purpose": "card",
    "description": "Replace the card",
    "amount": null,
    "card": null
  }
}
```

Kontiga only learns the card's brand, its last four digits and when it expires. No call takes a card number.

## Remove the card

Removes the card on file. Auto reload turns off, and the plan's next fee needs a card again.

`DELETE /v1/billing/card`. Who may: Owner, Admin and Billing. CLI: `kontiga billing card remove`. MCP tool: `remove_card`.

**Parameters**

**Returns** billing: Billing, with no card and auto reload off.

API:

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

CLI:

```bash
kontiga billing card remove
```

MCP tool `remove_card`:

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

TypeScript:

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

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.card.remove();
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.card.remove()
```

Go:

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

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.card().remove();
```

.NET:

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

PHP:

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

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.card.remove
```

Rust:

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

Response, 200 OK:

```json
{
  "object": "billing",
  "workspace_id": "ws_8Rq4Lm2",
  "card": null,
  "auto_reload": {
    "enabled": false,
    "threshold": 50,
    "amount": 250,
    "monthly_cap": 1000,
    "reloaded_this_month": 250,
    "failures": 0,
    "last_decline": null,
    "state": "off"
  }
}
```

## Change auto reload

Buy credit by itself when the balance falls below the threshold, up to a monthly cap, with the saved card. It turns off after three failed charges.

`PATCH /v1/billing/auto_reload`. Who may: Owner, Admin and Billing. CLI: `kontiga billing auto-reload [--enabled <true|false>] [--threshold <usd>] [--amount <usd>] [--monthly-cap <usd>]`. MCP tool: `update_auto_reload`.

**Parameters**
- `enabled` (boolean): Turn auto reload on or off. It needs a saved card.
- `threshold` (number): Buy credit when the balance falls below this amount, in USD. At least 5, at most 1,000.
- `amount` (number): How much each reload buys, in USD. At least 10, at most 5,000.
- `monthly_cap` (number): At most this much reloaded in a calendar month, in USD. It allows at least one reload.

**Returns** billing: Billing, with auto reload changed.

API:

```bash
curl -X PATCH https://api.kontiga.com/v1/billing/auto_reload \
  -H "Authorization: Bearer $KONTIGA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "enabled": true,
    "threshold": 50,
    "amount": 250,
    "monthly_cap": 1000
  }'
```

CLI:

```bash
kontiga billing auto-reload \
  --enabled \
  --threshold 50 \
  --amount 250 \
  --monthly-cap 1000
```

MCP tool `update_auto_reload`:

```json
{
  "name": "update_auto_reload",
  "arguments": {
    "enabled": true,
    "threshold": 50,
    "amount": 250,
    "monthly_cap": 1000
  }
}
```

TypeScript:

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

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.autoReload.update({
  enabled: true,
  threshold: 50,
  amount: 250,
  monthly_cap: 1000,
});
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.auto_reload.update(
    enabled=True,
    threshold=50,
    amount=250,
    monthly_cap=1000,
)
```

Go:

```go
client := kontiga.NewClient() // reads KONTIGA_API_KEY
result, err := client.AutoReload.Update(ctx, &kontiga.AutoReloadUpdateParams{
	Enabled:    true,
	Threshold:  50,
	Amount:     250,
	MonthlyCap: 1000,
})
if err != nil {
	return err
}
```

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.autoReload().update(AutoReloadUpdateParams.builder()
    .enabled(true)
    .threshold(50)
    .amount(250)
    .monthlyCap(1000)
    .build());
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.AutoReload.UpdateAsync(new AutoReloadUpdateOptions
{
    Enabled = true,
    Threshold = 50,
    Amount = 250,
    MonthlyCap = 1000,
});
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // reads KONTIGA_API_KEY
$result = $kontiga->autoReload->update([
    'enabled' => true,
    'threshold' => 50,
    'amount' => 250,
    'monthly_cap' => 1000,
]);
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.auto_reload.update(
  enabled: true,
  threshold: 50,
  amount: 250,
  monthly_cap: 1000
)
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .auto_reload()
    .update(kontiga::auto_reload::UpdateParams {
        enabled: true,
        threshold: 50,
        amount: 250,
        monthly_cap: 1000,
        ..Default::default()
    })
    .await?;
```

Response, 200 OK:

```json
{
  "object": "billing",
  "workspace_id": "ws_8Rq4Lm2",
  "auto_reload": {
    "enabled": true,
    "threshold": 50,
    "amount": 250,
    "monthly_cap": 1000,
    "reloaded_this_month": 250,
    "failures": 0,
    "last_decline": null,
    "state": "on"
  }
}
```

## Change the low-balance email

One email to owners and billing members when the balance falls below an amount, at most once a day. None turns it off.

`PATCH /v1/billing/low_balance_email`. Who may: Owner, Admin and Billing. CLI: `kontiga billing low-balance-email --amount <usd|none>`. MCP tool: `set_low_balance_email`.

**Parameters**
- `amount` (number, required): Email owners and billing members when the balance falls below this, in USD, at most once a day. `null` clears it.

**Returns** billing: Billing, with the low-balance email changed.

API:

```bash
curl -X PATCH https://api.kontiga.com/v1/billing/low_balance_email \
  -H "Authorization: Bearer $KONTIGA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "amount": 100
  }'
```

CLI:

```bash
kontiga billing low-balance-email --amount 100
```

MCP tool `set_low_balance_email`:

```json
{
  "name": "set_low_balance_email",
  "arguments": {
    "amount": 100
  }
}
```

TypeScript:

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

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.lowBalanceEmail.update({
  amount: 100,
});
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.low_balance_email.update(amount=100)
```

Go:

```go
client := kontiga.NewClient() // reads KONTIGA_API_KEY
result, err := client.LowBalanceEmail.Update(ctx, &kontiga.LowBalanceEmailUpdateParams{
	Amount: 100,
})
if err != nil {
	return err
}
```

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.lowBalanceEmail().update(LowBalanceEmailUpdateParams.builder()
    .amount(100)
    .build());
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.LowBalanceEmail.UpdateAsync(new LowBalanceEmailUpdateOptions
{
    Amount = 100,
});
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // reads KONTIGA_API_KEY
$result = $kontiga->lowBalanceEmail->update([
    'amount' => 100,
]);
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.low_balance_email.update(amount: 100)
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .low_balance_email()
    .update(kontiga::low_balance_email::UpdateParams {
        amount: 100,
        ..Default::default()
    })
    .await?;
```

Response, 200 OK:

```json
{
  "object": "billing",
  "workspace_id": "ws_8Rq4Lm2",
  "low_balance_email": {
    "amount": 100,
    "last_sent_at": null
  }
}
```

## Usage and receipts

## Read usage

Units by kind and by what paid for them, day by day, with their cost, for this period, the last one or 90 days; and the workspace's limits with their 7-day peak. Owners, admins and billing members.

`GET /v1/usage`. Who may: Owner, Admin and Billing. CLI: `kontiga usage get [--range <period|last_period|90d>] [--charged-only]`. MCP tool: `get_usage`.

**Parameters**
- `range` (enum): This period, the last one, or the last 90 days. One of `period`, `last_period`, `90d`.
- `charged_only` (boolean): Only the units charged from credit.

**Returns** usage: The units, the days, the cost and the limits; with charged_only, only the units charged from credit.

API:

```bash
curl -X GET "https://api.kontiga.com/v1/usage?range=period" \
  -H "Authorization: Bearer $KONTIGA_API_KEY"
```

CLI:

```bash
kontiga usage get --range period
```

MCP tool `get_usage`:

```json
{
  "name": "get_usage",
  "arguments": {
    "range": "period"
  }
}
```

TypeScript:

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

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.usage.get({
  range: "period",
});
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.usage.get(range="period")
```

Go:

```go
client := kontiga.NewClient() // reads KONTIGA_API_KEY
result, err := client.Usage.Get(ctx, &kontiga.UsageGetParams{
	Range: "period",
})
if err != nil {
	return err
}
```

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.usage().get(UsageGetParams.builder()
    .range("period")
    .build());
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.Usage.GetAsync(new UsageGetOptions
{
    Range = "period",
});
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // reads KONTIGA_API_KEY
$result = $kontiga->usage->get([
    'range' => 'period',
]);
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.usage.get(range: "period")
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .usage()
    .get(kontiga::usage::GetParams {
        range: "period".into(),
        ..Default::default()
    })
    .await?;
```

Response, 200 OK:

```json
{
  "object": "usage",
  "range": "period",
  "from": "2026-11-14",
  "to": "2026-11-26",
  "billing_form": "plan",
  "form_unit": "documents",
  "billed_by": "credit",
  "rows": [
    {
      "unit": "document",
      "label": "Documents checked and read",
      "count": 206,
      "coverage": {
        "included": 206,
        "outcome": 0,
        "open_case": 0,
        "free_start": 0,
        "contract": 0,
        "charged": 0
      },
      "cost": 0,
      "price": 0.5,
      "per": "per document"
    },
    {
      "unit": "identity_verification",
      "label": "Identity verifications",
      "count": 41,
      "coverage": {
        "included": 0,
        "outcome": 0,
        "open_case": 0,
        "free_start": 0,
        "contract": 0,
        "charged": 41
      },
      "cost": 41,
      "price": 1,
      "per": "per verification"
    },
    {
      "unit": "screening",
      "label": "Screenings",
      "count": 57,
      "coverage": {
        "included": 0,
        "outcome": 0,
        "open_case": 0,
        "free_start": 0,
        "contract": 0,
        "charged": 57
      },
      "cost": 11.4,
      "price": 0.2,
      "per": "per screening"
    },
    {
      "unit": "kompis_run",
      "label": "Kompis tokens",
      "count": 739009,
      "runs": 162,
      "coverage": {
        "included": 0,
        "outcome": 0,
        "open_case": 0,
        "free_start": 0,
        "contract": 0,
        "charged": 739009
      },
      "cost": 7.4,
      "price": 10,
      "per": "per million tokens"
    }
  ],
  "days": [
    {
      "day": "2026-11-25",
      "covered": 19,
      "charged": 0,
      "cost": 6.8
    },
    {
      "day": "2026-11-26",
      "covered": 11,
      "charged": 0,
      "cost": 3.2
    }
  ],
  "total_cost": 59.8,
  "plan_fee": 399,
  "plan_fit": [
    {
      "plan_id": "starter",
      "name": "Starter",
      "cost": 158.8
    },
    {
      "plan_id": "growth",
      "name": "Growth",
      "cost": 458.8
    }
  ],
  "limits": [
    {
      "id": "requests_per_second",
      "label": "API requests a second",
      "ceiling": 25,
      "peak_7d": 11,
      "unit": "requests a second"
    },
    {
      "id": "analyses_in_flight",
      "label": "Documents being checked at once",
      "ceiling": 100,
      "peak_7d": 34,
      "unit": "documents"
    },
    {
      "id": "api_keys",
      "label": "API keys",
      "ceiling": 50,
      "peak_7d": 3,
      "unit": "keys"
    }
  ]
}
```

## List receipts

Every payment: plan fees, top-ups and auto reloads, newest first, each with its lines. Owners, admins and billing members.

`GET /v1/receipts`. Who may: Owner, Admin and Billing. CLI: `kontiga receipts list [--limit <n>] [--status <paid|refunded|failed>] [--from <yyyy-mm-dd>] [--to <yyyy-mm-dd>]`. MCP tool: `list_receipts`.

**Parameters**
- `limit` (integer): How many to answer, newest first. At least 1, at most 100.
- `status` (enum): Only receipts in this state. A failed one carries the bank's reason in plain words. One of `paid`, `refunded`, `failed`.
- `from` (string): From this day, as `YYYY-MM-DD`.
- `to` (string): Up to this day, as `YYYY-MM-DD`.

**Returns** list of receipts: The receipts, newest first; a failed one carries the bank's reason.

API:

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

CLI:

```bash
kontiga receipts list --limit 20
```

MCP tool `list_receipts`:

```json
{
  "name": "list_receipts",
  "arguments": {
    "limit": 20
  }
}
```

TypeScript:

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

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

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.receipts.list(limit=20)
```

Go:

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

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.receipts().list(ReceiptsListParams.builder()
    .limit(20)
    .build());
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.Receipts.ListAsync(new ReceiptsListOptions
{
    Limit = 20,
});
```

PHP:

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

Ruby:

```ruby
require "kontiga"

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

Rust:

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

Response, 200 OK:

```json
{
  "items": [
    {
      "id": "rcp_6Mk2Tq9",
      "number": "KTG-2026-0412",
      "at": "2026-11-21T02:10:00Z",
      "kind": "auto_reload",
      "description": "Credit",
      "amount": 250,
      "paid_with": "Visa ending 4417",
      "status": "paid",
      "failure_reason": null,
      "lines": [
        {
          "label": "Credit",
          "amount": 250
        }
      ]
    },
    {
      "id": "rcp_4Dw8Rb3",
      "number": "KTG-2026-0398",
      "at": "2026-11-14T00:05:00Z",
      "kind": "plan",
      "description": "Growth plan, one month",
      "amount": 399,
      "paid_with": "Visa ending 4417",
      "status": "paid",
      "failure_reason": null,
      "lines": [
        {
          "label": "Growth plan, one month",
          "amount": 399
        },
        {
          "label": "1,250 documents included",
          "amount": 0
        }
      ]
    }
  ],
  "next_cursor": "eyJpZCI6InJjcF80RHc4UmIzIn0"
}
```

## Download a receipt

One receipt as a file, with the company details it was issued to.

`GET /v1/receipts/{receipt_id}/file`. Who may: Owner, Admin and Billing. CLI: `kontiga receipts download <receipt_id> [--output <file>]`. MCP tool: `download_receipt`.

**Parameters**
- `receipt_id` (id (rcp_), required): The receipt to download. In the path.

**Returns** receipt file: The receipt, ready to save.

API:

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

CLI:

```bash
kontiga receipts download rcp_4Dw8Rb3
```

MCP tool `download_receipt`:

```json
{
  "name": "download_receipt",
  "arguments": {
    "receipt_id": "rcp_4Dw8Rb3"
  }
}
```

TypeScript:

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

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.receipts.download("rcp_4Dw8Rb3");
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.receipts.download("rcp_4Dw8Rb3")
```

Go:

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

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.receipts().download("rcp_4Dw8Rb3");
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.Receipts.DownloadAsync("rcp_4Dw8Rb3");
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // reads KONTIGA_API_KEY
$result = $kontiga->receipts->download('rcp_4Dw8Rb3');
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.receipts.download("rcp_4Dw8Rb3")
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .receipts()
    .download("rcp_4Dw8Rb3".into())
    .await?;
```

Response, 200 OK:

```json
{
  "object": "receipt_file",
  "file_name": "KTG-2026-0398.txt",
  "content_type": "text/plain",
  "body": "Receipt KTG-2026-0398\nKontiga, a product of Bynn Intelligence, Inc.\n\nBilled to: Brightwater Lending B.V.\nKeizersgracht 214, 1016 DZ Amsterdam, NL\nVAT or tax number: NL862035417B01\nPurchase order: PO-BW-2026-118\n\n14 Nov 2026  Growth plan, one month  $399.00\n             1,250 documents included   $0.00\nTotal paid with Visa ending 4417  $399.00\nReverse charge: no VAT is added."
}
```

## List changes to billing

Each change to the plan, the way to pay, the card, auto reload, the add-ons and the budgets: who, when, before and after. Owners, admins and billing members.

`GET /v1/billing/activity`. Who may: Owner, Admin and Billing. CLI: `kontiga billing activity [--limit <n>]`. MCP tool: `list_billing_activity`.

**Parameters**
- `limit` (integer): How many to answer, newest first. At least 1, at most 200.

**Returns** list of billing changes: The changes, newest first.

API:

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

CLI:

```bash
kontiga billing activity --limit 20
```

MCP tool `list_billing_activity`:

```json
{
  "name": "list_billing_activity",
  "arguments": {
    "limit": 20
  }
}
```

TypeScript:

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

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

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.billing_activity.list(limit=20)
```

Go:

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

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.billingActivity().list(BillingActivityListParams.builder()
    .limit(20)
    .build());
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.BillingActivity.ListAsync(new BillingActivityListOptions
{
    Limit = 20,
});
```

PHP:

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

Ruby:

```ruby
require "kontiga"

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

Rust:

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

Response, 200 OK:

```json
{
  "items": [
    {
      "id": "bact_bw6",
      "at": "2026-10-16T14:05:00Z",
      "actor": "Maria Lind",
      "actor_kind": "member",
      "area": "Add-ons",
      "summary": "Turned Reasoning agent on",
      "before": "Off",
      "after": "On"
    },
    {
      "id": "bact_bw5",
      "at": "2026-10-01T10:12:00Z",
      "actor": "Sofia Marchetti",
      "actor_kind": "member",
      "area": "Low-balance email",
      "summary": "Set the low-balance email",
      "before": "None",
      "after": "Below $100.00"
    },
    {
      "id": "bact_bw3",
      "at": "2026-09-15T13:44:00Z",
      "actor": "Sofia Marchetti",
      "actor_kind": "member",
      "area": "Auto reload",
      "summary": "Turned auto reload on",
      "before": "Off",
      "after": "$250.00 below $50.00, at most $1,000.00 a month"
    }
  ],
  "next_cursor": null
}
```

## Company and who pays

## Change company details

The company, billing email, VAT or tax number, address and purchase order printed on every receipt from now on.

`PATCH /v1/billing/company`. Who may: Owner, Admin and Billing. CLI: `kontiga billing company [--name <text>] [--billing-email <email>] [--tax-id <text>] [--registration-number <text>] [--contact-name <text>] [--regulated <true|false>] [--address-line1 <text>] [--address-line2 <text>] [--city <text>] [--state-region <text>] [--postal-code <text>] [--country <CC>] [--po <text>]`. MCP tool: `update_billing_company`.

**Parameters**
- `name` (string): The company's legal name. At most 120 characters.
- `billing_email` (literal or email): Where receipts are sent. An empty value removes it.
- `tax_id` (string): The VAT or tax number, checked against its country's format. A valid EU VAT number means no VAT is added. At most 30 characters.
- `address_line1` (string): The first line of the address. At most 120 characters.
- `address_line2` (string): The second line, if any. At most 120 characters.
- `city` (string): The city. At most 80 characters.
- `postal_code` (string): The postal code. At most 20 characters.
- `country` (literal or string): The country, as an ISO code such as `NL`. An empty value removes it.
- `po` (string): A purchase order number to print on every receipt. At most 60 characters.
- `state_region` (string): The state, province or region, where the address needs one. At most 80 characters.
- `registration_number` (string): The company register number. At most 40 characters.
- `contact_name` (string): The contact name. At most 120 characters.
- `regulated` (boolean): The regulated.

**Returns** billing: Billing, with the company details changed.

API:

```bash
curl -X PATCH https://api.kontiga.com/v1/billing/company \
  -H "Authorization: Bearer $KONTIGA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Brightwater Lending B.V.",
    "tax_id": "NL862035417B01",
    "country": "NL",
    "po": "PO-BW-2026-118"
  }'
```

CLI:

```bash
kontiga billing company \
  --name 'Brightwater Lending B.V.' \
  --tax-id NL862035417B01 \
  --country NL \
  --po PO-BW-2026-118
```

MCP tool `update_billing_company`:

```json
{
  "name": "update_billing_company",
  "arguments": {
    "name": "Brightwater Lending B.V.",
    "tax_id": "NL862035417B01",
    "country": "NL",
    "po": "PO-BW-2026-118"
  }
}
```

TypeScript:

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

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.billingCompany.update({
  name: "Brightwater Lending B.V.",
  tax_id: "NL862035417B01",
  country: "NL",
  po: "PO-BW-2026-118",
});
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.billing_company.update(
    name="Brightwater Lending B.V.",
    tax_id="NL862035417B01",
    country="NL",
    po="PO-BW-2026-118",
)
```

Go:

```go
client := kontiga.NewClient() // reads KONTIGA_API_KEY
result, err := client.BillingCompany.Update(ctx, &kontiga.BillingCompanyUpdateParams{
	Name:    "Brightwater Lending B.V.",
	TaxId:   "NL862035417B01",
	Country: "NL",
	Po:      "PO-BW-2026-118",
})
if err != nil {
	return err
}
```

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.billingCompany().update(BillingCompanyUpdateParams.builder()
    .name("Brightwater Lending B.V.")
    .taxId("NL862035417B01")
    .country("NL")
    .po("PO-BW-2026-118")
    .build());
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.BillingCompany.UpdateAsync(new BillingCompanyUpdateOptions
{
    Name = "Brightwater Lending B.V.",
    TaxId = "NL862035417B01",
    Country = "NL",
    Po = "PO-BW-2026-118",
});
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // reads KONTIGA_API_KEY
$result = $kontiga->billingCompany->update([
    'name' => 'Brightwater Lending B.V.',
    'tax_id' => 'NL862035417B01',
    'country' => 'NL',
    'po' => 'PO-BW-2026-118',
]);
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.billing_company.update(
  name: "Brightwater Lending B.V.",
  tax_id: "NL862035417B01",
  country: "NL",
  po: "PO-BW-2026-118"
)
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .billing_company()
    .update(kontiga::billing_company::UpdateParams {
        name: "Brightwater Lending B.V.".into(),
        tax_id: "NL862035417B01".into(),
        country: "NL".into(),
        po: "PO-BW-2026-118".into(),
        ..Default::default()
    })
    .await?;
```

Response, 200 OK:

```json
{
  "object": "billing",
  "workspace_id": "ws_8Rq4Lm2",
  "company": {
    "name": "Brightwater Lending B.V.",
    "billing_email": "finance@brightwater.example",
    "tax_id": "NL862035417B01",
    "tax_id_state": "valid",
    "address_line1": "Keizersgracht 214",
    "address_line2": "",
    "city": "Amsterdam",
    "state_region": "Noord-Holland",
    "postal_code": "1016 DZ",
    "country": "NL",
    "po": "PO-BW-2026-118",
    "registration_number": "70345128"
  }
}
```

## Choose who pays

Pay from this workspace, or from another one whose plan, credit and bill this one then uses. You must be owner or billing in both.

`PUT /v1/billing/billing_workspace`. Who may: Owner, Admin and Billing. CLI: `kontiga billing set-payer --workspace-id <workspace_id>`. MCP tool: `set_billing_workspace`.

**Parameters**
- `workspace_id` (string, required): The workspace whose plan, credit and bill this one uses: this one, or another where you are owner or billing too.

**Returns** billing: Billing, paid from the chosen workspace.

API:

```bash
curl -X PUT https://api.kontiga.com/v1/billing/billing_workspace \
  -H "Authorization: Bearer $KONTIGA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "workspace_id": "ws_8Rq4Lm2"
  }'
```

CLI:

```bash
kontiga billing set-payer --workspace-id ws_8Rq4Lm2
```

MCP tool `set_billing_workspace`:

```json
{
  "name": "set_billing_workspace",
  "arguments": {
    "workspace_id": "ws_8Rq4Lm2"
  }
}
```

TypeScript:

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

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.billingWorkspace.set({
  workspace_id: "ws_8Rq4Lm2",
});
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.billing_workspace.set(workspace_id="ws_8Rq4Lm2")
```

Go:

```go
client := kontiga.NewClient() // reads KONTIGA_API_KEY
result, err := client.BillingWorkspace.Set(ctx, &kontiga.BillingWorkspaceSetParams{
	WorkspaceId: "ws_8Rq4Lm2",
})
if err != nil {
	return err
}
```

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.billingWorkspace().set(BillingWorkspaceSetParams.builder()
    .workspaceId("ws_8Rq4Lm2")
    .build());
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.BillingWorkspace.SetAsync(new BillingWorkspaceSetOptions
{
    WorkspaceId = "ws_8Rq4Lm2",
});
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // reads KONTIGA_API_KEY
$result = $kontiga->billingWorkspace->set([
    'workspace_id' => 'ws_8Rq4Lm2',
]);
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.billing_workspace.set(workspace_id: "ws_8Rq4Lm2")
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .billing_workspace()
    .set(kontiga::billing_workspace::SetParams {
        workspace_id: "ws_8Rq4Lm2".into(),
        ..Default::default()
    })
    .await?;
```

Response, 200 OK:

```json
{
  "object": "billing",
  "workspace_id": "ws_8Rq4Lm2",
  "billing_workspace": {
    "id": "ws_8Rq4Lm2",
    "name": "Brightwater Lending",
    "self": true
  }
}
```

## Meeting sales

Enterprise, with per outcome pricing, contract terms and volume prices, is arranged with Kontiga's sales team, never self-serve, and its prices are not published. Anyone in the workspace can book a 30-minute meeting.

## List times to meet sales

The times Kontiga's sales team offers for a 30-minute meeting over the next two weeks, for Enterprise, per outcome pricing or volume. Anyone in the workspace.

`GET /v1/sales_meetings/slots`. Who may: Owner, Admin, Analyst, Developer, Viewer and Billing. CLI: `kontiga sales slots [--time-zone <zone>]`. MCP tool: `list_sales_slots`.

**Parameters**
- `time_zone` (string): The time zone to name the times in; the member's own by default. The times themselves are in UTC. At most 64 characters.

**Returns** times to meet sales: The offered times, in UTC, with the time zone to show them in.

API:

```bash
curl -X GET "https://api.kontiga.com/v1/sales_meetings/slots?time_zone=Europe%2FAmsterdam" \
  -H "Authorization: Bearer $KONTIGA_API_KEY"
```

CLI:

```bash
kontiga sales slots --time-zone Europe/Amsterdam
```

MCP tool `list_sales_slots`:

```json
{
  "name": "list_sales_slots",
  "arguments": {
    "time_zone": "Europe/Amsterdam"
  }
}
```

TypeScript:

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

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.salesMeetings.slots({
  time_zone: "Europe/Amsterdam",
});
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.sales_meetings.slots(time_zone="Europe/Amsterdam")
```

Go:

```go
client := kontiga.NewClient() // reads KONTIGA_API_KEY
result, err := client.SalesMeetings.Slots(ctx, &kontiga.SalesMeetingsSlotsParams{
	TimeZone: "Europe/Amsterdam",
})
if err != nil {
	return err
}
```

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.salesMeetings().slots(SalesMeetingsSlotsParams.builder()
    .timeZone("Europe/Amsterdam")
    .build());
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.SalesMeetings.SlotsAsync(new SalesMeetingsSlotsOptions
{
    TimeZone = "Europe/Amsterdam",
});
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // reads KONTIGA_API_KEY
$result = $kontiga->salesMeetings->slots([
    'time_zone' => 'Europe/Amsterdam',
]);
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.sales_meetings.slots(time_zone: "Europe/Amsterdam")
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .sales_meetings()
    .slots(kontiga::sales_meetings::SlotsParams {
        time_zone: "Europe/Amsterdam".into(),
        ..Default::default()
    })
    .await?;
```

Response, 200 OK:

```json
{
  "object": "sales_slots",
  "time_zone": "Europe/Amsterdam",
  "slots": [
    {
      "starts_at": "2026-11-30T09:00:00Z",
      "ends_at": "2026-11-30T09:30:00Z"
    },
    {
      "starts_at": "2026-11-30T13:30:00Z",
      "ends_at": "2026-11-30T14:00:00Z"
    },
    {
      "starts_at": "2026-12-01T08:00:00Z",
      "ends_at": "2026-12-01T08:30:00Z"
    }
  ]
}
```

## Book a meeting with sales

Book one of the offered times with Kontiga's sales team, with who attends and what you need: per outcome pricing, volume, contract terms or products. An invitation goes to everyone. Anyone in the workspace.

`POST /v1/sales_meetings`. Who may: Owner, Admin, Analyst, Developer, Viewer and Billing. CLI: `kontiga sales book --starts-at <iso> --time-zone <zone> --attendees <name:email>,... --topics <per_outcome|volume|contract|products>,... [--documents-a-month <n>] [--cases-a-month <n>] [--products <name>,...] [--notes <text>]`. MCP tool: `book_sales_meeting`.

**Parameters**
- `starts_at` (string, required): One of the offered times.
- `time_zone` (string, required): The time zone of the person booking. At most 64 characters.
- `attendees` (array of object, required): Who attends, name and email each; the person booking is added. At most 8 items.
- `topics` (array of enum, required): What to talk about: `per_outcome`, `volume`, `contract`, `products`. At most 4 items.
- `documents_a_month` (integer): Roughly how many documents a month. At most 10,000,000. `null` clears it.
- `cases_a_month` (integer): Roughly how many cases a month. At most 10,000,000. `null` clears it.
- `products` (array of string): The products. At most 12 items.
- `notes` (string): Anything else for the sales team. At most 1,000 characters.

**Returns** sales meeting: The meeting, booked, with its host and the invitation's attendees.

API:

```bash
curl -X POST https://api.kontiga.com/v1/sales_meetings \
  -H "Authorization: Bearer $KONTIGA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "starts_at": "2026-12-01T08:00:00Z",
    "time_zone": "Europe/Amsterdam",
    "attendees": [
      {
        "name": "Sofia Marchetti",
        "email": "sofia.marchetti@brightwater.example"
      }
    ],
    "topics": [
      "per_outcome",
      "volume"
    ],
    "documents_a_month": 2400,
    "cases_a_month": 180
  }'
```

CLI:

```bash
kontiga sales book \
  --starts-at 2026-12-01T08:00:00Z \
  --time-zone Europe/Amsterdam \
  --attendees '[{"name":"Sofia Marchetti","email":"sofia.marchetti@brightwater.example"}]' \
  --topics per_outcome,volume \
  --documents-a-month 2400 \
  --cases-a-month 180
```

MCP tool `book_sales_meeting`:

```json
{
  "name": "book_sales_meeting",
  "arguments": {
    "starts_at": "2026-12-01T08:00:00Z",
    "time_zone": "Europe/Amsterdam",
    "attendees": [
      {
        "name": "Sofia Marchetti",
        "email": "sofia.marchetti@brightwater.example"
      }
    ],
    "topics": [
      "per_outcome",
      "volume"
    ],
    "documents_a_month": 2400,
    "cases_a_month": 180
  }
}
```

TypeScript:

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

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.salesMeetings.book({
  starts_at: "2026-12-01T08:00:00Z",
  time_zone: "Europe/Amsterdam",
  attendees: [{ name: "Sofia Marchetti", email: "sofia.marchetti@brightwater.example" }],
  topics: ["per_outcome", "volume"],
  documents_a_month: 2400,
  cases_a_month: 180,
});
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.sales_meetings.book(
    starts_at="2026-12-01T08:00:00Z",
    time_zone="Europe/Amsterdam",
    attendees=[{"name": "Sofia Marchetti", "email": "sofia.marchetti@brightwater.example"}],
    topics=["per_outcome", "volume"],
    documents_a_month=2400,
    cases_a_month=180,
)
```

Go:

```go
client := kontiga.NewClient() // reads KONTIGA_API_KEY
result, err := client.SalesMeetings.Book(ctx, &kontiga.SalesMeetingsBookParams{
	StartsAt:        "2026-12-01T08:00:00Z",
	TimeZone:        "Europe/Amsterdam",
	Attendees:       []any{map[string]any{"name": "Sofia Marchetti", "email": "sofia.marchetti@brightwater.example"}},
	Topics:          []string{"per_outcome", "volume"},
	DocumentsAMonth: 2400,
	CasesAMonth:     180,
})
if err != nil {
	return err
}
```

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.salesMeetings().book(SalesMeetingsBookParams.builder()
    .startsAt("2026-12-01T08:00:00Z")
    .timeZone("Europe/Amsterdam")
    .attendees(List.of(Map.of("name", "Sofia Marchetti", "email", "sofia.marchetti@brightwater.example")))
    .topics(List.of("per_outcome", "volume"))
    .documentsAMonth(2400)
    .casesAMonth(180)
    .build());
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.SalesMeetings.BookAsync(new SalesMeetingsBookOptions
{
    StartsAt = "2026-12-01T08:00:00Z",
    TimeZone = "Europe/Amsterdam",
    Attendees = new object[] { new Dictionary<string, object> { ["name"] = "Sofia Marchetti", ["email"] = "sofia.marchetti@brightwater.example" } },
    Topics = new[] { "per_outcome", "volume" },
    DocumentsAMonth = 2400,
    CasesAMonth = 180,
});
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // reads KONTIGA_API_KEY
$result = $kontiga->salesMeetings->book([
    'starts_at' => '2026-12-01T08:00:00Z',
    'time_zone' => 'Europe/Amsterdam',
    'attendees' => [['name' => 'Sofia Marchetti', 'email' => 'sofia.marchetti@brightwater.example']],
    'topics' => ['per_outcome', 'volume'],
    'documents_a_month' => 2400,
    'cases_a_month' => 180,
]);
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.sales_meetings.book(
  starts_at: "2026-12-01T08:00:00Z",
  time_zone: "Europe/Amsterdam",
  attendees: [{ name: "Sofia Marchetti", email: "sofia.marchetti@brightwater.example" }],
  topics: ["per_outcome", "volume"],
  documents_a_month: 2400,
  cases_a_month: 180
)
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .sales_meetings()
    .book(kontiga::sales_meetings::BookParams {
        starts_at: "2026-12-01T08:00:00Z".into(),
        time_zone: "Europe/Amsterdam".into(),
        attendees: vec![serde_json::json!({"name":"Sofia Marchetti","email":"sofia.marchetti@brightwater.example"})],
        topics: vec!["per_outcome".into(), "volume".into()],
        documents_a_month: 2400,
        cases_a_month: 180,
        ..Default::default()
    })
    .await?;
```

Response, 201 Created:

```json
{
  "object": "sales_meeting",
  "id": "smt_4Qk8Tz2",
  "workspace_id": "ws_8Rq4Lm2",
  "workspace_name": "Brightwater Lending",
  "starts_at": "2026-12-01T08:00:00Z",
  "ends_at": "2026-12-01T08:30:00Z",
  "time_zone": "Europe/Amsterdam",
  "booked_by": {
    "name": "Maria Lind",
    "email": "maria.lind@brightwater.example"
  },
  "booked_at": "2026-11-26T09:58:00Z",
  "attendees": [
    {
      "name": "Maria Lind",
      "email": "maria.lind@brightwater.example"
    },
    {
      "name": "Sofia Marchetti",
      "email": "sofia.marchetti@brightwater.example"
    }
  ],
  "topics": [
    "per_outcome",
    "volume"
  ],
  "volumes": {
    "documents_a_month": 2400,
    "cases_a_month": 180
  },
  "products": [],
  "notes": "One price per loan application, from January.",
  "host": {
    "name": "Annika Holm",
    "title": "Account executive, Nordics and Benelux"
  },
  "join_url": "https://meet.kontiga.example/sales/4qk8tz2",
  "state": "booked"
}
```

## List meetings with sales

The workspace's meetings with Kontiga's sales team, the next first: when, who attends, what was asked for and who hosts it.

`GET /v1/sales_meetings`. Who may: Owner, Admin, Analyst, Developer, Viewer and Billing. CLI: `kontiga sales meetings`. MCP tool: `list_sales_meetings`.

**Parameters**

**Returns** list of sales meetings: The meetings, the next first.

API:

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

CLI:

```bash
kontiga sales meetings
```

MCP tool `list_sales_meetings`:

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

TypeScript:

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

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

Python:

```python
from kontiga import Kontiga

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

Go:

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

Java:

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

.NET:

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

PHP:

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

Ruby:

```ruby
require "kontiga"

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

Rust:

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

Response, 200 OK:

```json
{
  "items": [
    {
      "object": "sales_meeting",
      "id": "smt_4Qk8Tz2",
      "workspace_id": "ws_8Rq4Lm2",
      "workspace_name": "Brightwater Lending",
      "starts_at": "2026-12-01T08:00:00Z",
      "ends_at": "2026-12-01T08:30:00Z",
      "time_zone": "Europe/Amsterdam",
      "booked_by": {
        "name": "Maria Lind",
        "email": "maria.lind@brightwater.example"
      },
      "booked_at": "2026-11-26T09:58:00Z",
      "attendees": [
        {
          "name": "Maria Lind",
          "email": "maria.lind@brightwater.example"
        },
        {
          "name": "Sofia Marchetti",
          "email": "sofia.marchetti@brightwater.example"
        }
      ],
      "topics": [
        "per_outcome",
        "volume"
      ],
      "volumes": {
        "documents_a_month": 2400,
        "cases_a_month": 180
      },
      "products": [],
      "notes": "One price per loan application, from January.",
      "host": {
        "name": "Annika Holm",
        "title": "Account executive, Nordics and Benelux"
      },
      "join_url": "https://meet.kontiga.example/sales/4qk8tz2",
      "state": "booked"
    }
  ],
  "next_cursor": null
}
```

## Add-ons and budgets

Income and cash flow, the reasoning agent and expert review are off until the workspace turns them on. Each is priced per use: an income analysis per statement or payslip, a reading per case, a review per document or verification. Turning one off stops new uses at once; uses already accepted are finished and charged as before. Every change is in the workspace's activity, with who made it.

## List the add-ons

Whether income and cash flow, the reasoning agent and expert review are on for the workspace. Each is priced per use. Owners, admins and billing members, or a secret key.

`GET /v1/billing/addons`. Who may: Owner, Admin and Billing. CLI: `kontiga addons list`. MCP tool: `list_addons`.

**Parameters**

**Returns** addons: Each add-on and whether it is on.

API:

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

CLI:

```bash
kontiga addons list
```

MCP tool `list_addons`:

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

TypeScript:

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

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

Python:

```python
from kontiga import Kontiga

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

Go:

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

Java:

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

.NET:

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

PHP:

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

Ruby:

```ruby
require "kontiga"

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

Rust:

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

Response, 200 OK:

```json
{
  "object": "addons",
  "addons": {
    "income": {
      "enabled": true,
      "covered_by_outcome": false
    },
    "reasoning_agent": {
      "enabled": false,
      "covered_by_outcome": false
    },
    "expert_review": {
      "enabled": true,
      "covered_by_outcome": false
    }
  }
}
```

## Turn an add-on on or off

Income and cash flow, the reasoning agent, or expert review. Off stops new units; units already accepted settle. Income and the reasoning agent are for owners and admins.

`PATCH /v1/billing/addons/{addon}`. Who may: Owner, Admin and Billing. CLI: `kontiga addons set <income|reasoning_agent|expert_review> --enabled <true|false>`. MCP tool: `set_addon`.

**Parameters**
- `addon` (enum, required): The add-on: income, reasoning_agent or expert_review. One of `income`, `reasoning_agent`, `expert_review`. In the path.
- `enabled` (boolean, required): On or off. Off stops new uses; uses already accepted settle.

**Returns** addons: The add-ons, with the change.

API:

```bash
curl -X PATCH https://api.kontiga.com/v1/billing/addons/expert_review \
  -H "Authorization: Bearer $KONTIGA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "enabled": true
  }'
```

CLI:

```bash
kontiga addons set expert_review --enabled
```

MCP tool `set_addon`:

```json
{
  "name": "set_addon",
  "arguments": {
    "addon": "expert_review",
    "enabled": true
  }
}
```

TypeScript:

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

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.addons.update("expert_review", {
  enabled: true,
});
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.addons.update("expert_review", enabled=True)
```

Go:

```go
client := kontiga.NewClient() // reads KONTIGA_API_KEY
result, err := client.Addons.Update(ctx, "expert_review", &kontiga.AddonsUpdateParams{
	Enabled: true,
})
if err != nil {
	return err
}
```

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.addons().update("expert_review", AddonsUpdateParams.builder()
    .enabled(true)
    .build());
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.Addons.UpdateAsync("expert_review", new AddonsUpdateOptions
{
    Enabled = true,
});
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // reads KONTIGA_API_KEY
$result = $kontiga->addons->update('expert_review', [
    'enabled' => true,
]);
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.addons.update("expert_review", enabled: true)
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .addons()
    .update("expert_review".into(), kontiga::addons::UpdateParams {
        enabled: true,
        ..Default::default()
    })
    .await?;
```

Response, 200 OK:

```json
{
  "object": "addons",
  "addons": {
    "income": {
      "enabled": true,
      "covered_by_outcome": false
    },
    "reasoning_agent": {
      "enabled": true,
      "covered_by_outcome": false
    },
    "expert_review": {
      "enabled": true,
      "covered_by_outcome": false
    }
  }
}
```

## Change expert review settings

Who may send work to Kontiga's experts (owners and admins choose), and the monthly cap and rules for reviews asked for on their own.

`PATCH /v1/billing/expert_review`. Who may: Owner, Admin and Billing. CLI: `kontiga billing expert-review [--roles <owner|admin|analyst>,...] [--monthly-cap <n|none>] [--rules <identity_needs_review|document_high_risk>,...]`. MCP tool: `update_expert_review_settings`.

**Parameters**
- `roles` (array of enum): The roles that may send work to Kontiga's experts. One of `owner`, `admin`, `analyst`. At most 3 items.
- `monthly_cap` (integer): The most expert reviews asked for on their own in a month. At least 1, at most 1,000. `null` clears it.
- `rules` (array of enum): What asks for an expert review on its own, under the cap. One of `identity_needs_review`, `document_high_risk`. At most 2 items.

**Returns** billing: Billing, with the expert review settings changed.

API:

```bash
curl -X PATCH https://api.kontiga.com/v1/billing/expert_review \
  -H "Authorization: Bearer $KONTIGA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "roles": [
      "owner",
      "admin",
      "analyst"
    ],
    "monthly_cap": 10
  }'
```

CLI:

```bash
kontiga billing expert-review \
  --roles owner,admin,analyst \
  --monthly-cap 10
```

MCP tool `update_expert_review_settings`:

```json
{
  "name": "update_expert_review_settings",
  "arguments": {
    "roles": [
      "owner",
      "admin",
      "analyst"
    ],
    "monthly_cap": 10
  }
}
```

TypeScript:

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

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.expertReview.update({
  roles: ["owner", "admin", "analyst"],
  monthly_cap: 10,
});
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.expert_review.update(roles=["owner", "admin", "analyst"], monthly_cap=10)
```

Go:

```go
client := kontiga.NewClient() // reads KONTIGA_API_KEY
result, err := client.ExpertReview.Update(ctx, &kontiga.ExpertReviewUpdateParams{
	Roles:      []string{"owner", "admin", "analyst"},
	MonthlyCap: 10,
})
if err != nil {
	return err
}
```

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.expertReview().update(ExpertReviewUpdateParams.builder()
    .roles(List.of("owner", "admin", "analyst"))
    .monthlyCap(10)
    .build());
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.ExpertReview.UpdateAsync(new ExpertReviewUpdateOptions
{
    Roles = new[] { "owner", "admin", "analyst" },
    MonthlyCap = 10,
});
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // reads KONTIGA_API_KEY
$result = $kontiga->expertReview->update([
    'roles' => ['owner', 'admin', 'analyst'],
    'monthly_cap' => 10,
]);
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.expert_review.update(roles: ["owner", "admin", "analyst"], monthly_cap: 10)
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .expert_review()
    .update(kontiga::expert_review::UpdateParams {
        roles: vec!["owner".into(), "admin".into(), "analyst".into()],
        monthly_cap: 10,
        ..Default::default()
    })
    .await?;
```

Response, 200 OK:

```json
{
  "object": "billing",
  "workspace_id": "ws_8Rq4Lm2",
  "expert_review": {
    "roles": [
      "owner",
      "admin",
      "analyst"
    ],
    "monthly_cap": 10,
    "rules": [
      "identity_needs_review"
    ],
    "used_this_month": 3
  }
}
```

## Set the Kompisar budget

A monthly budget for the tokens every Kompis uses together. At the budget every Kompis pauses until next month or until the budget is raised, and the owner is told.

`PATCH /v1/billing/kompisar_budget`. Who may: Owner, Admin and Billing. CLI: `kontiga billing kompisar-budget --amount <usd|none>`. MCP tool: `set_kompisar_budget`.

**Parameters**
- `amount` (number, required): The monthly budget for every Kompis together, in USD. At the budget every Kompis pauses and the owner is told. At least 1, at most 100,000. `null` clears it.

**Returns** billing: Billing, with the Kompisar budget changed.

API:

```bash
curl -X PATCH https://api.kontiga.com/v1/billing/kompisar_budget \
  -H "Authorization: Bearer $KONTIGA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "amount": 25
  }'
```

CLI:

```bash
kontiga billing kompisar-budget --amount 25
```

MCP tool `set_kompisar_budget`:

```json
{
  "name": "set_kompisar_budget",
  "arguments": {
    "amount": 25
  }
}
```

TypeScript:

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

const kontiga = new Kontiga(); // reads KONTIGA_API_KEY
const result = await kontiga.kompisarBudget.update({
  amount: 25,
});
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # reads KONTIGA_API_KEY
result = kontiga.kompisar_budget.update(amount=25)
```

Go:

```go
client := kontiga.NewClient() // reads KONTIGA_API_KEY
result, err := client.KompisarBudget.Update(ctx, &kontiga.KompisarBudgetUpdateParams{
	Amount: 25,
})
if err != nil {
	return err
}
```

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // reads KONTIGA_API_KEY
var result = kontiga.kompisarBudget().update(KompisarBudgetUpdateParams.builder()
    .amount(25)
    .build());
```

.NET:

```csharp
var kontiga = new KontigaClient(); // reads KONTIGA_API_KEY
var result = await kontiga.KompisarBudget.UpdateAsync(new KompisarBudgetUpdateOptions
{
    Amount = 25,
});
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // reads KONTIGA_API_KEY
$result = $kontiga->kompisarBudget->update([
    'amount' => 25,
]);
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # reads KONTIGA_API_KEY
result = kontiga.kompisar_budget.update(amount: 25)
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // reads KONTIGA_API_KEY
let result = kontiga
    .kompisar_budget()
    .update(kontiga::kompisar_budget::UpdateParams {
        amount: 25,
        ..Default::default()
    })
    .await?;
```

Response, 200 OK:

```json
{
  "object": "billing",
  "workspace_id": "ws_8Rq4Lm2",
  "kompisar_budget": {
    "amount": 25,
    "spent": 7.4,
    "tokens": 739009,
    "month_resets_at": "2026-12-01T00:00:00Z",
    "price_per_million_tokens": 10,
    "paused_at_budget": false,
    "kompisar": []
  }
}
```
