Skip to Content
Docs

Create a schedule (recurring or one-time) for an agent

POST
/api/agents/{agent_id}/schedules

Create a schedule (recurring or one-time) for an agent.

Personal access token scope: schedules:write.

Authorization

bearer
headerAuthorizationBearer <token>

A session token or a personal access token. Leave it empty when the instance runs without authentication (AUTH_TYPE unset).

Path Parameters

agent_id*string

Request Body

application/json
  1. body
cron?string

Required when trigger_type == 'recurring'

end_at?string

ISO 8601

instruction*string
model_id?string
name?string
run_at?string

ISO 8601 β€” required when trigger_type == 'once'

timezone?string
token_budget?integer
tool_allowlist?array<string>
trigger_type?string

'recurring' (default) or 'once'

Response Body

Success

Example Request
curl -X POST 'http://localhost:7091/api/agents/string/schedules' \  -H 'Content-Type: application/json' \  -d '{  "instruction": "string"}'
Example Response200
Empty