Nevermind, I figure out the problem:
I had copied the request body from the docs and didn’t change the “expiration” field, which was a time in the past. Changed it to (new Date().getTime() + (60*60*1000)).toString()
and it solved the issue.
@forum_moderators, Thanks anyway if you’re reading this