inc code api exampel