Add register api implementation