Mailpit uses go-swagger to automatically generate the Swagger (v2) JSON file. This file is then used to display the API documentation within Mailpit, typically visible at You can view this from within the Mailpit web UI by clicking on “About” (bottom left) and then “OpenAPI / Swagger API documentation”.