Overview
The Tasks API lets you programmatically create, manage and monitor autonomous agent runs. A task executes a prompt on a schedule, uses the agent’s connected tools, and can notify users — all without anyone present.The bot must have Tasks enabled. Set
tasks: true via the
Bot Management API update endpoint — the flag kept its original name.Create a task
Parameters
Schedule shapes
Example
cron_pattern is a shorthand the SDK translates to schedule_type: 'cron'. Pass schedule_type
and schedule_config directly for anything else.
Get a task
List tasks
state: null — they are schedules, not board cards. One-shot tasks
carry a state of backlog, todo, in_progress, review or done.
Update a task
Enable / disable
Trigger manually
in_progress; triggering one parked in backlog records a skip with
the reason rather than running it.
Delete a task
Logs and stats
status (success, error or skipped), a reason when skipped,
duration_ms and tokens_used. A successful run’s full exchange lives in the conversation it ran
in — the run record is what tells you about the runs that did not happen.
Next steps
Tasks for creators
The board, autonomy rungs, and the weekly site review
Bot Management
Enabling tasks on an agent