In this case, even if there was a REST API for that, I’d say hard-coding the values would be the way to go, because it avoids an extra request that could harm performance of your app. If you are worried about code duplication, I imagine you could incorporate some kind of code generation into your build pipeline that would get those values from the manifest and put them into the code automatically.
Thanks for the suggestion, I had the same idea as a workaround.
I just figured if there is a rest api for that, that would be the easier way to go for me. The api I mentioned made it look like it should be possible to get that information somehow, so I figured I am doing it wrong. At least now I know that I don’t have to spend time searching for something that does not exist.