To use the Bulk API, you first create a job which results in a job ID. Then you add one or more batch to the job, identified by the Job ID. The result for each batch is a Batch ID. When all the batches are added, close the job and the batches will run in the background.