Endpoint to login via the web-service API?
|Knowledge Article Number||000044624|
Which endpoint value do I need to use in order to login to my org via the API? Can I use the MyDomain URL instead of the generic Salesforce URL?
Salesforce does not recommend "hard-coding" the endpoint URL value into your integration code. The best practice would be to execute the login() call.