GET
/
v2
/
batch
API_KEY='live_...'
BATCH_ID='batch_123'
curl --request GET \
--url "https://api.scale.com/v2/batch?batch_id=$BATCH_ID" \
--header "Authorization: Bearer $API_KEY"
{
  "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": {}
}

Required query parameters

You are expected to provide one of the following:

  • Batch ID (batch_id)
  • Batch Name (batch_name)

Authorizations

Authorization
string
header
required

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

Query Parameters

batch_id
string

Scale's unique identifier for the batch.

Example:

"batch_abc123"

batch_name
string

The name of the batch.

Example:

"My Scale Batch"

expand
enum<string>[]

List of fields to expand in the response.

Response

200
application/json

Batch details.

The response is of type object.