Allow specifying the endpoint type to use