added “api” to endpoint url for issue #199