Skip to main content
Validate Tasks
curl --request POST \
  --url https://{tenant_name}.{region}.techwolf.ai/tasks/validate \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "tasks": [
    {
      "task_name": "Review quarterly performance reports for direct reports"
    },
    {
      "task_name": "Run"
    }
  ]
}
'
{
  "results": [
    {
      "task_name": "Review quarterly performance reports for direct reports",
      "status": "valid",
      "rejection_reasons": [],
      "similar_tasks": []
    },
    {
      "task_name": "Run",
      "status": "rejected:formatting",
      "rejection_reasons": [
        {
          "code": "too_short"
        },
        {
          "code": "too_few_words"
        }
      ],
      "similar_tasks": []
    }
  ]
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Body

application/json
tasks
object[]
required

Candidate Tasks to validate. Between 1 and 15 per request; requests with more than 15 are rejected with 422.

Required array length: 1 - 15 elements

Response

OK

results
object[]
required

One result per input Task, in the same order as the request.