curl --request POST \
--url https://zeus-api.agentspro.cn/scheduled-task/sync \
--header 'X-Internal-Secret: your-secret' \
--header 'Content-Type: application/json' \
--data '{
"action": "add",
"task_id": "task_123",
"task": {
"id": "task_123",
"user_id": "user_456",
"title": "每日邮件摘要",
"prompt": "检查收件箱并生成今日邮件摘要",
"repeat_type": "daily",
"scheduled_time": "09:00",
"timezone": "Asia/Shanghai"
}
}'
{
"success": true,
"action": "add",
"task_id": "task_123"
}
同步定时任务到调度器(内部 API)
curl --request POST \
--url https://zeus-api.agentspro.cn/scheduled-task/sync \
--header 'X-Internal-Secret: your-secret' \
--header 'Content-Type: application/json' \
--data '{
"action": "add",
"task_id": "task_123",
"task": {
"id": "task_123",
"user_id": "user_456",
"title": "每日邮件摘要",
"prompt": "检查收件箱并生成今日邮件摘要",
"repeat_type": "daily",
"scheduled_time": "09:00",
"timezone": "Asia/Shanghai"
}
}'
{
"success": true,
"action": "add",
"task_id": "task_123"
}
X-Internal-Secret header 调用,不对外暴露。INTERNAL_API_SECRET)add | remove | updateadd 和 update 时必填)显示 task
{ email, feishu, inApp }curl --request POST \
--url https://zeus-api.agentspro.cn/scheduled-task/sync \
--header 'X-Internal-Secret: your-secret' \
--header 'Content-Type: application/json' \
--data '{
"action": "add",
"task_id": "task_123",
"task": {
"id": "task_123",
"user_id": "user_456",
"title": "每日邮件摘要",
"prompt": "检查收件箱并生成今日邮件摘要",
"repeat_type": "daily",
"scheduled_time": "09:00",
"timezone": "Asia/Shanghai"
}
}'
{
"success": true,
"action": "add",
"task_id": "task_123"
}