Modify the controller for api

I would like to merge this, as it handles the API key authentication for the job/add endpoint. This is necessary for the [#19795-Build Hubot plugin for Worklist job creation](https://worklist.net/19795).