Skip to main content
GET
/
batches
/
{batch_id}
Get batch status
curl --request GET \
  --url https://api.sailresearch.com/v1/batches/{batch_id} \
  --header 'Authorization: Bearer <token>'
{
  "id": "batch_abc123",
  "request_counts": 2,
  "created_at": 1741564800,
  "label": "my-batch-job",
  "request_status": {
    "my-first-request": {
      "status": "COMPLETED"
    },
    "my-second-request": {
      "status": "RUNNING"
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

batch_id
string
required

Response

Returns the current status of a batch.

id
string
required

Unique identifier for the batch.

request_counts
integer
required

Total number of requests in the batch.

created_at
integer
required

Unix timestamp of when the batch was created.

request_status
object
required

A map of custom_id to its current status.

label
string

The label for the batch, if provided.