Removed the key class from the endpoint method