How to get Mattermost Version via REST API

I have a webpage that gets the versioning for several applications we use as part of our daily tasks (JIRA, Bitbucket, Fortify, etc…) and displays it to a user. This is done via REST calls to their API. I’m trying to find if there’s a REST API call in Mattermost that will retrieve the version of the software we have (7.7.1).

I’ve confirmed we have v4 of the API. I’ve been searching through https://api.mattermost.com/ and I can’t find one that retrieves the version as part of it’s response. I was hoping there was something as simple as a properties or version endpoint but I haven’t found one. Is there a call that will do this?

1 Like

Hi @vince92079 and welcome to the Mattermost forums!

You could use the unauthenticated client config endpoint. It will return the server version in the attribute Version:

https://community.mattermost.com/api/v4/config/client?format=old

1 Like

That worked perfectly. Thank you.