Skip to content

Create Schedule

POST /schedules

Credential-shaped fields in actor_context are dropped, not rejected (§2.5).

FieldTypeNotes
agent_idstring (uuid)required—
persona_idstring (uuid) | nulloptional—
kindcron | interval | one_shot | eventrequired—
labelstring | nulloptionalmax length 200
cron_expressionsstring[]optional—
timezonestringoptionalDefault "UTC". max length 60
interval_secondsinteger | nulloptionalmin 60
fire_atstring (date-time) | nulloptional—
event_kindstring | nulloptionalmax length 60
promptstringrequiredmin length 1
input_templateobject | nulloptional—
actor_contextActorContextoptional—
output_configobjectoptional—
expires_atstring (date-time) | nulloptional—
max_failuresintegeroptionalDefault 3. min 1 max 100
timeout_sinteger | nulloptionalmin 1
is_activebooleanoptionalDefault true.
StatusDescriptionBody
201Successful ResponseScheduleView
422Validation ErrorHTTPValidationError

The body shows the fields the schema always carries. Which combination is legal is a service rule the schema cannot express, so read the description above before copying this.

Terminal window
curl -X POST https://your-deployment.example.com/schedules \
-H "Authorization: Bearer $COBRE_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"agent_id": "0190a2f4-0000-7000-8000-000000000000",
"kind": "cron",
"prompt": "string"
}'
FieldTypeNotes
idstring (uuid)required—
agent_idstring (uuid)required—
persona_idstring (uuid) | nullrequired, nullable—
kindcron | interval | one_shot | eventrequired—
labelstring | nullrequired, nullable—
cron_expressionsobject[]required—
timezonestringrequired—
interval_secondsinteger | nullrequired, nullable—
event_kindstring | nullrequired, nullable—
fire_atstring (date-time) | nullrequired, nullable—
promptstringrequired—
input_templateobject | nullrequired, nullable—
actor_contextobjectrequired—
output_configobjectrequired—
next_fire_atstring (date-time) | nullrequired, nullable—
last_fired_atstring (date-time) | nullrequired, nullable—
last_run_idstring (uuid) | nullrequired, nullable—
expires_atstring (date-time) | nullrequired, nullable—
consecutive_failuresintegerrequired—
max_failuresintegerrequired—
skipped_overlapintegerrequired—
skipped_misfiresintegerrequired—
fire_countintegerrequired—
deactivated_atstring (date-time) | nullrequired, nullable—
deactivated_reasonstring | nullrequired, nullable—
timeout_sinteger | nullrequired, nullable—
is_activebooleanrequired—
created_by_user_idstring (uuid) | nullrequired, nullable—
created_by_run_idstring (uuid) | nullrequired, nullable—
created_atstring (date-time)required—