WIP: add an admin API