Skip to main content
POST
/
api
/
v1
/
analytics
/
tasks
Create Task
curl --request POST \
  --url https://control-plane.kubiya.ai/api/v1/analytics/tasks \
  --header 'Content-Type: application/json' \
  --data '{
  "execution_id": "<string>",
  "task_number": 123,
  "task_id": "<string>",
  "task_description": "<string>",
  "task_type": "<string>",
  "status": "pending",
  "started_at": "<string>",
  "completed_at": "<string>",
  "duration_ms": 123,
  "result": "<string>",
  "error_message": "<string>",
  "metadata": {}
}'
"<any>"

Body

application/json

Schema for creating a task record

execution_id
string
required
task_description
string
required
task_number
integer | null
task_id
string | null
task_type
string | null
status
string
default:pending
started_at
string | null
completed_at
string | null
duration_ms
integer | null
result
string | null
error_message
string | null
metadata
object

Response

Successful Response

The response is of type any.