Newer Version Available
Authentication
The first step in an API-based integration is authenticating your calls.
Bulk API 2.0 is a REST-based API that supports all OAuth 2.0 flows supported by other Salesforce REST APIs.
Bulk API uses a session ID obtained with a special X-SFDC-Session header fetched with SOAP API's login() call. For an example, see Step 1: Log In Using the SOAP API