Sviluppatori

API di Contiamo.ai

Automatizza Contiamo.ai tramite un'API REST o connettilo a qualsiasi client MCP, autenticandoti con una singola chiave API. La documentazione di riferimento REST di seguito copre ogni azione; il server MCP offre i tool elencati nella sezione dei tool MCP.
API REST

Esegui qualsiasi azione con una richiesta POST. Inserisci la tua chiave come token bearer.

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

Punta qualsiasi client del Model Context Protocol all'endpoint sottostante. Offre i tool elencati nella sezione dei tool MCP, limitatamente a quanto consentito dal tuo ruolo.

https://contiamo.ai/api/mcp
Authorization: Bearer kav_...
Collega il tuo assistente IA

Lascia che il tuo assistente IA lavori in Contiamo.ai per te

Aggiungi Contiamo.ai a Claude, ChatGPT o a un altro assistente IA come connettore, e potrai chiedergli di cercare informazioni o effettuare modifiche per te in una normale conversazione. Effettua l'accesso con il tuo account, quindi vedrà solo ciò che ti è permesso vedere.

https://contiamo.ai/api/mcp

Claude si apre con il connettore precompilato. Per ChatGPT, Le Chat, Cursor e altri, selezionalitramite la freccia per ricevere assistenza passo-passo.

Se il tuo client MCP non riesce ad accedere tramite il browser, utilizza invece una chiave API, esattamente come per l'API REST sopra:

Authorization: Bearer kav_...
Cosa può (e non può) fare il tuo assistente

Il tuo assistente può fare solo ciò che il tuo ruolo in Contiamo.ai ti consente — nulla di più.

Scegli l'accesso in sola lettura se vuoi che si limiti a cercare informazioni, senza mai modificarle.

Ogni modifica apportata viene registrata nel registro di audit, proprio come una modifica fatta da te.

Puoi disconnetterlo in qualsiasi momento da Impostazioni → App collegate.

Tool MCP

Cosa può fare un'app di IA connessa a Contiamo.ai. Una connessione di sola lettura ottiene solo il primo gruppo; il tuo ruolo nell'organizzazione determina comunque ciò che ciascun tool può toccare.

Cerca informazioni
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.

Apporta modifiche
Run an automation action
automation_run_action
Agisce al di fuori della tua organizzazione

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
Agisce al di fuori della tua organizzazione

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
Può sovrascrivere o eliminare

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
Può sovrascrivere o eliminare
Agisce al di fuori della tua organizzazione

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
Può sovrascrivere o eliminare
Agisce al di fuori della tua organizzazione

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
Può sovrascrivere o eliminare

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
Può sovrascrivere o eliminare

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
Può sovrascrivere o eliminare

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
Può sovrascrivere o eliminare

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
Può sovrascrivere o eliminare

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
Può sovrascrivere o eliminare

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
Può sovrascrivere o eliminare

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
Può sovrascrivere o eliminare

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
Può sovrascrivere o eliminare

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

Match transaction
match_transaction
Può sovrascrivere o eliminare
Agisce al di fuori della tua organizzazione

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
Può sovrascrivere o eliminare

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
Può sovrascrivere o eliminare

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
Può sovrascrivere o eliminare

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
Può sovrascrivere o eliminare

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

Supporto

Domande su Contiamo.ai, sulla sua API o su un'app di IA connessa? Scrivici un'email: gli utenti con accesso effettuato possono anche aprire un ticket dal Supporto all'interno dell'app.