cURL
curl --request POST \ --url https://api.promptloop.com/v0.1/tasks/{id}/test \ --header 'Content-Type: application/json' \ --header 'x-api-key: <api-key>' \ --data ' { "input": "https://example.com" } '
{ "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>" } }
Quickly test a task with a single input. Useful for validating task behavior before running on full datasets.
Single input value to test the task with
"https://example.com"
Optional task version to test (defaults to live version)
Successfully tested task
success
error
"success"
Show child attributes