Generating User Api Keys with REST API

I’ve written a program that generates URLs of this specification, enough to get me to this screen:
2018-04-02-162159_516x297_scrot
But when I press Authorize I get a 403.