Get Batch
curl --request GET \
--url https://api.promptloop.com/v0.1/batches/{id} \
--header 'x-api-key: <api-key>'import requests
url = "https://api.promptloop.com/v0.1/batches/{id}"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.promptloop.com/v0.1/batches/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"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>"
}
}{
"status": "error",
"data": {},
"message": "<string>",
"error": {
"code": 123,
"details": "<string>"
}
}{
"status": "error",
"data": {},
"message": "<string>",
"error": {
"code": 123,
"details": "<string>"
}
}{
"status": "error",
"data": {},
"message": "<string>",
"error": {
"code": 123,
"details": "<string>"
}
}{
"status": "error",
"data": {},
"message": "<string>",
"error": {
"code": 123,
"details": "<string>"
}
}Batches
Get Batch
Retrieves detailed metadata for the batch with provided id. This includes the batch status, job count, and other metadata.
GET
/
v0.1
/
batches
/
{id}
Get Batch
curl --request GET \
--url https://api.promptloop.com/v0.1/batches/{id} \
--header 'x-api-key: <api-key>'import requests
url = "https://api.promptloop.com/v0.1/batches/{id}"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.promptloop.com/v0.1/batches/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"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>"
}
}{
"status": "error",
"data": {},
"message": "<string>",
"error": {
"code": 123,
"details": "<string>"
}
}{
"status": "error",
"data": {},
"message": "<string>",
"error": {
"code": 123,
"details": "<string>"
}
}{
"status": "error",
"data": {},
"message": "<string>",
"error": {
"code": 123,
"details": "<string>"
}
}{
"status": "error",
"data": {},
"message": "<string>",
"error": {
"code": 123,
"details": "<string>"
}
}⌘I
