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
- Select the API region and organization explicitly. Cloud US uses
https://api.getlago.com/api/v1; Cloud EU useshttps://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 versionreports 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.
Explore with Swagger or Postman
Use Swagger to browse operations. To import the contract into Postman:- Open Import and choose the option to import from a link.
- Enter
https://swagger.getlago.com/openapi.yamland complete the import. - Generate a collection from the imported API if needed.
- Set the API base URL for your region and provide your organization’s API key through Postman’s secret or environment controls.