API

Start of api implementation