cURL
curl --request POST \ --url https://api.promptloop.com/v0.1/tasks/{id} \ --header 'Content-Type: application/json' \ --header 'x-api-key: <api-key>' \ --data '{ "inputs": [ "<string>" ], "task_version": 0 }'
{ "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>" } }
Runs a single job with the provided task and inputs and awaits the result. Tasks have a default timeout of 1 minute. For longer running tasks, consider using async batches instead.
The inputs for the task
The version of the task
Optional flag to enable turbo execution mode for this task run
Successfully ran task
success
error
"success"
Show child attributes