task.created
Tasks were created in one of your client workspaces, by a user or by Kick. A bulk creation arrives as one delivery listing every new task.
When it fires
The event fires whenever tasks are created in a workspace, whether a user created them in Kick or Kick created them automatically.
One action that creates several tasks, such as creating a task per transaction, sends one delivery listing all of them.
An action over more than 100 tasks is split into several deliveries of up to 100 tasks each.
The task's description is part of the task, not a message, so it sends no
task.commented.
Payload
{
"event": "task.created",
"version": 1,
"occurredAt": 1761746400,
"payload": {
"workspaceId": "8d3a1b52-9f1d-4a7e-b0a1-2c5d6e7f8a90",
"tasks": [
{
"taskId": "0f6e2b9a-4c1d-4e8f-a3b7-5d9c1e2f4a68",
"entityIds": ["b6c4d2e1-7a3f-4c8b-9e0d-1f2a3b4c5d6e"],
"status": "todo"
}
]
}
}payload carries:
workspaceId
uuid
Workspace the tasks belong to
tasks
array
1 to 100 items, one per new task
tasks[].entityIds
uuid array
Entities of the workspace the task is assigned to. Empty when it covers none
tasks[].status
string
Status the task was created in, usually todo
The fields around it are the same on every event. See The event envelope.
Handling it
The payload names the tasks but doesn't carry their title, type, or assignee. Read each one with Retrieve a task, or read a batch at once by passing the ids to List tasks as ids.
A task can be updated or deleted right after it is created, and a retried delivery can arrive after a newer event. Read the task's current state rather than applying events in arrival order.
Last updated
Was this helpful?
