First version of the API client