Add spec for batches API