Make a request to the endpoint