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": "Daily Email Digest",
"prompt": "Check inbox and generate a summary of today'\''s emails",
"repeat_type": "daily",
"scheduled_time": "09:00",
"timezone": "Asia/Shanghai"
}
}'
{
"success": true,
"action": "add",
"task_id": "task_123"
}
Scheduled Tasks API
Sync Task
Sync scheduled tasks to the scheduler (internal API)
POST
/
scheduled-task
/
sync
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": "Daily Email Digest",
"prompt": "Check inbox and generate a summary of today'\''s emails",
"repeat_type": "daily",
"scheduled_time": "09:00",
"timezone": "Asia/Shanghai"
}
}'
{
"success": true,
"action": "add",
"task_id": "task_123"
}
This is an internal API called by the Web layer via the
X-Internal-Secret header. It is not publicly exposed.Task data (required for
add and update actions)Show task
Show task
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": "Daily Email Digest",
"prompt": "Check inbox and generate a summary of today'\''s emails",
"repeat_type": "daily",
"scheduled_time": "09:00",
"timezone": "Asia/Shanghai"
}
}'
{
"success": true,
"action": "add",
"task_id": "task_123"
}