Skip to main content
POST
Create workflow schedule

Authorizations

Authorization
string
header
required

Organization API key, generated in studio.sidenet.ai. Backend only — never in a browser.

Body

application/json
timezone
string
required
Example:

"Europe/Paris"

workflow_id
string<uuid>

The workflow to schedule — exactly one of workflow_id / prompt_id.

Example:

"4c2f9e18-7a63-4d05-b1e8-93a7c0f2d641"

prompt_id
string<uuid>

One of the user's saved automations (GET /v1/prompts) to schedule instead of a workflow.

user_id
string

The user the runs execute as (billing group, integrations, result thread owner). Required with an API key; implied by a session token.

Example:

"user_4821"

group
object
recurrence
object
Example:
cron
string

Alternative to recurrence. Minimum interval: hourly.

Example:

"0 8 * * 1-5"

starts_at
string<date-time>
ends_at
string<date-time>
input
object
Example:
notify
enum<string>
default:thread
Available options:
thread,
none
thread_title
string
Example:

"Daily signups digest"

delivery
object | null

Where each run's result goes when not to a conversation (the chat widget's "Send to"): the tool called, as the schedule's user with their stored tool credentials, with { ...input, [result_key]: { text, attachments, run_id, schedule_id, automation_name, status, error } } after every run, succeeded or failed. Sets notify: "none"; 400 when the organization has no such tool. On PATCH, null clears it: the results are filed as conversations again (thread_title needed).

dashboard_id
string<uuid> | null

One of the user's saved dashboards (its id in GET /v1/dashboards — the chat widget's "Dashboard" select on the schedule form, and the dashboard page's "Schedule" button). Every successful run's result then ends with the dashboard's link, [name](sidenet://dashboard/<id>), on its own paragraph — in the result conversation, where the widget renders it as the dashboard card, and in the text a delivery tool receives. 404 dashboard_missing when it is not a dashboard of the user the schedule runs as. On PATCH, null links none.

name
string

Response

The schedule, with its next run times

schedule
object
next_fires
string<date-time>[]
published_version
integer | null

Session + own workflow: the version the schedule runs (published by this call when the draft was newer).