added admin api endpoint