/api/workspaces/{workspaceId}/automations. Ids are UUIDs. All writes require the automations:write scope and the Editor or Admin role.
Create an automation
platforms(required) names at least one output destination. An empty or missing list returns400with an error listing the workspace’s connected destinations, and so does aPATCHthat would empty it. Automations saved before this rule keep running as they are.scheduleis{ "type": "cron", "value": "<cron expression>", "runLimit"?: n }or{ "type": "manual", "runLimit"?: n }, ornull. The cron is wall-clock time in the workspace’s timezone (its Timezone setting), not UTC:0 9 * * 1is 9:00 AM local every Monday, including across daylight-saving changes.leadTimeMinutes(default1440) — how far ahead of the scheduled publish the draft task is spawned.requiresReview(defaulttrue) — spawned tasks go through the review queue.- Optional context:
fileIds,folderIds,skillIds. When you omitskillIds, the automation gets the workspace skills whose name or description its instructions match; passskillIds(even[]) to choose them exactly.
201 with the bare automation object plus its computed nextRunAt. The /parse endpoint takes a plain-English description and returns these fields pre-filled, including the matched skillIds — it’s what the Create screen uses. When the description names no connected destination, /parse returns an empty platforms and the caller has to pick one.
List envelope
Listing uses cursor pagination, unlike tasks:?cursor= from pagination.nextCursor to continue (limit default 100, max 500).
Run now
POST /automations/{id}/run spawns the task immediately and returns it with 201. If a spawned run is already in flight you get 200 with alreadyRunning: true instead of a duplicate.