Start working on the API

I have started the work on the modes and calls for the API