How to generate otp key for token/init POST method?

You are right - would you mind opening an issue at github https://github.com/privacyidea/privacyidea (if you have a github account)