how do i generate API