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/mcpOperations
E-invoicing
Product overview| Operation | Price |
|---|---|
| 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| Operation | Price |
|---|---|
| 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| Operation | Price |
|---|---|
| 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| Operation | Price |
|---|---|
| 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 |
Rent rolls
Product overview| Operation | Price |
|---|---|
| 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| Operation | Price |
|---|---|
| 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| Operation | Price |
|---|---|
| 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| Operation | Price |
|---|---|
| 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| Operation | Price |
|---|---|
| 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| Operation | Price |
|---|---|
| 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| Operation | Price |
|---|---|
| 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 |
UK CARF
Product overview| Operation | Price |
|---|---|
| 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 |
EU PPWR
Product overview| Operation | Price |
|---|---|
| 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| Operation | Price |
|---|---|
| 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| Operation | Price |
|---|---|
| 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| Operation | Price |
|---|---|
| csv.check Check a CSV against a target schema and return diagnostics and a normalized preview. | $0.03/call |
Email parsing
Product overview| Operation | Price |
|---|---|
| email.parse Parse an RFC 5322 email into headers, addresses, MIME bodies, attachments, and thread IDs. | $0.03/call |
Screenshot diff
Product overview| Operation | Price |
|---|---|
| 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.
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/mcpTool 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.
| Status | Code and meaning |
|---|---|
| 400 | invalid_inputThe body does not match the request schema. The message names each field. |
| 400 | invalid_jsonThe body is missing or is not valid JSON. |
| 400 | invalid_idempotency_keyIdempotency-Key must be 1–128 visible ASCII characters. |
| 401 | invalid_api_keyThe Bearer key is missing, malformed, invalid or inactive. |
| 402 | free_allowance_exhaustedThis 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. |
| 404 | not_foundNo operation at this path. |
| 409 | idempotency_conflictThe Idempotency-Key was already used with a different body. |
| 413 | payload_too_largeJSON bodies may be at most 64 KiB. |
| 429 | trial_limitThe anonymous trial allows 10 calls per IP per UTC day, shared by REST and MCP. Retry-After gives the seconds left. |
| 500 | internal_errorThe call failed on our side. It is not billed; retry with the same Idempotency-Key. |