Get Results
curl --request GET \
--url https://api.promptloop.com/v0/batches/{id}/results \
--header 'x-api-key: <api-key>'import requests
url = "https://api.promptloop.com/v0/batches/{id}/results"
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/{id}/results', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"status": "success",
"data": {
"data": [
{
"data_uuid": "<string>"
}
]
},
"message": "<string>",
"error": {
"code": 123,
"details": "<string>"
},
"file": {
"file": "<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 Results
Get batch execution results once a batch reaches COMPLETED status. Receive the raw output or data to download depending on flag selection.
GET
/
v0
/
batches
/
{id}
/
results
Get Results
curl --request GET \
--url https://api.promptloop.com/v0/batches/{id}/results \
--header 'x-api-key: <api-key>'import requests
url = "https://api.promptloop.com/v0/batches/{id}/results"
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/{id}/results', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"status": "success",
"data": {
"data": [
{
"data_uuid": "<string>"
}
]
},
"message": "<string>",
"error": {
"code": 123,
"details": "<string>"
},
"file": {
"file": "<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>"
}
}Authorizations
Path Parameters
Batch ID to retrieve results from
Query Parameters
Output type (raw, stream, webhook) - default raw
Available options:
raw, stream, webhook Webhook URL to send data to (if output_type "webhook" is selected. If not set and webhook is selected, it will default to the existing webhook associated with the batch if one exists.
