Use the right api endpoint path