log api call