refactor: convert API to Marionette obj