register api call