Quick Test Task
curl --request POST \
--url https://api.promptloop.com/v0.1/tasks/{task_id}/test \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"input": "https://example.com"
}
'import requests
url = "https://api.promptloop.com/v0.1/tasks/{task_id}/test"
payload = { "input": "https://example.com" }
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({input: 'https://example.com'})
};
fetch('https://api.promptloop.com/v0.1/tasks/{task_id}/test', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"status": "success",
"data": {
"data_json": {
"propertyKey": "propertyValue",
"anotherKey": "anotherValue"
},
"list_data_json": [
{
"column1Key": "row1Value1",
"column2Key": "row1Value2"
},
{
"column1Key": "row2Value1",
"column2Key": "row2Value2"
}
],
"list": true,
"job_id": "<string>",
"error_detected": true
},
"message": "<string>",
"error": {
"code": 123,
"details": "<string>"
},
"request_id": "<string>"
}{
"status": "error",
"data": {},
"message": "<string>",
"error": {
"code": 123,
"details": "<string>"
},
"request_id": "<string>"
}{
"status": "error",
"data": {},
"message": "<string>",
"error": {
"code": 123,
"details": "<string>"
},
"request_id": "<string>"
}{
"status": "error",
"data": {},
"message": "<string>",
"error": {
"code": 123,
"details": "<string>"
},
"request_id": "<string>"
}Tasks
Quick Test Task
Quickly test a task with a single input. Useful for validating task behavior before running on full datasets.
POST
/
v0.1
/
tasks
/
{task_id}
/
test
Quick Test Task
curl --request POST \
--url https://api.promptloop.com/v0.1/tasks/{task_id}/test \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"input": "https://example.com"
}
'import requests
url = "https://api.promptloop.com/v0.1/tasks/{task_id}/test"
payload = { "input": "https://example.com" }
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({input: 'https://example.com'})
};
fetch('https://api.promptloop.com/v0.1/tasks/{task_id}/test', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"status": "success",
"data": {
"data_json": {
"propertyKey": "propertyValue",
"anotherKey": "anotherValue"
},
"list_data_json": [
{
"column1Key": "row1Value1",
"column2Key": "row1Value2"
},
{
"column1Key": "row2Value1",
"column2Key": "row2Value2"
}
],
"list": true,
"job_id": "<string>",
"error_detected": true
},
"message": "<string>",
"error": {
"code": 123,
"details": "<string>"
},
"request_id": "<string>"
}{
"status": "error",
"data": {},
"message": "<string>",
"error": {
"code": 123,
"details": "<string>"
},
"request_id": "<string>"
}{
"status": "error",
"data": {},
"message": "<string>",
"error": {
"code": 123,
"details": "<string>"
},
"request_id": "<string>"
}{
"status": "error",
"data": {},
"message": "<string>",
"error": {
"code": 123,
"details": "<string>"
},
"request_id": "<string>"
}Authorizations
Path Parameters
Body
application/json
