Integrate CG into the API