wip: revert api endpoint