Create api.md

first commit of the api documentation