Skip to main content
The complete OpenAPI specification describes Lago’s API operations, request fields, responses, and authentication. Read or download it without a Lago account. You need an organization’s API key to call its authenticated operations.

Choose the right interface

OpenAPI describes the API; the CLI, SDKs, and tools execute requests. An agent with HTTP access can use the API directly. Neither the CLI nor the Lago plugin is a prerequisite for that path.

Use the contract with an agent or generator

Give the downloaded contract to your coding agent or OpenAPI-compatible generator. Use the relevant operation’s request schema, required fields, response schema, and security requirements. Consult the workflow guides for billing behavior and sequencing.
  • Select the API region and organization explicitly. Cloud US uses https://api.getlago.com/api/v1; Cloud EU uses https://api.eu.getlago.com/api/v1.
  • Keep API keys server-side and outside prompts or generated source files.
  • Pin the contract revision when generating a client or tool, and review contract changes before regenerating. The OpenAPI repository tracks the source; lago version reports the contract bundled with an installed CLI release.
  • Review write requests and test in an isolated organization before changing production billing. A schema describes a request’s shape; it does not authorize the operation or confirm the intended amount.
The same-origin OpenAPI profile contains representative discovery operations. Use the complete YAML contract above for exhaustive schemas and code generation.

Explore with Swagger or Postman

Use Swagger to browse operations. To import the contract into Postman:
  1. Open Import and choose the option to import from a link.
  2. Enter https://swagger.getlago.com/openapi.yaml and complete the import.
  3. Generate a collection from the imported API if needed.
  4. Set the API base URL for your region and provide your organization’s API key through Postman’s secret or environment controls.
Check the destination and request body before executing a write. For a complete billing walkthrough, start with the CLI.