First version of the API