Schedule preview
Validate scheduled actions before they become paid runs.
The preview endpoint checks schedule shape and target policy, but it does not persist, wake up, execute, or charge. Paid scheduling stays honest until a durable worker exists.
Request
Schedule shape plus webhook preflight.
A valid preview says the schedule definition is compatible. It does not mean Action402 will execute it later.
curl /api/schedules/preview \
-H "content-type: application/json" \
-d '{
"webhook": {
"url": "https://httpbin.org/anything",
"method": "POST",
"body": { "event": "agent.scheduled-preview" },
"idempotencyKey": "schedule-preview-001"
},
"schedule": {
"type": "daily",
"timeOfDay": "09:30",
"timezone": "UTC"
}
}'