Développeurs

API Contiamo.ai

Automatisez Contiamo.ai via une API REST ou connectez-le à n'importe quel client MCP — authentifié par une seule clé API. La référence REST ci-dessous couvre toutes les actions ; le serveur MCP propose les outils répertoriés dans la section Outils MCP.
API REST

Exécutez n'importe quelle action avec une requête POST. Transmettez votre clé en tant que jeton du porteur (bearer token).

curl https://contiamo.ai/api/rest/actions \ -H "Authorization: Bearer kav_..."
POST https://contiamo.ai/api/rest/actions/{action}
Serveur MCP

Pointez n'importe quel client Model Context Protocol vers l'endpoint ci-dessous. Il propose les outils répertoriés dans la section Outils MCP, dans la limite des autorisations de votre rôle.

https://contiamo.ai/api/mcp
Authorization: Bearer kav_...
Connectez votre assistant IA

Laissez votre assistant IA travailler dans Contiamo.ai pour vous

Ajoutez Contiamo.ai à Claude, ChatGPT ou un autre assistant IA en tant que connecteur, et demandez-lui de rechercher des informations ou d'effectuer des modifications pour vous en langage naturel. Il se connecte en tant que vous-même, il ne voit donc que ce que vous êtes autorisé à voir.

https://contiamo.ai/api/mcp

Claude s'ouvre avec le connecteur pré-rempli. Pour ChatGPT, Le Chat, Cursor et d'autres, sélectionnez-les à l'aide de la flèche pour obtenir une aide étape par étape.

Si votre client MCP ne peut pas se connecter via le navigateur, utilisez plutôt une clé API, exactement comme pour l'API REST ci-dessus :

Authorization: Bearer kav_...
Ce que votre assistant peut (et ne peut pas) faire

Votre assistant ne peut faire que ce que votre propre rôle dans Contiamo.ai vous autorise à faire — rien de plus.

Choisissez un accès en lecture seule si vous souhaitez uniquement consulter des informations sans jamais les modifier.

Chaque modification effectuée est enregistrée dans le journal d'audit, exactement comme si vous l'aviez faite vous-même.

Vous pouvez le déconnecter à tout moment depuis Paramètres → Applications connectées.

Outils MCP

Ce qu'une application d'IA connectée à Contiamo.ai peut faire. Une connexion en lecture seule n'inclut que le premier groupe ; votre rôle au sein de l'organisation détermine toujours ce que chaque outil est autorisé à consulter.

Rechercher des informations
Search automation sites
automation_search_sites

Lists the websites the user's browser can run vetted Kavaro Automation actions on (e.g. downloading invoices from a supplier portal), optionally filtered by a search text. Each site has an id, domains, how many actions it has and whether the site offers its own (WebMCP) tools. Next: automation_list_site_actions.

List a site's automation actions
automation_list_site_actions

Lists what can be done on one website: Kavaro's vetted actions and the site's own read-only WebMCP tools, each as a tool descriptor (name, description, inputSchema, readOnlyHint) with `run` = what to pass to automation_run_action. When the site's own tool covers the same thing it is listed first and the Kavaro action is marked preferred: false. An action that changes data on the site lists `effects` and an `effectsNotice` ("This automation will: …") — tell the user before running it (information, not a confirmation step).

Get an automation run
automation_get_run

The status of a run started with automation_run_action (queued, waiting_for_permission, waiting_for_login, running, then succeeded / failed / cancelled / lost). With waitSeconds (max 30) it waits for the next status change. When done: the structured outputs and the downloaded files (id, name, content type, size and a download URL valid for 15 minutes).

List documents
list_accounting_documents

Lists the receipts, supplier invoices and credit notes captured for this company, newest first. Each row has the document id, supplier (as printed and as the linked contact), date, due date, total and VAT (credit notes negative), currency, invoice number, kind, a plain status label (e.g. 'Waiting for its bank payment', 'Added to your accounts'), whether a bank payment is matched to it, its payment state, whether it is on the Overview's bills to pay (billToPay) and open warnings. Optional filters: status, source, docType, contactId, needsReview, duplicates, billsToPay, limit (default 50).

Spend summary by supplier
get_spend_summary

Totals what the company spent per supplier, net of credit notes, with each total split into paid (a bank payment is matched, or it was recorded as paid in cash or by the owner), unpaid (recorded as not paid yet) and unknown (no payment seen yet). Suppliers are grouped by their address-book contact where linked. Optional from / to dates (YYYY-MM-DD) limit it to documents dated in that period.

List bank transactions
list_bank_transactions

Lists bank-statement lines, newest first: id, bank account, date, amount, currency, bank text, counterparty, reconciliation state and the document or ledger entry each is matched to, plus the reason for lines documented elsewhere. Optional filters: bankAccountId, matchStatus, limit (default 50, max 200). Unmatched money-out lines are the payments still missing a receipt or invoice.

Find possible duplicates
find_possible_duplicates

Looks for likely duplicates: pairs of documents with the same supplier, the same total and close dates (a possible double booking); documents the app already held back as a copy of another; and suppliers saved more than once under different names or with the same VAT or registration number. Returns the actual matches with names, amounts, dates and ids. Reads only; nothing is marked or merged.

List contacts
list_contacts

Lists the company's address book: suppliers and customers with id, type (client, vendor, both), name, business id, VAT number, country and email. Optional filters: type, ignored (true lists only contacts set to be ignored), limit (default 50).

Inspect contact
get_contact

Returns one contact in full (registration and VAT ids, country, notes) with the documents and invoices linked to it. Input: contactId (from list_contacts).

List documented-elsewhere categories
list_no_document_categories

Lists the reasons a real business payment can have no receipt here (salary, taxes, pension, VAT payments, bank fees, insurance, utilities, a tax refund, an owner deposit and the company's own reasons), each with its key, label and direction (money out or money in). The key is the categoryKey input of mark_documented_elsewhere. Categories with needsDocument: true cannot be used that way; their statement has to be uploaded.

Effectuer des modifications
Run an automation action
automation_run_action
S'étend au-delà de votre organisation

Starts an action (or a site's WebMCP tool) in the user's own browser, with the user's own logins, through the Kavaro Automation extension. Always asynchronous: returns {runId, status} at once — then poll automation_get_run. An action that changes data on the site returns `effects` and an `effectsNotice` ("This automation will: …"): pass that on to the user. If no browser of the user's is connected the run fails with error code no_browser: ask the user to open their browser with the extension signed in; error.setup = {installUrls, signInHint} says where to install it and how to sign in.

Cancel an automation run
automation_cancel_run

Stops a run that is still in progress (the browser closes its run window). A finished run is returned unchanged.

Inspect document
get_document

Returns one captured document in full: the fields read from it (supplier, dates, totals, VAT, line items), its kind, how it is categorised and booked, its plain status label, whether a bank payment is matched to it and its payment state (paid from the bank, in cash, by the owner, not paid yet, or unknown), open warnings and questions, decisions already recorded, a credit note's original invoice, the linked contact and attached files. Input: documentId (from list_accounting_documents). It may tidy a credit note's link to its original invoice while reading.

List bank accounts
list_bank_accounts
S'étend au-delà de votre organisation

Lists the company's bank accounts (id, name, IBAN, currency, bank) with the current balance where a bank connection provides one; otherwise the balance is null with a note saying why. Accounts created from an uploaded bank-statement CSV have no live balance. Reading a live balance contacts the bank provider and may refresh its stored connection.

Capture document
capture_document

Adds a receipt, supplier invoice or credit note to the company's documents from its text (for example an emailed receipt pasted in), or from the id of a file already uploaded to the app. The document is then read, categorised and matched to its bank payment automatically. Key inputs: text or fileId, optional fileName and docType. Returns the new document; what was read from it shows on get_document once reading finishes.

Update coding
update_coding
Peut écraser ou supprimer

Corrects what was read from a document before it is in the accounts: supplier, supplier's country, date, due date, total, VAT, currency, invoice number, kind, category (what it was for), booking text or amount. Changing the category or the supplier's country re-books it from the company's booking rules. Only the fields passed are changed; it never removes or re-sends an entry in the connected accounting system. Returns the document with its posting state before and after.

Confirm reviewed
confirm_document_review
Peut écraser ou supprimer
S'étend au-delà de votre organisation

Confirms that a document flagged for review (for example one addressed to a person rather than the company) is correct and belongs on the books, clearing the review flag. rememberAddressee: true also stops future documents from that supplier to that recipient being flagged. When the document is matched to a bank payment it then goes on to be added to the connected accounting system; otherwise the result can say it still awaits the owner's approval.

Resolve a document warning
resolve_document_warning
Peut écraser ou supprimer
S'étend au-delà de votre organisation

Records the owner's decision on one named warning on a document and closes it. Inputs: documentId, warning (the reason key the read tools return in reviewReasons, e.g. low_confidence or vat_rate_mismatch), outcome ('verified' = checked and fine, 'rejected' = not one to book, so the document is set aside) and an optional note in the owner's words. When the document is matched to a bank payment and nothing else holds it, it is then added to the connected accounting system.

Code as paid by owner
code_paid_by_owner
Peut écraser ou supprimer

Records that a document flagged as possibly private is a real business cost the owner paid with their own card or money. It answers only that warning; the expense stays as it is and the payment side is booked to the account for money the company owes its owner, so the document no longer waits for a bank payment. Input: documentId.

Mark as paid in cash
mark_document_paid_in_cash
Peut écraser ou supprimer

Records that a bill or receipt was paid in cash, so no bank payment will ever be matched to it and it no longer waits for one. The payment is booked against the company's cash account; when no cash account exists in the connected chart of accounts, nothing changes and the result says so. Refused on a document already in the accounts or already matched to a bank line. Input: documentId.

Mark as not paid yet
mark_document_awaiting_payment
Peut écraser ou supprimer

Records that a bill has not been paid yet, so it counts towards what the business owes, ranked by its due date. Also undoes an earlier 'paid in cash' or 'paid by owner' answer, unless the document is already in the accounts. Refused when a bank payment is already matched to it, or it is ignored or a duplicate. Input: documentId.

Already paid
mark_bill_paid_from_bank
Peut écraser ou supprimer

Records that the owner has already paid a bill from the business bank: it leaves the list of bills to pay and its payment reminder stops. It is not matched to anything; it is matched automatically when the payment shows on a bank statement. Refused on a credit note, an ignored document or a duplicate. Input: documentId.

Mark not a duplicate
mark_not_duplicate
Peut écraser ou supprimer

Clears the duplicate flag on a document that was held back as a copy in error (for example two separate purchases of the same amount), so it is processed on its own. Input: documentId. Returns changed: false when the document was not marked as a duplicate.

Mark as a duplicate
mark_duplicate
Peut écraser ou supprimer

Marks a document as a duplicate of another document of this company, so the same expense is not booked twice. Inputs: documentId (the copy) and duplicateOfId (the original that is kept). Returns changed: false when it was already marked that way.

Say what a document was for
answer_category_question
Peut écraser ou supprimer

Answers the open 'what was this for?' question on a document (its categoryQuestion) with one of the category keys the question lists. The document cannot be booked until it is answered. always: true also remembers the answer for this supplier and this pair of options. Once answered, the document is coded from the booking rules.

Skip document
skip_document
Peut écraser ou supprimer

Sets a document aside as not one to book (a private purchase, another company's paperwork, an unreadable file). It is kept, never posted, and can be brought back with restore_document. Inputs: documentId and an optional short reason shown on the document.

Restore ignored document
restore_document
Peut écraser ou supprimer

Brings a set-aside document back so it can be categorised and booked again. Input: documentId of an ignored document.

Match transaction
match_transaction
Peut écraser ou supprimer
S'étend au-delà de votre organisation

Links a bank-statement line to the receipt or invoice that documents it (documentId), or to an existing ledger entry (ledgerEntryId), and marks the line reconciled. Different currencies are accepted when the converted amount lines up. Matching a document also adds it to the connected accounting system in the background (in Italy, a foreign invoice's reverse-charge document is prepared there, unsent), unless a warning or open question still holds it. acknowledgeDifference: true accepts a small amount difference.

Unmatch transaction
unmatch_transaction
Peut écraser ou supprimer

Removes the match from a bank-statement line, returning it to the unmatched list, and remembers the pair so automatic matching does not link them again. A document already added to the accounting system stays there. Input: transactionId.

Ignore transaction
ignore_transaction
Peut écraser ou supprimer

Marks a bank-statement line as not needing a document (for example a transfer between the company's own accounts) and clears any match on it. Input: transactionId. For real business costs documented outside this app, mark_documented_elsewhere records the reason instead.

Mark payment documented elsewhere
mark_documented_elsewhere
Peut écraser ou supprimer

Marks a bank-statement line as real business money whose paperwork lives elsewhere (salary, taxes, pension, bank fees, utilities; or money in such as a tax refund or an owner deposit), so it counts as documented. Inputs: transactionId, categoryKey (from list_no_document_categories, matching the line's direction) and an optional note such as where the paper is. Any existing match on the line is cleared.

Bring back documented-elsewhere payment
unmark_documented_elsewhere
Peut écraser ou supprimer

Undoes mark_documented_elsewhere: the bank-statement line goes back to the unmatched list and loses its category. Input: transactionId.

Support

Des questions sur Contiamo.ai, son API ou une application d'IA connectée ? Envoyez-nous un e-mail — les utilisateurs connectés peuvent également ouvrir un ticket depuis le Support dans l'application.

API Contiamo.ai