cURL
curl --request GET \ --url https://api.promptloop.com/v0.1/batches/{id} \ --header 'x-api-key: <api-key>'
{ "status": "success", "data": { "batch_id": "<string>", "task_id": "<string>", "task_version": "<string>", "batch_name": "<string>", "created_at": "2023-11-07T05:31:56Z", "completed": true, "cancelled": true, "jobs_submitted": 123, "jobs_completed": 123, "job_status": "<string>" }, "message": "<string>", "error": { "code": 123, "details": "<string>" } }
Retrieves detailed metadata for the batch with provided id. This includes the batch status, job count, and other metadata.
Successfully retrieved batch from id
success
error
"success"
Show child attributes