Since the API is tied to the source code it makes more sence to have it in the repository where it can more easily be tied to different versions of the software.