Integration

Lago integration

Lago is an open-source usage-based billing platform, self-hosted or run on Lago's own US and EU clusters. Create and read customers, subscriptions and plans with their charges, charge filters, fixed charges, entitlements and metadata; ingest usage events one at a time or in batches and estimate the fees they would produce; define billable metrics and evaluate their expressions; issue, finalize, void, refresh, retry, preview and download invoices, credit notes, payments, payment requests and payment receipts; manage coupons and applied coupons, add-ons, taxes, features and privileges, wallets, wallet transactions with their consumptions and fundings, and wallet or subscription alerts; read current, past, projected and lifetime usage per customer or subscription; pull gross revenue, MRR, invoiced usage, invoice collection, overdue balance and usage analytics; and manage billing entities, the organization, webhook endpoints and the webhook signing public key, plus activity and API logs. The host is part of the credential: use your own domain when self-hosting, api.getlago.com for the US cluster or api.eu.getlago.com for the EU cluster. Authentication is a Lago API key, created under Developers, API keys, sent as a bearer token.

Ask it in chat

Say what should happen.
The workflow builds itself.

When this happens, do that in Lago.Built from the 201 Lago tools below, on the connection you add once.

What you can do with Lago

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.

Most endpoints run on the free plan. A few, mainly the ones that publish on your behalf, need a paid plan.

Alert, 8 operations

  • create_customer_wallet_alertCreate customer wallet alertPOSTCreate wallet alert(s).
  • create_subscription_alertCreate subscription alertPOSTCreate subscription alert(s).
  • delete_all_customer_wallet_alertsDelete all customer wallet alertsDELETEDelete all wallet alerts.
  • delete_all_subscription_alertsDelete all subscription alertsDELETEDelete all subscription alerts.
  • delete_customer_wallet_alertDelete customer wallet alertDELETEDelete a wallet alert.
  • delete_subscription_alertDelete subscription alertDELETEDelete a subscription alert.
  • get_customer_wallet_alertGet customer wallet alertGETRetrieve a wallet alert.
  • get_subscription_alertGet subscription alertGETRetrieve a subscription alert.

Metadata, 8 operations

  • delete_all_credit_note_metadataDelete all credit note metadataDELETEDelete all credit note metadata.
  • delete_all_customer_wallet_metadataDelete all customer wallet metadataDELETEDelete all wallet metadata.
  • delete_all_plan_metadataDelete all plan metadataDELETEDelete all plan metadata.
  • delete_all_wallet_metadataDelete all wallet metadataDELETEDelete all wallet metadata.
  • delete_credit_note_metadata_keyDelete credit note metadata keyDELETEDelete a metadata key.
  • delete_customer_wallet_metadata_keyDelete customer wallet metadata keyDELETEDelete a metadata key.
  • delete_plan_metadata_keyDelete plan metadata keyDELETEDelete a metadata key.
  • delete_wallet_metadata_keyDelete wallet metadata keyDELETEDelete a metadata key.

Filter, 6 operations

  • create_plan_charge_filterCreate plan charge filterPOSTCreate a charge filter.
  • create_subscription_charge_filterCreate subscription charge filterPOSTCreate a charge filter.
  • delete_plan_charge_filterDelete plan charge filterDELETEDelete a charge filter.
  • delete_subscription_charge_filterDelete subscription charge filterDELETEDelete a charge filter.
  • get_plan_charge_filterGet plan charge filterGETRetrieve a charge filter.
  • get_subscription_charge_filterGet subscription charge filterGETRetrieve a charge filter.

Wallet, 6 operations

  • create_customer_walletCreate customer walletPOSTCreate a wallet.
  • create_walletCreate walletPOSTCreate a wallet.
  • delete_customer_walletDelete customer walletDELETETerminate a wallet.
  • delete_walletDelete walletDELETETerminate a wallet.
  • get_customer_walletGet customer walletGETRetrieve a wallet.
  • get_walletGet walletGETRetrieve a wallet.

Add on, 4 operations

  • create_add_onCreate add onPOSTCreate an add-on.
  • delete_add_onDelete add onDELETEDelete an add-on.
  • get_add_onGet add onGETRetrieve an add-on.
  • list_add_onsList add onsGETList all add-ons.

Charge, 4 operations

  • create_plan_chargeCreate plan chargePOSTCreate a charge.
  • delete_plan_chargeDelete plan chargeDELETEDelete a charge.
  • get_plan_chargeGet plan chargeGETRetrieve a charge.
  • get_subscription_chargeGet subscription chargeGETRetrieve a charge for a subscription.

Entitlement, 4 operations

  • create_plan_entitlementCreate plan entitlementPOSTCreate an entitlement.
  • delete_plan_entitlementDelete plan entitlementDELETEDelete an entitlement.
  • delete_subscription_entitlementDelete subscription entitlementDELETERemove an entitlement from a subscription.
  • get_plan_entitlementGet plan entitlementGETRetrieve an entitlement.

Fixed charge, 4 operations

  • create_plan_fixed_chargeCreate plan fixed chargePOSTCreate a fixed charge.
  • delete_plan_fixed_chargeDelete plan fixed chargeDELETEDelete a fixed charge.
  • get_plan_fixed_chargeGet plan fixed chargeGETRetrieve a fixed charge.
  • get_subscription_fixed_chargeGet subscription fixed chargeGETRetrieve a fixed charge for a subscription.

Applied coupon, 3 operations

  • apply_couponApply couponPOSTApply a coupon to a customer.
  • delete_customer_applied_couponDelete customer applied couponDELETEDelete an applied coupon.
  • list_applied_couponsList applied couponsGETList all applied coupons.

Billable metric, 3 operations

  • create_billable_metricCreate billable metricPOSTCreate a billable metric.
  • delete_billable_metricDelete billable metricDELETEDelete a billable metric.
  • get_billable_metricGet billable metricGETRetrieve a billable metric.

Coupon, 3 operations

  • create_couponCreate couponPOSTCreate a coupon.
  • delete_couponDelete couponDELETEDelete a coupon.
  • get_couponGet couponGETRetrieve a coupon.

Customer, 3 operations

  • create_customerCreate customerPOSTCreate a customer.
  • delete_customerDelete customerDELETEDelete a customer.
  • get_customerGet customerGETRetrieve a customer.

Feature, 3 operations

  • create_featureCreate featurePOSTCreate a feature.
  • delete_featureDelete featureDELETEDelete a feature.
  • get_featureGet featureGETRetrieve a feature.

Invoice, 3 operations

  • create_invoiceCreate invoicePOSTCreate a one-off invoice.
  • delete_invoiceDelete invoiceDELETEDelete a draft invoice.
  • get_invoiceGet invoiceGETRetrieve an invoice.

Plan, 3 operations

  • create_planCreate planPOSTCreate a plan.
  • delete_planDelete planDELETEDelete a plan.
  • get_planGet planGETRetrieve a plan.

Privilege, 3 operations

  • delete_feature_privilegeDelete feature privilegeDELETEDelete a privilege. Deleting a privilege removes it from all plans and subscriptions.
  • delete_plan_entitlement_privilegeDelete plan entitlement privilegeDELETERemove a privilege from an entitlement.
  • delete_subscription_entitlement_privilegeDelete subscription entitlement privilegeDELETERemove a privilege from a subscription entitlement override.

Subscription, 3 operations

  • create_subscriptionCreate subscriptionPOSTAssign a plan to a customer.
  • delete_subscriptionDelete subscriptionDELETETerminate a subscription.
  • get_subscriptionGet subscriptionGETRetrieve a subscription.

Taxe, 3 operations

  • create_taxCreate taxPOSTCreate a tax.
  • delete_taxDelete taxDELETEDelete a tax.
  • get_taxGet taxGETRetrieve a Tax.

Webhook endpoint, 3 operations

  • create_webhook_endpointCreate webhook endpointPOSTCreate a webhook_endpoint.
  • delete_webhook_endpointDelete webhook endpointDELETEDelete a webhook endpoint.
  • get_webhook_endpointGet webhook endpointGETRetrieve a webhook endpoint.

Activity log, 2 operations

  • get_activity_logGet activity logGETRetrieve an activity log.
  • list_activity_logsList activity logsGETList all activity logs.

Api log, 2 operations

  • get_api_logGet api logGETRetrieve an api log.
  • list_api_logsList api logsGETList all api logs.

Billing entitie, 2 operations

  • create_billing_entityCreate billing entityPOSTCreate a billing entity.
  • get_billing_entityGet billing entityGETRetrieve a billing entity.

Credit note, 2 operations

  • create_credit_noteCreate credit notePOSTCreate a credit note.
  • get_credit_noteGet credit noteGETRetrieve a credit note.

Download, 2 operations

  • download_credit_noteDownload credit notePOSTDownload a credit note PDF.
  • download_invoiceDownload invoicePOSTDownload an invoice PDF.

Event, 2 operations

  • create_eventCreate eventPOSTSend usage events.
  • get_eventGet eventGETRetrieve a specific event.

Fee, 2 operations

  • delete_feeDelete feeDELETEDelete a fee.
  • get_feeGet feeGETRetrieve a specific fee.

Payment, 2 operations

  • create_paymentCreate paymentPOSTCreate a payment.
  • get_paymentGet paymentGETRetrieve a payment.

Payment request, 2 operations

  • create_payment_requestCreate payment requestPOSTCreate a payment request.
  • get_payment_requestGet payment requestGETRetrieve a payment request.

Payment url, 2 operations

  • get_invoice_payment_urlGet invoice payment urlPOSTGenerate a payment URL.
  • get_wallet_transaction_payment_urlGet wallet transaction payment urlPOSTGenerate a payment URL.

Wallet transaction, 2 operations

  • create_wallet_transactionCreate wallet transactionPOSTTop up a wallet.
  • get_wallet_transactionGet wallet transactionGETRetrieve a wallet transaction.

Batch, 1 operation

  • create_batch_eventsCreate batch eventsPOSTBatch multiple events.

Batch estimate instant fee, 1 operation

  • estimate_batch_instant_feesEstimate batch instant feesPOSTBatch estimate instant fees for a pay in advance charge.

Checkout url, 1 operation

  • generate_customer_checkout_urlGenerate customer checkout urlPOSTGenerate a Customer Payment Provider Checkout URL.

Current usage, 1 operation

  • get_customer_current_usageGet customer current usageGETRetrieve customer current usage.

Estimate, 1 operation

  • estimate_credit_noteEstimate credit notePOSTEstimate amounts for a new credit note.

Estimate fee, 1 operation

  • estimate_feesEstimate feesPOSTEstimate fees for a pay in advance charge.

Estimate instant fee, 1 operation

  • estimate_instant_feesEstimate instant feesPOSTEstimate instant fees for a pay in advance charge.

Evaluate expression, 1 operation

  • evaluate_billable_metric_expressionEvaluate billable metric expressionPOSTEvaluate an expression for a billable metric.

Finalize, 1 operation

  • finalize_invoiceFinalize invoicePUTFinalize a draft invoice.

Gross revenue, 1 operation

  • get_gross_revenue_analyticsGet gross revenue analyticsGETList gross revenue.

Invoice collection, 1 operation

  • get_invoice_collection_analyticsGet invoice collection analyticsGETList of finalized invoices.

Invoiced usage, 1 operation

  • get_invoiced_usage_analyticsGet invoiced usage analyticsGETList usage revenue.

Json public key, 1 operation

  • get_webhook_public_keyGet webhook public keyGETRetrieve webhook public key (JSON).

Lifetime usage, 1 operation

  • get_subscription_lifetime_usageGet subscription lifetime usageGETRetrieve subscription lifetime usage.

Mrr, 1 operation

  • get_mrr_analyticsGet mrr analyticsGETList MRR.

Overdue balance, 1 operation

  • get_overdue_balance_analyticsGet overdue balance analyticsGETList overdue balance.

Payment method, 1 operation

  • delete_customer_payment_methodDelete customer payment methodDELETEDelete a payment method.

Payment receipt, 1 operation

  • get_payment_receiptGet payment receiptGETRetrieve a payment receipt.

Portal url, 1 operation

  • get_customer_portal_urlGet customer portal urlGETGet a customer portal URL.

Projected usage, 1 operation

  • get_customer_projected_usageGet customer projected usageGETRetrieve customer current and projected usage.

Usage, 1 operation

  • get_usage_analyticsGet usage analyticsGETList usage.

Showing the first 120 of 201 endpoints. The rest are in the product, searchable from the workflow builder and from chat.

Use Lago from Claude Code, Cursor or Codex

Connect Lago in LiveContext, create an API key in Settings, then add the LiveContext MCP server to your client. Its Lago operations become tools the client can call, next to every other integration you connected.

Claude Code
claude mcp add --transport http livecontext https://livecontext.ai/mcp --header "X-API-Key: YOUR_API_KEY"
Codex (~/.codex/config.toml)
[mcp_servers.livecontext]
url = "https://livecontext.ai/mcp"

[mcp_servers.livecontext.http_headers]
"X-API-Key" = "YOUR_API_KEY"
Cursor, Claude Desktop and other JSON configs
{
  "mcpServers": {
    "livecontext": {
      "type": "http",
      "url": "https://livecontext.ai/mcp",
      "headers": {
        "X-API-Key": "YOUR_API_KEY"
      }
    }
  }
}

Set up the MCP server step by step

How to connect Lago

  1. Create your workspace

    Sign up free. Nothing to install.

  2. Connect Lago once

    Add your Lago connection in Settings. Every tool from this integration reuses it, and secrets are encrypted at rest and visible only to you.

  3. 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.

Lago integration FAQ

What can you do with the Lago integration?

LiveContext exposes 201 operations on Lago, covering alert, metadata, filter and wallet.

Popular integrations

Browse the whole catalog