Create and manage scheduled automations.
curl -X POST http://localhost:8000/automations \ -H "Authorization: Bearer $API_KEY" \ -H "Content-Type: application/json" \ -d '{ "name": "Morning briefing", "description": "Summarize unread emails and today calendar", "trigger": { "type": "time", "at": "09:00", "days": "weekdays" }, "notifiers": ["telegram"] }'
{"type": "time", "at": "09:00", "days": "weekdays"} {"type": "time", "at": "22:00", "days": "mon,wed,fri"} {"type": "time", "at": "08:00"}
{"type": "time", "every": "2h"} {"type": "time", "every": "30m"}
{"type": "event", "event_type": "calendar", "lead_minutes": 15}
curl http://localhost:8000/automations \ -H "Authorization: Bearer $API_KEY"
curl http://localhost:8000/automations/1 \ -H "Authorization: Bearer $API_KEY"
curl -X PATCH http://localhost:8000/automations/1 \ -H "Authorization: Bearer $API_KEY" \ -H "Content-Type: application/json" \ -d '{"description": "New task description"}'
curl -X POST http://localhost:8000/automations/1/toggle \ -H "Authorization: Bearer $API_KEY"
curl -X POST http://localhost:8000/automations/1/writable \ -H "Authorization: Bearer $API_KEY"
curl -X POST http://localhost:8000/automations/1/run \ -H "Authorization: Bearer $API_KEY"
curl -X DELETE http://localhost:8000/automations/1 \ -H "Authorization: Bearer $API_KEY"