Both postgREST and python has hafah.get_version endpoint whih returns commit hash of current setup
hafah.get_version