Regarding API to get recent upgrade version

Hi,
I am currently working with automating the upgrade of the Mattermost in my organization. Is there is any API from which i can get the recent released version and its detail. so that i can integrate in my pipeline to automate the upgrade process

Not sure about an API call, but you could parse through Version archive - Mattermost documentation to get the most recent release.

curl https://api.github.com/repositories/37448451/releases/latest | grep “tag_name”