v1

latestOpenAPI 3.1.02026-07-2658119246.0 KB
Tasks

Get batch details

Retrieve the details of a batch including all its tasks and completion status.

get/v2/batches/{batch_id}

Path parameters

batch_idstring required

The unique identifier of the batch.

Example:123e4567-e89b-12d3-a456-426614174000

The unique identifier of the batch.

Response

Batch found and returned successfully.

completedboolean required

Whether all tasks in the batch have finished.

completed_atstring

ISO timestamp when the batch completed.

completed_countnumber required

Number of tasks that have completed so far.

created_atstring required

ISO timestamp when the batch was created.

idstring required

Unique identifier for the batch.

progressnumber required

Completion ratio between 0 and 1.

status'success' required

Example response

{
  "tasks": [
    {
      "batch_id": "4b0a90bf-c951-42e4-95b3-a95a65ba69fc",
      "created_at": "2024-01-15T10:30:00Z",
      "download_url": "https://api.webit.live/api/v2/tasks/123e4567-e89b-12d3-a456-426614174000/results",
      "error": "Connection timeout",
      "error_type": "timeout_error",
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "modified_at": "2024-01-15T10:35:00Z",
      "state": "pending",
      "status_code": 200,
      "status_url": "https://api.webit.live/api/v2/tasks/123e4567-e89b-12d3-a456-426614174000"
    }
  ]
}