Beginning of design document for API.