The Checkly team has released a public API, which required refactoring and additions to their existing Hapi.js-based API backend. The new API uses OAuth 2.0 based authentication and provides a stable, predictable, and versionable set of endpoints with hard-enforced schema documentation. The API key based authentication system was also implemented using the hapi-auth-bearer-token NPM module. Additionally, the team refactored their models using Objection.js, which improved the separation of concerns and reduced duplicated code. The public API is designed to be consumed by different audiences than the existing web app API, with a focus on providing a stable and predictable interface. The Swagger & Slate based documentation was generated for the new API, allowing users to access detailed information about the available endpoints and their parameters. The team also implemented validation of plan limits at the routing level using pre-routing handlers and plugins specific to the Hapi.js ecosystem. Overall, the public API provides a more robust and user-friendly interface for accessing Checkly's data.