Skip to main content
GET
/
v2
/
batches
API_KEY='live_...'
PARAMS='project_name=My+Test+Project&status=completed&limit=10'
curl --request GET \
--url "https://api.scale.com/v2/batches?$PARAMS" \
--header "Authorization: Bearer $API_KEY"
{
  "batches": [
    {
      "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"
    }
  ],
  "next_token": "imatoken123"
}
Every request sent to Scale’s API requires authentication. In short, your API Key is the Bearer token. See the Authentication section for more details.

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

project_id
string

Scale's unique identifier for the project.

Example:

"project_abc123"

project_name
string

The name of the project.

Example:

"My Scale Project"

status
enum<string>

The current status of the batch, indicating whether it is staging, in_progress, completed, or paused.

Available options:
staging,
in_progress,
completed,
paused,
cancelled
created_after
string<date-time>

Projects with a created_at after the given date will be returned. A timestamp formatted as an ISO 8601 date-time string.

created_before
string<date-time>

Projects with a created_at before the given date will be returned. A timestamp formatted as an ISO 8601 date-time string.

completed_after
string<date-time>

Tasks with a completed_at after the given date will be returned. A timestamp formatted as an ISO 8601 date-time string.

completed_before
string<date-time>

Tasks with a completed_at before the given date will be returned. A timestamp formatted as an ISO 8601 date-time string.

limit
integer

Limit the number of entities returned.

Required range: 1 <= x <= 100
next_token
string

A token used to retrieve the next page of results if there are more. You can find the next_token in your last request.

expand
enum<string>[]

List of fields to expand in the response.

Response

List of batches.

batches
object[]
required

Array of batch objects

next_token
string

A token used to retrieve the next page of results if there are more. You can find the next_token in your last request