Create workflow schedule
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
Reuse this key with the same creation request after a lost response. The original resource is returned; a different request is rejected with 409.
1 - 200Path Parameters
Team (workspace) id (UUID). Discover ids via the list teams endpoint or the agent context.
Body
Display name for the workflow schedule, 1-120 characters.
1 - 120The instruction each run starts from: the prompt handed to the agent.
1 - 20000Optional changed account limits to save atomically with this configuration. Accounts must be distinct selected destinations of this workspace. A nonempty array additionally requires manage_integrations. Any invalid, stale or unsafe reduction rejects every change. Omit or send [] to leave all shared limits unchanged.
1000When the schedule fires: { kind: "times", times: ["06:00", "18:00"] } or { kind: "window", start: "09:00", end: "18:00", count: 5 } (UTC). Exactly one of firePlan or cadence is required for schedule-typed schedules.
- Option 1
- Option 2
- Option 3
Legacy five-field cron expression evaluated in UTC (minute hour day-of-month month day-of-week). Prefer firePlan; a cron is used only when firePlan cannot express the cadence (weekly, stepped).
1 - 100"0 7 * * 1"
Which agent version each firing runs. Omit for fixed selection of agentId at its current version.
- Option 1
- Option 2
Managed agent a fixed schedule runs. Omit or send null to use the team's default agent. Ignored for optimised selection.
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$Campaign this schedule belongs to, for grouping and aggregate stats; required (and equal to selection.campaignId) for optimised selection. Null for none.
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$Label copied onto each run this schedule starts (for example "promptA"), up to 64 characters. Omit for none.
1 - 64Per-run credit cap in decimillicents. Omit for the default of $100 (1000000000 decimillicents); the agent version's own ceiling still applies.
Daily credit ceiling in decimillicents (UTC day). Omit for the default of $100 per day; send null for no daily ceiling.
x > 0Skip firings while this many (or more) of the schedule's runs are still in flight or unreviewed, 1-100 (default 10).
1 <= x <= 100Skip a firing while this many of the schedule's runs are queued, running or paused, 1-10 (default 1 for new schedules).
1 <= x <= 10Create the schedule paused. Omit or false to start firing at the next planned instant.
schedule (default) fires from firePlan or cadence. trigger fires only from its inbound trigger (API only): send no firePlan or cadence.
schedule, trigger Social accounts of this team the runs target, in priority order (the first account's platform is the optimiser's primary platform), up to 20. Omit or send [] to let the agent decide.
20a Universally Unique Identifier
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$Response
Success
a Universally Unique Identifier
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$a Universally Unique Identifier
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$a Universally Unique Identifier
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$Display name for the workflow schedule, 1-120 characters.
1 - 120The instruction each run starts from: the prompt handed to the agent.
1 - 20000schedule: fires from its plan; trigger: started by an inbound trigger (API only); manual: direct runs only.
schedule, trigger, manual user: created by a person. manual_implicit: the automatic owner of an agent's direct, API and review-queue runs (hidden from lists by default; it cannot be deleted).
user, manual_implicit When the schedule fires (daily UTC times or a random daily window). Null for legacy cron schedules and manual schedules.
- Option 1
- Option 2
- Option 3
Legacy five-field UTC cron expression, used when firePlan is null (for example weekly schedules). Null when firePlan drives the schedule.
1 - 100"0 7 * * 1"
Which agent version each firing runs: fixed, or optimised across a campaign.
- Option 1
- Option 2
Managed agent a fixed schedule runs; null for optimised selection (the campaign's agents are the pool).
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$Campaign this schedule belongs to, for grouping and aggregate stats; required (and equal to selection.campaignId) for optimised selection. Null for none.
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$Label copied onto each run this schedule starts, for comparing set-ups in analytics; null for none.
1 - 64When the schedule next fires (ISO-8601 UTC); null for manual and trigger schedules.
When the schedule last fired (ISO-8601 UTC); null before the first firing.
Per-run credit cap in decimillicents. A run spends at most min(this cap, the agent version's per-run ceiling).
Daily credit ceiling in decimillicents across all of this schedule's runs (UTC day). Firings are skipped once it is reached (optimised selection also skips agents whose per-run ceiling no longer fits); null means no daily ceiling.
x > 0Skip firings while this many (or more) of the schedule's runs are still in flight or unreviewed, 1-100 (default 10).
1 <= x <= 100Skip a firing while this many of the schedule's runs are queued, running or paused, 1-10 (default 1 for new schedules).
1 <= x <= 10Social accounts the runs target, in priority order; the first account's platform is the optimiser's primary platform. Empty lets the agent decide.
a Universally Unique Identifier
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$When the schedule was paused (ISO-8601 UTC); null while active. A paused schedule never fires.
a Universally Unique Identifier
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$a non-negative number
x >= 0Whether the selected managed agent owns the per-run ceiling. False preserves the legacy schedule ceiling as an additional cap.