Create a scheduled task
Create a scheduled task: saved instructions that run as an agent on a schedule or on demand, optionally with Slack delivery.
/v1/projects/{projectId}/scheduled-tasksAuthorizationPersonal API key · headerrequiredYour personal API key from Settings > Personal API Keys, sent as Bearer <key>.
X-Organization-IdOrganization ID · headerrequiredThe organization to act in. Copy it with Copy organization ID in the organization menu or the settings sidebar.
projectIdstringrequiredapplication/jsonnamestringrequiredScheduled task name.
descriptionstringHuman-readable scheduled task description.
instructionsstringInstructions the task follows on each run.
modestringExecution mode. Use fast for quick runs or deep_research for more thorough runs.
fastdeep_researchtool_permission_modestringWrite-tool approval mode. Use auto_require_permission to ask before write actions or always_accept to approve automatically.
auto_require_permissionalways_acceptscheduleobjectWhen the task runs on its own. An omitted cadence keeps the one already stored, so a schedule can be turned back on without restating it.
Show propertiesHide properties
enabledbooleanrequiredcadenceobject | nullShow propertiesHide properties
modestringfrequencystringrequireddailyweeklydayOfWeekintegerdaysOfWeekinteger[]hourintegerrequiredminuteintegerrequiredmodestringrequiredeveryintegerrequiredunitstringrequiredmodestringrequiredeveryintegerrequiredunitstringrequiredmodestringrequiredcronExpressionstringrequirednulltimezonestringIANA time zone the cadence is read in. Defaults to America/Los_Angeles. An update keeps the stored zone.
slack_channel_idsstring[]Slack channel IDs the final output of each scheduled run is posted to. An empty list stops delivery. Requires the organization to have Slack connected.
Response for status 200
taskobjectrequiredShow propertiesHide properties
idstringrequiredkindstringrequiredcustomsystemis_defaultbooleanrequirednamestringrequireddescriptionstring | nullrequiredinstructionsstring | nullrequiredmodestringrequiredfastdeep_researchtool_permission_modestringrequiredauto_require_permissionalways_acceptcreated_bystring | nullrequiredcreated_atstringrequiredupdated_atstringrequiredscheduleobject | nullrequiredShow propertiesHide properties
enabledbooleanrequiredcadenceobject | nullrequiredShow propertiesHide properties
modestringfrequencystringrequireddailyweeklydayOfWeekintegerdaysOfWeekinteger[]hourintegerrequiredminuteintegerrequiredmodestringrequiredeveryintegerrequiredunitstringrequiredmodestringrequiredeveryintegerrequiredunitstringrequiredmodestringrequiredcronExpressionstringrequirednulltimezonestringrequiredsync_errorstring | nullrequirednullslack_channel_idsstring[]required