Skip to content

Create Schedule

POST/v1/schedules

Create a Schedule that runs a pinned Agent version on a cron expression. Idempotency-Key is required. The model credential (model_provider, or your calling API key) is stored encrypted and used for every scheduled run.

Headers

stringIdempotency-Keyrequired

1-128 characters, no leading or trailing whitespace. Reuse the same key and body when retrying; the same key with a different body returns 409.

Request body

Strict JSON object.

stringnamerequired

Up to 200 characters.

stringagent_idrequired

Saved Agent ID. The Agent must be active and ready.

Optional<integer>agent_version

Agent version to pin. Omit to pin the current version at creation time.

stringinputrequired

Input sent on every run. Required and non-empty, up to 256 KiB.

Optional<string>description

Up to 16384 characters.

Optional<string>model

Default model override.

objectschedulerequired

{"cron": "<5-field cron>", "timezone": "<IANA name>"}. timezone defaults to UTC. Seconds are not supported; an expression with no match in the next 366 days returns 400.

Optional<object>model_provider

Model credential stored encrypted for scheduled runs. Omit to store your calling API key.