remove batch api callback
Revert "remove batch api callback"

This reverts commit 33f4e5845e03a6aa7ead30fc394626f8b060eecd.