api correction