POST
/
v2
/
batch
API_KEY='live_...'
curl --request POST \
--url "https://api.scale.com/v2/batch" \
--header "Authorization: Bearer $API_KEY" \
--header "Content-Type: application/json" \
--data '{
"name": "My New Batch",
"project": "project_123"
}'
{
  "id": "batch_123",
  "name": "Batch Name Example",
  "project": "project_123",
  "created_at": "2022-07-25T07:32:34.318Z",
  "status": "completed",
  "callback": "https://example.com/callback",
  "metadata": {},
  "completed_at": "2022-07-26T07:32:34.318Z"
}

Required request parameters

You must provide:
  • Name (name) - The name for the batch
  • Project (project) - Project ID or project name to associate with the batch

Authorizations

Authorization
string
header
required

Your API Key is the Bearer token. See the Authentication section to learn how to access your key.

Body

application/json

Response

200
application/json

Batch created successfully.

The response is of type object.