api based modem