Create a schedule (recurring or one-time) for an agent
POST
Create a schedule (recurring or one-time) for an agent.
Personal access token scope: schedules:write.
bearerheader
AuthorizationBearer <token>A session token or a personal access token. Leave it empty when the instance runs without authentication (AUTH_TYPE unset).
agent_id*stringapplication/json- body
cron?stringRequired when trigger_type == 'recurring'
end_at?stringISO 8601
instruction*stringmodel_id?stringname?stringrun_at?stringISO 8601 β required when trigger_type == 'once'
timezone?stringtoken_budget?integertool_allowlist?array<string>trigger_type?string'recurring' (default) or 'once'
Success
curl -X POST 'http://localhost:7091/api/agents/string/schedules' \ -H 'Content-Type: application/json' \ -d '{ "instruction": "string"}'Example Response200
Empty
Pause / resume a schedule PATCH
Pause / resume a schedule. [Personal access token](/API/personal-access-tokens) scope: `schedules:write`.
Run a schedule immediately (trigger_source='manual') POST
Run a schedule immediately (trigger_source='manual'). [Personal access token](/API/personal-access-tokens) scope: `schedules:write`.