representing api call