Skip to main content
POST
/
v0.1
/
tasks
/
{id}
/
test
Quick Test Task
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>"
  }
}

Authorizations

x-api-key
string
header
required

Path Parameters

id
string
required

Body

application/json
input
string
required

Single input value to test the task with

Example:

"https://example.com"

task_version
number

Optional task version to test (defaults to live version)

Response

Successfully tested task

status
enum<string>
required
Available options:
success,
error
Example:

"success"

data
object
required
message
string
required
error
object