Uniform way to build identifier in frontend/api