register api implemented on client