Newer Version Available
About URIs
The URI where you send HTTP requests has this format:
https://Web_Services_SOAP_endpoint_hostame/services/async/APIversion/Resource_address
Think of the part of the URI through the API version as a base URI that’s used for all operations. The part after the API version (Resource_address) varies depending on the job or batch being processed. For example, if you're working with version 63.0 of Bulk API in a production org, your base URI would be https://MyDomainName.my.salesforce.com/services/async/63.0.
You can find the My Domain name and My Domain login URL for your org on the My Domain page in Setup. Or, to get the hostname of your My Domain login URL in Apex, use the getMyDomainHostname() method of the System.DomainCreator class.