Desarrolladores

API de Contiamo.ai

Automatiza Contiamo.ai a través de una API REST o conéctalo a cualquier cliente MCP, autenticado con una sola clave de API. La referencia de REST a continuación cubre todas las acciones; el servidor MCP ofrece las herramientas enumeradas en Herramientas MCP.
API REST

Invoque cualquier acción con una solicitud POST. Envíe su clave como token de portador.

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

Apunta cualquier cliente del Protocolo de Contexto de Modelo (MCP) al siguiente endpoint. Ofrece las herramientas enumeradas en las herramientas de MCP, limitadas a lo que tu rol permita.

https://contiamo.ai/api/mcp
Authorization: Bearer kav_...
Conecta tu asistente de IA

Deja que tu asistente de IA trabaje en Contiamo.ai por ti

Agrega Contiamo.ai a Claude, ChatGPT u otro asistente de IA como conector, y podrás pedirle que busque información o realice cambios por ti en una conversación sencilla. Inicia sesión con tus credenciales, por lo que solo ve aquello a lo que tienes permiso para acceder.

https://contiamo.ai/api/mcp

Claude se abre con el conector ya configurado. Para ChatGPT, Le Chat, Cursor y otros, selecciónalos con la flecha para obtener ayuda paso a paso.

Si tu cliente MCP no puede iniciar sesión a través del navegador, utiliza una clave de API en su lugar, exactamente igual que la API REST anterior:

Authorization: Bearer kav_...
Lo que tu asistente puede (y no puede) hacer

Tu asistente solo puede hacer lo que tu propio rol en Contiamo.ai te permite — nada más.

Elige acceso de solo lectura si solo quieres que busque información y nunca realice cambios.

Cada cambio que realiza queda registrado en el registro de auditoría, exactamente igual que un cambio hecho por ti mismo.

Puedes desconectarlo en cualquier momento desde Configuración → Aplicaciones conectadas.

Herramientas MCP

Lo que puede hacer una aplicación de IA conectada a Contiamo.ai. Una conexión de solo lectura solo obtiene el primer grupo; tu rol en la organización sigue decidiendo a qué puede acceder cada herramienta.

Buscar información
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.

Hacer cambios
Run an automation action
automation_run_action
Accede fuera de tu organización

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
Accede fuera de tu organización

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
Puede sobrescribir o eliminar

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
Puede sobrescribir o eliminar
Accede fuera de tu organización

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
Puede sobrescribir o eliminar
Accede fuera de tu organización

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
Puede sobrescribir o eliminar

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
Puede sobrescribir o eliminar

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
Puede sobrescribir o eliminar

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
Puede sobrescribir o eliminar

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
Puede sobrescribir o eliminar

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
Puede sobrescribir o eliminar

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
Puede sobrescribir o eliminar

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
Puede sobrescribir o eliminar

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
Puede sobrescribir o eliminar

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

Match transaction
match_transaction
Puede sobrescribir o eliminar
Accede fuera de tu organización

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
Puede sobrescribir o eliminar

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
Puede sobrescribir o eliminar

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
Puede sobrescribir o eliminar

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
Puede sobrescribir o eliminar

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

Soporte

¿Tienes preguntas sobre Contiamo.ai, su API o una aplicación de IA conectada? Envíanos un correo electrónico; los usuarios con sesión iniciada también pueden abrir un ticket desde la sección de soporte dentro de la aplicación.