Add tree API spec