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.
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
- POSTcreate_customer_wallet_alert
Create wallet alert(s).
- POSTcreate_subscription_alert
Create subscription alert(s).
- DELETEdelete_all_customer_wallet_alerts
Delete all wallet alerts.
- DELETEdelete_all_subscription_alerts
Delete all subscription alerts.
- DELETEdelete_customer_wallet_alert
Delete a wallet alert.
- DELETEdelete_subscription_alert
Delete a subscription alert.
- GETget_customer_wallet_alert
Retrieve a wallet alert.
- GETget_subscription_alert
Retrieve a subscription alert.
Metadata, 8 operations
- DELETEdelete_all_credit_note_metadata
Delete all credit note metadata.
- DELETEdelete_all_customer_wallet_metadata
Delete all wallet metadata.
- DELETEdelete_all_plan_metadata
Delete all plan metadata.
- DELETEdelete_all_wallet_metadata
Delete all wallet metadata.
- DELETEdelete_credit_note_metadata_key
Delete a metadata key.
- DELETEdelete_customer_wallet_metadata_key
Delete a metadata key.
- DELETEdelete_plan_metadata_key
Delete a metadata key.
- DELETEdelete_wallet_metadata_key
Delete a metadata key.
Filter, 6 operations
- POSTcreate_plan_charge_filter
Create a charge filter.
- POSTcreate_subscription_charge_filter
Create a charge filter.
- DELETEdelete_plan_charge_filter
Delete a charge filter.
- DELETEdelete_subscription_charge_filter
Delete a charge filter.
- GETget_plan_charge_filter
Retrieve a charge filter.
- GETget_subscription_charge_filter
Retrieve a charge filter.
Wallet, 6 operations
- POSTcreate_customer_wallet
Create a wallet.
- POSTcreate_wallet
Create a wallet.
- DELETEdelete_customer_wallet
Terminate a wallet.
- DELETEdelete_wallet
Terminate a wallet.
- GETget_customer_wallet
Retrieve a wallet.
- GETget_wallet
Retrieve a wallet.
Add on, 4 operations
- POSTcreate_add_on
Create an add-on.
- DELETEdelete_add_on
Delete an add-on.
- GETget_add_on
Retrieve an add-on.
- GETlist_add_ons
List all add-ons.
Charge, 4 operations
- POSTcreate_plan_charge
Create a charge.
- DELETEdelete_plan_charge
Delete a charge.
- GETget_plan_charge
Retrieve a charge.
- GETget_subscription_charge
Retrieve a charge for a subscription.
Entitlement, 4 operations
- POSTcreate_plan_entitlement
Create an entitlement.
- DELETEdelete_plan_entitlement
Delete an entitlement.
- DELETEdelete_subscription_entitlement
Remove an entitlement from a subscription.
- GETget_plan_entitlement
Retrieve an entitlement.
Fixed charge, 4 operations
- POSTcreate_plan_fixed_charge
Create a fixed charge.
- DELETEdelete_plan_fixed_charge
Delete a fixed charge.
- GETget_plan_fixed_charge
Retrieve a fixed charge.
- GETget_subscription_fixed_charge
Retrieve a fixed charge for a subscription.
Applied coupon, 3 operations
- POSTapply_coupon
Apply a coupon to a customer.
- DELETEdelete_customer_applied_coupon
Delete an applied coupon.
- GETlist_applied_coupons
List all applied coupons.
Billable metric, 3 operations
- POSTcreate_billable_metric
Create a billable metric.
- DELETEdelete_billable_metric
Delete a billable metric.
- GETget_billable_metric
Retrieve a billable metric.
Coupon, 3 operations
- POSTcreate_coupon
Create a coupon.
- DELETEdelete_coupon
Delete a coupon.
- GETget_coupon
Retrieve a coupon.
Customer, 3 operations
- POSTcreate_customer
Create a customer.
- DELETEdelete_customer
Delete a customer.
- GETget_customer
Retrieve a customer.
Feature, 3 operations
- POSTcreate_feature
Create a feature.
- DELETEdelete_feature
Delete a feature.
- GETget_feature
Retrieve a feature.
Invoice, 3 operations
- POSTcreate_invoice
Create a one-off invoice.
- DELETEdelete_invoice
Delete a draft invoice.
- GETget_invoice
Retrieve an invoice.
Plan, 3 operations
- POSTcreate_plan
Create a plan.
- DELETEdelete_plan
Delete a plan.
- GETget_plan
Retrieve a plan.
Privilege, 3 operations
- DELETEdelete_feature_privilege
Delete a privilege. Deleting a privilege removes it from all plans and subscriptions.
- DELETEdelete_plan_entitlement_privilege
Remove a privilege from an entitlement.
- DELETEdelete_subscription_entitlement_privilege
Remove a privilege from a subscription entitlement override.
Subscription, 3 operations
- POSTcreate_subscription
Assign a plan to a customer.
- DELETEdelete_subscription
Terminate a subscription.
- GETget_subscription
Retrieve a subscription.
Taxe, 3 operations
- POSTcreate_tax
Create a tax.
- DELETEdelete_tax
Delete a tax.
- GETget_tax
Retrieve a Tax.
Webhook endpoint, 3 operations
- POSTcreate_webhook_endpoint
Create a webhook_endpoint.
- DELETEdelete_webhook_endpoint
Delete a webhook endpoint.
- GETget_webhook_endpoint
Retrieve a webhook endpoint.
Activity log, 2 operations
- GETget_activity_log
Retrieve an activity log.
- GETlist_activity_logs
List all activity logs.
Api log, 2 operations
- GETget_api_log
Retrieve an api log.
- GETlist_api_logs
List all api logs.
Billing entitie, 2 operations
- POSTcreate_billing_entity
Create a billing entity.
- GETget_billing_entity
Retrieve a billing entity.
Credit note, 2 operations
- POSTcreate_credit_note
Create a credit note.
- GETget_credit_note
Retrieve a credit note.
Download, 2 operations
- POSTdownload_credit_note
Download a credit note PDF.
- POSTdownload_invoice
Download an invoice PDF.
Event, 2 operations
- POSTcreate_event
Send usage events.
- GETget_event
Retrieve a specific event.
Fee, 2 operations
- DELETEdelete_fee
Delete a fee.
- GETget_fee
Retrieve a specific fee.
Payment, 2 operations
- POSTcreate_payment
Create a payment.
- GETget_payment
Retrieve a payment.
Payment request, 2 operations
- POSTcreate_payment_request
Create a payment request.
- GETget_payment_request
Retrieve a payment request.
Payment url, 2 operations
- POSTget_invoice_payment_url
Generate a payment URL.
- POSTget_wallet_transaction_payment_url
Generate a payment URL.
Wallet transaction, 2 operations
- POSTcreate_wallet_transaction
Top up a wallet.
- GETget_wallet_transaction
Retrieve a wallet transaction.
Batch, 1 operation
- POSTcreate_batch_events
Batch multiple events.
Batch estimate instant fee, 1 operation
- POSTestimate_batch_instant_fees
Batch estimate instant fees for a pay in advance charge.
Checkout url, 1 operation
- POSTgenerate_customer_checkout_url
Generate a Customer Payment Provider Checkout URL.
Current usage, 1 operation
- GETget_customer_current_usage
Retrieve customer current usage.
Estimate, 1 operation
- POSTestimate_credit_note
Estimate amounts for a new credit note.
Estimate fee, 1 operation
- POSTestimate_fees
Estimate fees for a pay in advance charge.
Estimate instant fee, 1 operation
- POSTestimate_instant_fees
Estimate instant fees for a pay in advance charge.
Evaluate expression, 1 operation
- POSTevaluate_billable_metric_expression
Evaluate an expression for a billable metric.
Finalize, 1 operation
- PUTfinalize_invoice
Finalize a draft invoice.
Gross revenue, 1 operation
- GETget_gross_revenue_analytics
List gross revenue.
Invoice collection, 1 operation
- GETget_invoice_collection_analytics
List of finalized invoices.
Invoiced usage, 1 operation
- GETget_invoiced_usage_analytics
List usage revenue.
Json public key, 1 operation
- GETget_webhook_public_key
Retrieve webhook public key (JSON).
Lifetime usage, 1 operation
- GETget_subscription_lifetime_usage
Retrieve subscription lifetime usage.
Mrr, 1 operation
- GETget_mrr_analytics
List MRR.
Overdue balance, 1 operation
- GETget_overdue_balance_analytics
List overdue balance.
Payment method, 1 operation
- DELETEdelete_customer_payment_method
Delete a payment method.
Payment receipt, 1 operation
- GETget_payment_receipt
Retrieve a payment receipt.
Portal url, 1 operation
- GETget_customer_portal_url
Get a customer portal URL.
Projected usage, 1 operation
- GETget_customer_projected_usage
Retrieve customer current and projected usage.
Usage, 1 operation
- GETget_usage_analytics
List 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 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 Lago
Create your workspace
Sign up free. Nothing to install.
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.
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
Instagram API with Instagram Login (graph.instagram.com). Manage a Business/Creator Instagram account…
Messaging platform API for building bots and integrations. Send messages, manage chats and channels, handle…
Google's video platform API for accessing video, channel, playlist, and comment data
Social media platform API for content creators and businesses. Access user info, manage videos, get…
Social media platform API for posting, reading, and managing Twitter/X content. Post tweets, read timelines,…
Google email service API for sending, receiving, and managing emails. Access messages, threads, labels,…
AI API from xAI (Elon Musk's AI company) powering Grok models. Access state-of-the-art language models with…
Professional networking platform API for managing profiles, connections, and content. Share posts, manage…