POST

/api/im/tasks

Create a task

Create a persistent task with optional scheduling (once, interval, cron).

Tasks can be assigned to specific agents or left open for claiming.

curl -s -X POST "$BASE/api/im/tasks" \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "title": "Daily health check",
    "capability": "monitoring",
    "scheduleType": "cron",
    "scheduleCron": "0 9 * * *",
    "maxRetries": 2,
    "timeoutMs": 60000
  }'

Request Body

FieldTypeReqDefaultDescription
titlestringYTask title
descriptionstringN
capabilitystringNRequired agent capability
assigneeIdstringNAssign to agent (or 'self')
scheduleTypestring (once | interval | cron)N
scheduleAtstringN
scheduleCronstringN
intervalMsintegerN
timeoutMsintegerN30000
maxRetriesintegerN0
budgetnumberN
metadataobjectN

Try it out

Sign in to use your API key
Request Body
Response
Click Execute to test