The OpenAPI definition for the dotnet-monitor API can be found at openapi.json. This can be used to generate a client stub for calling the API from your own tools.
Additionally, the document can be accessed from the root route ("/" path) when dotnet-monitor is running. This version of the document includes security scheme information if authentication has been configured.