---
title: "Create a batch"
method: POST
path: "/api/v1alpha/batches/create"
tags: ["Batches API v1Alpha"]
---

# Create a batch

`POST /api/v1alpha/batches/create`

Create a batch.

## Request body

- CreateBatchRequest
  - `billing_project` string, required — The billing project to charge for this batch
  - `attributes` object, required — Key-value pairs of attributes for the batch
  - `callback` string — Optional callback URL to notify when batch completes
  - `token` string — Optional token for batch identification
  - `cancel_after_n_failures` integer — Optional number of failures after which to cancel the batch

## Response `200`

Successfully created the batch.

- object

## Changes

- **2025-04-16** `afa3b61d1d09` — 3 breaking, 3 info
  - added the new required request property `attributes`
  - added the new required request property `billing_project`
  - request body became required
  - added the new optional request property `callback`
  - …2 more
- **2025-01-14** `559a91071cc1` — 5 warning, 1 info
  - removed the request property `attributes`
  - removed the request property `billing_project`
  - removed the request property `callback`
  - removed the request property `cancel_after_n_failures`
  - …2 more

[Change history](https://skmtc.dev/hail-is/apis/hail-services/changes/api/v1alpha/batches/create/post.md)

---

[API](https://skmtc.dev/hail-is/apis/hail-services.md) · [All operations](https://skmtc.dev/hail-is/apis/hail-services/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/hail-is/hail-services/revisions/4b54754f84e8/schema)
