First version of the API wrapper