Cron API¶
Scheduled AI job management.
Prefix: /api/cron
Templates¶
List Templates¶
Returns the curated cron job templates. Each entry has metadata (description, category, requires_tools, default_inject_context) plus the prompt body. Used by the desktop "From Template" picker and the advisor's create_cron_from_template MCP tool.
Get Template¶
Returns 404 if the template id is unknown.
Jobs¶
List Jobs¶
Get Job¶
Create Job¶
Body:
{
"id": "weekly-report",
"name": "Weekly Report",
"schedule": "0 17 * * 5",
"model": "ollama:qwen3:14b",
"prompt_file": "prompts/weekly-report.md",
"prompt_content": null,
"output": "inbox",
"timeout": 600,
"enabled": true
}
Update Job¶
All fields optional.
Delete Job¶
Enable / Disable¶
Trigger (Run Now)¶
Returns 202 with {"run_id": "...", "status": "started"}.
Get Prompt¶
Save Prompt¶
Body: {"content": "Prompt text..."}
History¶
List History¶
Get History Entry¶
Delete History Entry¶
Move Output¶
Move a cron run's output to another destination.
Body:
Destinations: inbox, todo, note, kb.