Added the run command endpoint to the api