API call for Caddy binary version?

Is there an API call to get the version of the Caddy binary?

1. The problem I’m having:

I am looking to use the API to get the version number of the Caddy binary; in my case I am wanting to confirm that the target server is updated before I try to POST it a config that uses newer options.
This would probably also be a lightweight API call to use that confirms the service is running and the API is available (I currently just make an random API call to see if it responds).

I am currently running a mix of v2.6.2 and v2.6.4

There’s no API for that no.

You can add your own HTTP endpoints which can report whatever information though, just make another HTTP server in your config on whatever other port.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.