Management API to sign a key?

Is there a management API which allows me to provide a payload and returns a signed JWT?

It may be a weird request, but I need it for spoofing purposes in my app.