Move api out of the docs directory