Add api: update badge, reset badge, get badge by token