---
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

---

[API](https://skmtc.net/hail-is/apis/hail-services.md) · [All operations](https://skmtc.net/hail-is/apis/hail-services/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hail-is/hail-services/versions/3bd6e13adfa6/schema)
