Lago developer resources
Lago is an API-first billing platform for usage-based, subscription, and hybrid pricing. Start with the API reference or OpenAPI contract, authenticate with a scoped bearer key, consume signed webhooks, use an official SDK, or connect an AI assistant through Lago's Model Context Protocol server.
Lago developer resources
Build billing integrations with a typed REST API, official SDKs, signed webhooks, and a Model Context Protocol server for AI agents.
API reference
Explore Lago REST endpoints, request examples, response objects, errors, pagination, and regional API base URLs.
OpenAPI specification
Use Lago's OpenAPI 3.1 schema to generate clients, inspect typed operations, or expose billing actions to an AI agent.
Authentication and API keys
Learn how bearer authentication works and how to create, scope, rotate, and revoke Lago API keys.
Webhooks
Receive billing events reliably with delivery retries, idempotency keys, and JWT or HMAC signature verification.
MCP server
Connect Claude, ChatGPT, and other MCP clients to Lago billing data and operations through a documented server.
Official SDKs
Integrate Lago with maintained JavaScript, Python, Ruby, Go, PHP, and Kotlin clients generated from the API contract.
API quick start
Send requests to the US endpoint at https://api.getlago.com/api/v1 or the EU endpoint at https://api.eu.getlago.com/api/v1. Pass your Lago API key as Authorization: Bearer <your_api_key> and send JSON request bodies with Content-Type: application/json. The published OpenAPI schema contains unique operation IDs, descriptions, typed parameters, request bodies, and response schemas for function calling and client generation.