Correctly format api endpoint.