Skip to content

API reference

Overview

Every operation is one POST endpoint and one MCP tool with the same name, schema and price. One registry generates REST, MCP, OpenAPI and these pages, so they always match.

REST
POST https://api.kanagu.dev/v1/<product>/<operation>
MCP
https://api.kanagu.dev/mcp · Streamable HTTP · tool name = operation ID
For agents
/llms.txt, /llms-full.txt, and every page as Markdown at /docs/<id>.md
curl https://api.kanagu.dev/v1/calendar/business-days \
  -H "Content-Type: application/json" \
  -d '{"country":"US","startDate":"2026-11-25","days":2}'
const res = await fetch("https://api.kanagu.dev/v1/calendar/business-days", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.KANAGU_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "country": "US",
    "startDate": "2026-11-25",
    "days": 2
  }),
});
if (!res.ok) throw new Error((await res.json()).error.message);
const result = await res.json();
claude mcp add --transport http kanagu https://api.kanagu.dev/mcp \
  --header "Authorization: Bearer $KANAGU_KEY"
{
  "mcpServers": {
    "kanagu": {
      "url": "https://api.kanagu.dev/mcp",
      "headers": {
        "Authorization": "Bearer ${env:KANAGU_KEY}"
      }
    }
  }
}
claude mcp add --transport http kanagu https://api.kanagu.dev/mcp

Operations

E-invoicing

Product overview
OperationPrice
einvoice.generate

Generate a KoSIT-validated XRechnung UBL or CII invoice, or a ZUGFeRD PDF/A-3.

$0.02/call
einvoice.parse

Extract invoice parties, references, dates, amounts, and lines from XML or hybrid PDF.

$0.02/call
einvoice.validate

Validate an invoice XML or a hybrid invoice PDF's XML against KoSIT rules.

$0.02/call

France e-reporting

Product overview
OperationPrice
frereporting.generate

Generate DGFiP v3.2 Flux 10 XML for B2C, cross-border B2B and service receipts. The minimum charge covers 100 input rows.

$0.10/100 lines
frereporting.validate

Check DGFiP v3.2 Flux 10 XML against the published XSD and reporting rules. The minimum charge covers 100 reported rows.

$0.10/100 lines

Bank statements

Product overview
OperationPrice
bankstatement.extract

Extract and reconcile transactions from text PDFs for Wells Fargo Advantage Checking, Chase checking and Barclays bank accounts.

$0.12/page

OTA payouts

Product overview
OperationPrice
otapayout.reconcile

Reconcile Airbnb Earnings, Booking.com Reconciliation API v1, and Vrbo payout CSVs with bank deposits. Confirm only completed bank credits from a documented OTA payer with an exact transfer reference and agreeing currency, amount, and date. Maximum 100 distinct reservations per call.

$0.30/100 reservations
OperationPrice
rentroll.reconcile

Reconcile a property rent roll of up to 500 units against one T12 statement. Accepts CSV, XLSX or JSON and returns occupancy, lease expirations, and discrepancies with source rows.

$0.50/reconciliation

Pay applications

Product overview
OperationPrice
payapp.check

Reconcile an AIA G702/G703 (1992) pay application from one workbook or a JSON summary with up to 500 JSON, CSV, or XLSX line items per period. PDF is unsupported.

$0.50/application

VAT validation

Product overview
OperationPrice
vat.audit

Retrieve completed VAT verifications and their consultation numbers for your account.

$0.03/call
vat.verify

Verify an EU or UK VAT number and return audit evidence. Upstream failures are unbilled.

$0.03/call

Packaging EPR

Product overview
OperationPrice
epr.de

Calculate German packaging kilograms by VerpackG or VerpackDG material type for one LUCID system operator and period. Returns an audit trail, a CSV for mapped weights and LUCID XML for complete reports. Charges $0.50 per period when a file is produced.

$0.50/report
epr.us

Calculate packaging kilograms by official OR, CO or CA category, or MD, MN or WA 2025 interim category. Automatic classification covers qualifying corrugated boxes, paperboard cartons, kraft fill and shipping mailers, PE mailers and bubble wrap, resin-marked PET and HDPE bottles or jars, qualifying HDPE pails in CA, PP tubs, glass bottles and jars outside deposit programs, aluminum or steel cans, molded pulp and EPS cushioning. Coverage and required BOM facts vary by state. Other components need a verified categoryByState or return needs_review with candidate categories. Charges $0.50 per state CSV produced.

$0.50/report

CPSC eFiling

Product overview
OperationPrice
cpsc.check

Check up to 200 CPC/GCC certificates against a SKU ledger and shipment lines. Prepare Full PGA fields and Product Registry v3 CSV rows with Reference PGA fields for use after certification (CPSC CATAIR v2.5).

$0.35/certificate

PFAS reporting

Product overview
OperationPrice
pfas.report

Assess Minnesota PFAS reporting and Maine CUU notifications. Prepare PRISM or MELS entries, determine MDA registration and licensing statements and deadlines, and flag evidence gaps. Charges apply to required, not required, and not yet required determinations. Up to 500 product-state pairs.

$0.25/product-state pair

Demurrage audit

Product overview
OperationPrice
demurrage.audit

Audit up to 100 U.S. demurrage or detention invoices against 46 CFR Part 541 (2026-11-20), recalculate charges and draft disputes.

$0.50/invoice
OperationPrice
carf.correct

Build a UK CARF XML v1.5 correction from prior accepted XML and replacement or deletion records. Up to 10,000 users.

$0.10/user
carf.generate

Build UK HMRC CARF XML v1.5 from reportable users and transaction totals. Up to 10,000 users.

$0.10/user
carf.validate

Check UK CARF XML v1.5 against the OECD XSD, HMRC file rules and supported TIN formats. Billed per user processed after XSD validation, up to 10,000.

$0.10/user
OperationPrice
ppwr.assess

Check reported PPWR metals, PFAS, recyclability grades, recycled content, empty space and Annex VIII fields for up to 50 packaging types. List further obligations and evidence.

$0.50/packaging type

SEC fundamentals

Product overview
OperationPrice
xbrl.asof

Get SEC EDGAR XBRL values as of an inclusive filing date, with later value changes and source filings. Covers entity-wide facts from standard taxonomies.

$0.08/call
xbrl.history

Trace every SEC EDGAR filing version of one XBRL concept by exact fiscal dates and unit, including unchanged repeats and source filings.

$0.08/call

Business days

Product overview
OperationPrice
calendar.business-days

Count business days in [startDate, endDate) or add signed business days from startDate. Weekends and observed public holidays are excluded.

$0.001/call
calendar.deadline

Calculate a deadline in local business days or hours and trace skipped dates.

$0.001/call

CSV validation

Product overview
OperationPrice
csv.check

Check a CSV against a target schema and return diagnostics and a normalized preview.

$0.03/call

Email parsing

Product overview
OperationPrice
email.parse

Parse an RFC 5322 email into headers, addresses, MIME bodies, attachments, and thread IDs.

$0.03/call

Screenshot diff

Product overview
OperationPrice
screenshot.diff

Compare public web pages or a stored screenshot baseline at a fixed viewport.

$0.01/call

Authentication

Send Authorization: Bearer <key>. Without the header, calls run as a free trial: 10 calls per IP per UTC day, shared by REST and MCP. MCP initialize and tools/list never count. Operations that read account data, such as vat.audit, always need a key.

Create keys in the dashboard after signing in with GitHub or Google. Each account gets $1 of keyed usage free every UTC month. Without a subscription, calls past it return 402 free_allowance_exhausted until the month resets.

When you retry a billable call, send the same Idempotency-Key header (1–128 visible ASCII characters) within 30 days. The retry returns the first result and is billed once. Bodies are JSON, at most 64 KiB unless an operation states a larger limit.

Get API key

MCP

Connect any MCP client to https://api.kanagu.dev/mcp over Streamable HTTP. Every operation is listed as a tool with its input and output schema. Without a key, tool calls draw on the same daily trial as REST.

claude mcp add --transport http kanagu https://api.kanagu.dev/mcp \
  --header "Authorization: Bearer $KANAGU_KEY"
{
  "mcpServers": {
    "kanagu": {
      "url": "https://api.kanagu.dev/mcp",
      "headers": {
        "Authorization": "Bearer ${env:KANAGU_KEY}"
      }
    }
  }
}
claude mcp add --transport http kanagu https://api.kanagu.dev/mcp

Tool errors come back as isError: true with the same JSON error body as REST.

Errors

Every error is JSON: {"error":{"code":"…","message":"…"}}. An operation may add its own 400 codes for domain rules; the message says what to fix.

StatusCode and meaning
400invalid_input

The body does not match the request schema. The message names each field.

400invalid_json

The body is missing or is not valid JSON.

400invalid_idempotency_key

Idempotency-Key must be 1–128 visible ASCII characters.

401invalid_api_key

The Bearer key is missing, malformed, invalid or inactive.

402free_allowance_exhausted

This month's free usage is used up and the account has no subscription. Subscribe from the dashboard, or wait for the next UTC month; Retry-After gives the seconds left.

404not_found

No operation at this path.

409idempotency_conflict

The Idempotency-Key was already used with a different body.

413payload_too_large

JSON bodies may be at most 64 KiB.

429trial_limit

The anonymous trial allows 10 calls per IP per UTC day, shared by REST and MCP. Retry-After gives the seconds left.

500internal_error

The call failed on our side. It is not billed; retry with the same Idempotency-Key.