Adding run endpoint on api