Started work on the api