Get All Batches
curl --request GET \
--url https://api.promptloop.com/v0/batches \
--header 'x-api-key: <api-key>'import requests
url = "https://api.promptloop.com/v0/batches"
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/batches', 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
}
],
"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 All Batches
Retrieves a list of the high-level metadata for all batches (paginated).
GET
/
v0
/
batches
Get All Batches
curl --request GET \
--url https://api.promptloop.com/v0/batches \
--header 'x-api-key: <api-key>'import requests
url = "https://api.promptloop.com/v0/batches"
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/batches', 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
}
],
"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
