Bulk API

Bulk API now supports the queryAll operation and SOQL relationships. Also, we’re moving toward the next iteration of the Bulk API with a pilot version of Bulk API 2.0. This new API provides a simple interface for quickly loading large amounts of data into your Salesforce org.

Bulk API Now Supports More Complex Queries

Bulk queries now support the queryAll operation and SOQL relationships.
The queryAll operation
The queryAll operation returns records that have been deleted because of a merge or delete. The queryAll operation also returns information about archived Task and Event records. To make a queryAll request, set the operation field on the JobInfo resource to queryall. For more information about bulk queries, see Use Bulk Query in the Bulk API Developer Guide.
SOQL relationships
Relationship queries traverse parent-to-child and child-to-parent relationships between objects to filter and return results. You can now use SOQL relationships in bulk queries. For more information about SOQL relationships, see Using Relationship Queries in the Force.com SOQL and SOSL Reference.

Introducing Bulk API 2.0 (Pilot)

Bulk API 2.0 provides a simple interface for quickly loading large amounts of data into your Salesforce org.


We provide Bulk API 2.0 to selected customers through a pilot program that requires agreement to specific terms and conditions. Bulk API 2.0 is subject to change and isn’t generally available unless or until Salesforce announces its general availability in documentation or in press releases or public statements. We can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

Bulk API 2.0 includes the following features.

Support for OAuth 2.0
Bulk API 2.0 supports all OAuth flows supported by Salesforce’s other REST APIs.
Automatic File Batching
Bulk API 2.0 simplifies uploading large amounts of data by breaking the files into batches automatically. All you have to do is upload a CSV file with your record data and check back when the results are ready.
Daily Limits Based on Number of Records
Instead of limiting the amount of data uploaded daily by the quantity of batches, Bulk API 2.0 uses a limit of total records uploaded. For the pilot, the limit is 1,000,000 records per 24-hour period.