API with Server version

On our internal admin dashboard, we list software that need an update because a newer version is available. To determine our self-hosted Bitwarden’s version, we currently need to use hacks to read the version from the main.*.js file. It would be great if there was an API or other safe method to automatically determine the installed Bitwarden version.

Hi @srittau and welcome to the community :tada:

I just had a quick look at the server code and there’s a InfoController. Based on that you should be able to issue a GET request to https://your-selfhosted-server-domain/version and retrieve the current server version from there.

I hope that helps.

Kind regards,
Daniel

2 Likes

https://your-selfhosted-server-domain/version didn’t work, but https://your-selfhosted-server-domain/api/version did (or https://api.bitwarden.com/version for the cloud-hosted version). Thanks, this is exactly what I need!

The only suggestion I have is to add this path to Bitwarden Public API | Bitwarden .

2 Likes

@srittau Thanks for sharing this update. Since it seems that you have found what you were looking for, I am setting this feature request topic to be closed in a few days. If you feel that the feature request should remain open, please respond and provide the reasons.

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