Skip to Content
API referenceData API

Read owned batch and jobs

Reads one batch of this tenant with its jobs and their statuses, without waiting. The id is the batch id returned by data_create_batch or data_list_batches. Use data_wait_batch to block until the batch finishes and data_list_batches to enumerate batches. An unknown id or one owned by another tenant returns 404.

GET
/api/v1/data/batches/{id}

Reads one batch of this tenant with its jobs and their statuses, without waiting. The id is the batch id returned by data_create_batch or data_list_batches. Use data_wait_batch to block until the batch finishes and data_list_batches to enumerate batches. An unknown id or one owned by another tenant returns 404.

Authorization

headerX-API-Key<token>

Path Parameters

id*string

UUID of the target request or batch, as returned in the id field when it was created or listed.

Formatuuid

Response Body

Batch status and normalized nested jobs. Failed jobs include redacted error fields. Error body uses the documented PublicError DTO.

application/json
  1. response
id*string
Formatuuid
status*string
Value in"pending""running""completed""partial""failed""cancelled"
total_jobs*integer
Range0 <= value
completed_jobs*integer
Range0 <= value
failed_jobs*integer
Range0 <= value
base_tokens*integer
Range0 <= value
protected_tokens*integer
Range0 <= value
captcha_tokens*integer
Range0 <= value
created_at*string
Formatdate-time
finished_at*|
Formatdate-time
jobs*array<>
Example Request
curl -X GET 'https://api.runharvester.com/api/v1/data/batches/497f6eca-6276-4993-bfeb-53cbbbba6f08' \  --header "X-API-Key: ${RUNHARVESTER_API_KEY:?Set your Data API key}"
Example Response
{  "items": [],  "next_cursor": null}