initial code
api call history (beta)