JWT Encoder HS512

Hi @lottemint.md

I’m trying to create a JWT from Bubble to be used with Nexmo API.

Easy steps? I have a private.key and I tried using an api connector with JWT, but I’m stuck. My understanding is that the JWT must be created on Bubble server. Do we have to create a plugin for each JWT?


curl -X POST https://api.nexmo.com/v1/calls/
-H “Authorization: Bearer \ JWT”
-H “Content-Type: application/json”
-d ‘{
“to”: [{ “type”: “phone”, “number”: “1xxxxxxxxxx”}],
“from”: {“type”: “phone”, “number”: “1xxxxxxxxxx”},
“ncco”: [{
“action”: “talk”,
“voiceName”: “Salli”,
“text”: “What do you get!”
}]
}’



reference:
https://developer.nexmo.com/concepts/guides/authentication#json-web-tokens-jwt