Scheduled Sessions
API shape
Section titled “API shape”Scheduled sessions live under projects:
GET /api/ambient/v1/projects/{id}/scheduled-sessionsPOST /api/ambient/v1/projects/{id}/scheduled-sessionsGET /api/ambient/v1/projects/{id}/scheduled-sessions/{ss_id}PATCH /api/ambient/v1/projects/{id}/scheduled-sessions/{ss_id}DELETE /api/ambient/v1/projects/{id}/scheduled-sessions/{ss_id}POST /api/ambient/v1/projects/{id}/scheduled-sessions/{ss_id}/suspendPOST /api/ambient/v1/projects/{id}/scheduled-sessions/{ss_id}/resumePOST /api/ambient/v1/projects/{id}/scheduled-sessions/{ss_id}/triggerGET /api/ambient/v1/projects/{id}/scheduled-sessions/{ss_id}/runsFields
Section titled “Fields”Important fields are:
namedescriptionproject_idagent_idscheduletimezoneenabledsession_prompttimeoutinactivity_timeoutstop_on_run_finishedrunner_typelast_run_atnext_run_at
The service requires name and schedule on create.
acpctl scheduled-session create \ --name weekday-triage \ --agent-id api-maintainer \ --schedule "0 9 * * 1-5" \ --timezone America/New_York \ --prompt "Triage new issues and summarize priorities."
acpctl scheduled-session listacpctl scheduled-session update weekday-triage --schedule "0 10 * * 1-5"acpctl scheduled-session suspend weekday-triageacpctl scheduled-session resume weekday-triageacpctl scheduled-session trigger weekday-triageacpctl scheduled-session runs weekday-triageCurrent automation pattern
Section titled “Current automation pattern”Until automatic firing is implemented, use an external scheduler such as GitHub Actions, Kubernetes CronJob, or another CI system to call acpctl agent start or the REST API on a schedule.