Call endpoint in right place