Alegra integration
Alegra is a cloud accounting, invoicing and inventory service for small businesses in Latin America and Spain. Create, edit, email, void and reopen sales invoices; record payments received and made and void them; create estimates and email them; create credit notes and purchase bills; manage contacts (clients and providers) and products and services; and read taxes, retentions, payment terms, warehouses, price lists, numberings, bank accounts, item and cost-center lists, currencies, users and the company. Webhook subscriptions notify a URL when an invoice, bill, client or item is created, edited or deleted. Lists return 30 records at most per call (start and limit). Ids are strings. Country-specific electronic invoicing fields beyond those named, attachments, remissions, recurring documents, purchase orders, inventory adjustments, accounting journals and bank reconciliations are not offered. Authentication is HTTP Basic with the user email and the API token from Alegra settings (API, integrations with other systems); the API allows 150 requests per minute per user.
Say what should happen.
The workflow builds itself.
What you can do with Alegra
Each of these is one operation on one endpoint, available both as a workflow step and as a tool an AI agent can call on its own. Nothing bundles several operations into one action, so what a run did stays readable afterwards.
Each badge shows the default agent permission of an endpoint (allowed: an agent calls it without asking; ask first: you are asked before an agent calls it, when the agent or chat asks permission for sensitive actions; never: no agent may call it), which every user can change endpoint by endpoint in their credential settings.
Most endpoints run on the free plan. A few, mainly the ones that publish on your behalf, need a paid plan.
Contact, 5 operations
create_contactCreate contactPOSTAgents: ask firstCreates a contact (client, provider or both) with its name, identification, email, phones and address.delete_contactDelete contactDELETEAgents: ask firstDeletes a contact.get_contactGet contactGETAgents: ask firstReturns one contact with its identification, emails and phones, address, seller, payment term, price list, credit limit and internal contacts.list_contactsList contactsGETAgents: ask firstLists contacts (clients and providers), 30 at most per call (start, limit), searchable by name or identification and filterable by type client or provider.update_contactUpdate contactPUTAgents: ask firstEdits a contact; send the attributes to change.
Invoice, 5 operations
create_invoiceCreate invoicePOSTAgents: ask firstCreates a sales invoice for a client with its items (id, price, quantity). It is created as draft unless status is open or payments are attached; numberTemplate picks the numbering.delete_invoiceDelete invoiceDELETEAgents: ask firstDeletes a sales invoice that is still a draft.get_invoiceGet invoiceGETAgents: ask firstReturns one sales invoice with its client, items, taxes, retentions, payments and totals; fields=pdf adds the PDF link and fields=xml the stamped XML link.list_invoicesList invoicesGETAgents: ask firstLists sales invoices, 30 at most per call (start, limit), filterable by status (open, closed, draft, void), client, number, item and date or due date, exact or before or after a day.update_invoiceUpdate invoicePUTAgents: ask firstEdits a sales invoice: only the attributes sent change, the others stay as they are. Returns the invoice.
Item, 5 operations
create_itemCreate itemPOSTAgents: ask firstCreates a product or service with its name, price, taxes and, for an inventoried product, its unit and initial stock per warehouse.delete_itemDelete itemDELETEAgents: ask firstDeletes a product or service.get_itemGet itemGETAgents: ask firstReturns one product or service with its prices per price list, taxes, category and inventory per warehouse.list_itemsList itemsGETAgents: ask firstLists products and services, 30 at most per call (start, limit), searchable by name or reference and filterable by warehouse, item category, price list, status or inventoried.update_itemUpdate itemPUTAgents: ask firstEdits a product or service; send the attributes to change. An inactive item can only be edited if status active is sent with the change.
Subscription, 5 operations
create_webhook_subscriptionCreate webhook subscriptionPOSTAgents: ask firstSubscribes a URL to an event (new, edited or deleted invoice, bill, client or item). Alegra POSTs an empty body to the URL first, which must answer 2xx within 5 seconds.delete_webhook_subscriptionDelete webhook subscriptionDELETEAgents: ask firstDeletes a webhook subscription.get_webhook_subscriptionGet webhook subscriptionGETAgents: ask firstReturns one webhook subscription: its event and URL.list_webhook_subscriptionsList webhook subscriptionsGETAgents: ask firstLists the webhook subscriptions of the company.update_webhook_subscriptionUpdate webhook subscriptionPUTAgents: ask firstChanges the URL of a webhook subscription.
Payment, 4 operations
create_paymentCreate paymentPOSTAgents: ask firstRecords a payment into or out of a bank account, applied to sales invoices (invoices), purchase bills (bills) or accounting categories (categories, with type in or out).delete_paymentDelete paymentDELETEAgents: ask firstDeletes a payment received or made.get_paymentGet paymentGETAgents: ask firstReturns one payment with its bank account, client, the invoices it paid and the amounts.list_paymentsList paymentsGETAgents: ask firstLists payments received (type in) and made (type out), 30 at most per call (start, limit), filterable by client or by ids.
Bill, 3 operations
create_billCreate billPOSTAgents: ask firstRecords a purchase bill from a provider, with the items and accounting categories purchased.get_billGet billGETAgents: ask firstReturns one purchase bill with its provider, purchased items and categories, payments and totals.list_billsList billsGETAgents: ask firstLists purchase bills (provider invoices), 30 at most per call (start, limit), filterable by number, provider, status (open, closed, void) and date.
Credit note, 3 operations
create_credit_noteCreate credit notePOSTAgents: ask firstCreates a credit note for a client, with its items, the sales invoices it applies to (invoices) or the refunds paid out (refunds).get_credit_noteGet credit noteGETAgents: ask firstReturns one credit note with its client, items, the invoices it was applied to and its totals.list_credit_notesList credit notesGETAgents: ask firstLists credit notes, 30 at most per call (start, limit), filterable by client, item, number and date.
Estimate, 3 operations
create_estimateCreate estimatePOSTAgents: ask firstCreates an estimate (quote) for a client with its items, date and due date.get_estimateGet estimateGETAgents: ask firstReturns one estimate (quote) with its client, items and totals.list_estimatesList estimatesGETAgents: ask firstLists estimates (quotes), 30 at most per call (start, limit), filterable by client, item, number and date.
Email, 2 operations
send_estimate_emailSend estimate emailPOSTAgents: ask firstEmails an estimate (quote) to one or more addresses.send_invoice_emailSend invoice emailPOSTAgents: ask firstEmails a sales invoice to one or more addresses, as the original or as a copy, optionally with a copy to the user making the call.
Void, 2 operations
void_invoiceVoid invoicePOSTAgents: ask firstVoids (annuls) a sales invoice, optionally with the cause.void_paymentVoid paymentPOSTAgents: ask firstVoids a payment: it stays on record but no longer affects the accounting or the reports.
Bank account, 1 operation
list_bank_accountsList bank accountsGETAgents: ask firstLists bank, cash and other money accounts, whose ids payments take as bankAccount; includeBalance adds their balances.
Company, 1 operation
get_companyGet companyGETAgents: ask firstReturns the company of the Alegra account: name, identification, regime, address, currency, time zone and decimal precision.
Cost center, 1 operation
list_cost_centersList cost centersGETAgents: ask firstLists cost centers, 30 at most per call (start, limit), filterable by name and status.
Currency, 1 operation
list_currenciesList currenciesGETAgents: ask firstLists the currencies enabled in the company with their exchange rates (multi-currency).
Item category, 1 operation
list_item_categoriesList item categoriesGETAgents: ask firstLists item categories, 30 at most per call (start, limit), filterable by name, description and status.
Number template, 1 operation
list_number_templatesList number templatesGETAgents: ask firstLists the document numberings (prefix, next number, default) for one document type: invoice, estimate, transactionIn, transactionOut, creditNote, debitNote or incomeDebitNote.
Open, 1 operation
reopen_invoiceReopen invoicePOSTAgents: ask firstReverts the voiding of a sales invoice, making it open again; without stamp the invoice is reopened without being stamped.
Price list, 1 operation
list_price_listsList price listsGETAgents: ask firstLists the price lists of the company, searchable by name.
Retention, 1 operation
list_retentionsList retentionsGETAgents: ask firstLists the withholding taxes (retentions) configured in the company, whose ids invoices and payments take in retentions.
Self, 1 operation
get_current_userGet current userGETAgents: ask firstReturns the user the API credentials belong to.
Tax, 1 operation
list_taxesList taxesGETAgents: ask firstLists the taxes configured in the company (id, name, percentage, type), whose ids items and invoice lines take as tax.
Term, 1 operation
list_payment_termsList payment termsGETAgents: ask firstLists the payment terms (name and days) configured in the company, whose ids contacts take as term.
User, 1 operation
list_usersList usersGETAgents: ask firstLists the users of the Alegra account with their role and status.
Warehouse, 1 operation
list_warehousesList warehousesGETAgents: ask firstLists warehouses, 30 at most per call (start, limit), filterable by name and status.
Use Alegra from Claude Code, Cursor or Codex
Connect Alegra in LiveContext, create an API key in Settings, then add the LiveContext MCP server to your client. Its Alegra operations become tools the client can call, next to every other integration you connected.
claude mcp add --transport http livecontext https://livecontext.ai/mcp --header "X-API-Key: YOUR_API_KEY"[mcp_servers.livecontext]
url = "https://livecontext.ai/mcp"
[mcp_servers.livecontext.http_headers]
"X-API-Key" = "YOUR_API_KEY"{
"mcpServers": {
"livecontext": {
"type": "http",
"url": "https://livecontext.ai/mcp",
"headers": {
"X-API-Key": "YOUR_API_KEY"
}
}
}
}How to connect Alegra
- Create your workspace
Sign up free. Nothing to install.
- Connect Alegra once
Add your Alegra connection in Settings. Every tool from this integration reuses it, and secrets are encrypted at rest and visible only to you.
- Describe the job in chat
The workflow builds itself in front of you and picks the endpoints it needs. Drag the steps yourself on the canvas whenever you would rather be explicit.
Alegra integration FAQ
What can you do with the Alegra integration?
LiveContext exposes 51 operations on Alegra, covering contact, invoice, item and subscription.
