mistralM

Docs

sideBar

Workflows Schedules

Workflows API - schedules.

GET /v1/workflows/schedules

Get Schedules

Get Schedules

Parameters

workflow_name
string | nullquery

Filter by exact workflow name

user_id
string | nullquery

Filter by user ID. Pass 'current' to resolve to the authenticated user's ID.

status
"active" | "paused"query

Filter by schedule status: 'active' or 'paused'

string | nullquery

Fuzzy search query for workflow name, display name, description, or ID

page_size
integer | nullquery

Number of items per page. Omitting this parameter fetches all results at once (deprecated — pass page_size to use pagination).

next_page_token
string | nullquery

Token for the next page of results

Responses

Successful Response

next_page_token
string | null

Token for the next page of results

schedules
array<ScheduleDefinitionOutput>* required

A list of workflow schedules

ScheduleDefinitionOutput

Output representation of a schedule with required schedule_id.

Used when returning schedules from the API where schedule_id is always present.

calendars
array<ScheduleCalendar>

Calendar-based specification of times.

ScheduleCalendar
comment
string | null
day_of_month
array<ScheduleRange>
ScheduleRange
end
integer

Default Value: 0

start
integer* required
step
integer

Default Value: 0

day_of_week
array<ScheduleRange>
ScheduleRange
end
integer

Default Value: 0

start
integer* required
step
integer

Default Value: 0

hour
array<ScheduleRange>
ScheduleRange
end
integer

Default Value: 0

start
integer* required
step
integer

Default Value: 0

minute
array<ScheduleRange>
ScheduleRange
end
integer

Default Value: 0

start
integer* required
step
integer

Default Value: 0

month
array<ScheduleRange>
ScheduleRange
end
integer

Default Value: 0

start
integer* required
step
integer

Default Value: 0

second
array<ScheduleRange>
ScheduleRange
end
integer

Default Value: 0

start
integer* required
step
integer

Default Value: 0

year
array<ScheduleRange>
ScheduleRange
end
integer

Default Value: 0

start
integer* required
step
integer

Default Value: 0

cron_expressions
array<string>

Cron-based specification of times.

deployment_name
string | null

Name of the deployment this schedule targets.

end_at
date-time | null

Time after which no more actions will be run.

future_executions
array<ScheduleFutureExecution>

Upcoming scheduled executions (10 next executions, earliest first).

ScheduleFutureExecution
scheduled_at
date-time* required

Time the execution is scheduled to run.

input
any* required

Input to provide to the workflow when starting it.

intervals
array<ScheduleInterval>

Interval-based specification of times.

ScheduleInterval
every
string* required
offset
string | null
jitter
string | null

Jitter to apply each action.

An action's scheduled time will be incremented by a random value between 0 and this value if present (but not past the next schedule).

note
string | null

Human-readable note associated with the current pause or resume state.

paused
boolean* required

Whether the schedule is currently paused.

SchedulePolicy
catchup_window_seconds
integer

After a Temporal server is unavailable, amount of time in seconds in the past to execute missed actions.

Default Value: 31536000

overlap
"1" | "2" | "3" | "4" | "5" | "6"

Controls what happens when a workflow would be started by a schedule but one is already running.

pause_on_failure
boolean

Whether to pause the schedule after a workflow failure.

Default Value: false

recent_executions
array<ScheduleRecentExecution>

Most recent scheduled executions (10 most recent, newest last).

ScheduleRecentExecution
execution_id
string* required

ID of the workflow execution that was started.

scheduled_at
date-time* required

Time the execution was scheduled to run.

started_at
date-time* required

Actual time the execution started.

remaining_executions
integer | null

Remaining workflow executions before this schedule stops triggering automatically. null means unlimited; 0 means the limit has been reached and the schedule is exhausted.

schedule_id
string* required

Unique identifier for the schedule.

skip
array<ScheduleCalendar>

Calendar-based specification of times.

ScheduleCalendar
comment
string | null
day_of_month
array<ScheduleRange>
ScheduleRange
end
integer

Default Value: 0

start
integer* required
step
integer

Default Value: 0

day_of_week
array<ScheduleRange>
ScheduleRange
end
integer

Default Value: 0

start
integer* required
step
integer

Default Value: 0

hour
array<ScheduleRange>
ScheduleRange
end
integer

Default Value: 0

start
integer* required
step
integer

Default Value: 0

minute
array<ScheduleRange>
ScheduleRange
end
integer

Default Value: 0

start
integer* required
step
integer

Default Value: 0

month
array<ScheduleRange>
ScheduleRange
end
integer

Default Value: 0

start
integer* required
step
integer

Default Value: 0

second
array<ScheduleRange>
ScheduleRange
end
integer

Default Value: 0

start
integer* required
step
integer

Default Value: 0

year
array<ScheduleRange>
ScheduleRange
end
integer

Default Value: 0

start
integer* required
step
integer

Default Value: 0

start_at
date-time | null

Time after which the first action may be run.

time_zone_name
string | null

IANA time zone name, for example US/Central.

user_id
string | null

ID of the user who created the schedule.

workflow_name
string* required

Name of the workflow this schedule triggers.

POST /v1/workflows/schedules

Schedule Workflow

Schedule Workflow

Request Example

{
  "schedule": {
    "input": null
  }
}

Request Body

deployment_name
string | null

Name of the deployment to route this schedule to

schedule
ScheduleDefinition* required

Specification of the times scheduled actions may occur.

The times are the union of :py:attr:calendars, :py:attr:intervals, and :py:attr:cron_expressions excluding anything in :py:attr:skip.

Used for input where schedule_id is optional (can be provided or auto-generated).

ScheduleDefinition

Specification of the times scheduled actions may occur.

The times are the union of :py:attr:calendars, :py:attr:intervals, and :py:attr:cron_expressions excluding anything in :py:attr:skip.

Used for input where schedule_id is optional (can be provided or auto-generated).

calendars
array<ScheduleCalendar>

Calendar-based specification of times.

ScheduleCalendar
comment
string | null
day_of_month
array<ScheduleRange>
ScheduleRange
end
integer

Default Value: 0

start
integer* required
step
integer

Default Value: 0

day_of_week
array<ScheduleRange>
ScheduleRange
end
integer

Default Value: 0

start
integer* required
step
integer

Default Value: 0

hour
array<ScheduleRange>
ScheduleRange
end
integer

Default Value: 0

start
integer* required
step
integer

Default Value: 0

minute
array<ScheduleRange>
ScheduleRange
end
integer

Default Value: 0

start
integer* required
step
integer

Default Value: 0

month
array<ScheduleRange>
ScheduleRange
end
integer

Default Value: 0

start
integer* required
step
integer

Default Value: 0

second
array<ScheduleRange>
ScheduleRange
end
integer

Default Value: 0

start
integer* required
step
integer

Default Value: 0

year
array<ScheduleRange>
ScheduleRange
end
integer

Default Value: 0

start
integer* required
step
integer

Default Value: 0

cron_expressions
array<string>

Cron-based specification of times.

end_at
date-time | null

Time after which no more actions will be run.

input
any* required

Input to provide to the workflow when starting it.

intervals
array<ScheduleInterval>

Interval-based specification of times.

ScheduleInterval
every
string* required
offset
string | null
jitter
string | null

Jitter to apply each action.

An action's scheduled time will be incremented by a random value between 0 and this value if present (but not past the next schedule).

max_executions
integer | null

Maximum number of times this schedule will trigger a workflow execution. Once this limit is reached, no further executions are triggered automatically. null means unlimited.

SchedulePolicy
catchup_window_seconds
integer

After a Temporal server is unavailable, amount of time in seconds in the past to execute missed actions.

Default Value: 31536000

overlap
"1" | "2" | "3" | "4" | "5" | "6"

Controls what happens when a workflow would be started by a schedule but one is already running.

pause_on_failure
boolean

Whether to pause the schedule after a workflow failure.

Default Value: false

schedule_id
string | null

Unique identifier for the schedule.

skip
array<ScheduleCalendar>

Calendar-based specification of times.

ScheduleCalendar
comment
string | null
day_of_month
array<ScheduleRange>
ScheduleRange
end
integer

Default Value: 0

start
integer* required
step
integer

Default Value: 0

day_of_week
array<ScheduleRange>
ScheduleRange
end
integer

Default Value: 0

start
integer* required
step
integer

Default Value: 0

hour
array<ScheduleRange>
ScheduleRange
end
integer

Default Value: 0

start
integer* required
step
integer

Default Value: 0

minute
array<ScheduleRange>
ScheduleRange
end
integer

Default Value: 0

start
integer* required
step
integer

Default Value: 0

month
array<ScheduleRange>
ScheduleRange
end
integer

Default Value: 0

start
integer* required
step
integer

Default Value: 0

second
array<ScheduleRange>
ScheduleRange
end
integer

Default Value: 0

start
integer* required
step
integer

Default Value: 0

year
array<ScheduleRange>
ScheduleRange
end
integer

Default Value: 0

start
integer* required
step
integer

Default Value: 0

start_at
date-time | null

Time after which the first action may be run.

time_zone_name
string | null

IANA time zone name, for example US/Central.

schedule_id
string | null

Allows you to specify a custom schedule ID. If not provided, a random ID will be generated.

workflow_identifier
string | null

The name or ID of the workflow to schedule

workflow_registration_id
string | null

The ID of the workflow registration to schedule

workflow_task_queue
string | null
exclamationMark

Deprecated. Use deployment_name instead.

workflow_version_id
string | null
exclamationMark

Deprecated: use workflow_registration_id

Server-Side Events

Successful Response

schedule_id
string* required

The ID of the schedule

GET /v1/workflows/schedules/{schedule_id}

Get Schedule

Get Schedule

Parameters

schedule_id
stringpath* required

Responses

Successful Response

calendars
array<ScheduleCalendar>

Calendar-based specification of times.

ScheduleCalendar
comment
string | null
day_of_month
array<ScheduleRange>
ScheduleRange
end
integer

Default Value: 0

start
integer* required
step
integer

Default Value: 0

day_of_week
array<ScheduleRange>
ScheduleRange
end
integer

Default Value: 0

start
integer* required
step
integer

Default Value: 0

hour
array<ScheduleRange>
ScheduleRange
end
integer

Default Value: 0

start
integer* required
step
integer

Default Value: 0

minute
array<ScheduleRange>
ScheduleRange
end
integer

Default Value: 0

start
integer* required
step
integer

Default Value: 0

month
array<ScheduleRange>
ScheduleRange
end
integer

Default Value: 0

start
integer* required
step
integer

Default Value: 0

second
array<ScheduleRange>
ScheduleRange
end
integer

Default Value: 0

start
integer* required
step
integer

Default Value: 0

year
array<ScheduleRange>
ScheduleRange
end
integer

Default Value: 0

start
integer* required
step
integer

Default Value: 0

cron_expressions
array<string>

Cron-based specification of times.

deployment_name
string | null

Name of the deployment this schedule targets.

end_at
date-time | null

Time after which no more actions will be run.

future_executions
array<ScheduleFutureExecution>

Upcoming scheduled executions (10 next executions, earliest first).

ScheduleFutureExecution
scheduled_at
date-time* required

Time the execution is scheduled to run.

input
any* required

Input to provide to the workflow when starting it.

intervals
array<ScheduleInterval>

Interval-based specification of times.

ScheduleInterval
every
string* required
offset
string | null
jitter
string | null

Jitter to apply each action.

An action's scheduled time will be incremented by a random value between 0 and this value if present (but not past the next schedule).

note
string | null

Human-readable note associated with the current pause or resume state.

paused
boolean* required

Whether the schedule is currently paused.

SchedulePolicy
catchup_window_seconds
integer

After a Temporal server is unavailable, amount of time in seconds in the past to execute missed actions.

Default Value: 31536000

overlap
"1" | "2" | "3" | "4" | "5" | "6"

Controls what happens when a workflow would be started by a schedule but one is already running.

pause_on_failure
boolean

Whether to pause the schedule after a workflow failure.

Default Value: false

recent_executions
array<ScheduleRecentExecution>

Most recent scheduled executions (10 most recent, newest last).

ScheduleRecentExecution
execution_id
string* required

ID of the workflow execution that was started.

scheduled_at
date-time* required

Time the execution was scheduled to run.

started_at
date-time* required

Actual time the execution started.

remaining_executions
integer | null

Remaining workflow executions before this schedule stops triggering automatically. null means unlimited; 0 means the limit has been reached and the schedule is exhausted.

schedule_id
string* required

Unique identifier for the schedule.

skip
array<ScheduleCalendar>

Calendar-based specification of times.

ScheduleCalendar
comment
string | null
day_of_month
array<ScheduleRange>
ScheduleRange
end
integer

Default Value: 0

start
integer* required
step
integer

Default Value: 0

day_of_week
array<ScheduleRange>
ScheduleRange
end
integer

Default Value: 0

start
integer* required
step
integer

Default Value: 0

hour
array<ScheduleRange>
ScheduleRange
end
integer

Default Value: 0

start
integer* required
step
integer

Default Value: 0

minute
array<ScheduleRange>
ScheduleRange
end
integer

Default Value: 0

start
integer* required
step
integer

Default Value: 0

month
array<ScheduleRange>
ScheduleRange
end
integer

Default Value: 0

start
integer* required
step
integer

Default Value: 0

second
array<ScheduleRange>
ScheduleRange
end
integer

Default Value: 0

start
integer* required
step
integer

Default Value: 0

year
array<ScheduleRange>
ScheduleRange
end
integer

Default Value: 0

start
integer* required
step
integer

Default Value: 0

start_at
date-time | null

Time after which the first action may be run.

time_zone_name
string | null

IANA time zone name, for example US/Central.

user_id
string | null

ID of the user who created the schedule.

workflow_name
string* required

Name of the workflow this schedule triggers.

DELETE /v1/workflows/schedules/{schedule_id}

Unschedule Workflow

Unschedule Workflow

Parameters

schedule_id
stringpath* required

PATCH /v1/workflows/schedules/{schedule_id}

Update Schedule

Update Schedule

Parameters

schedule_id
stringpath* required

Request Example

{
  "schedule": {}
}

Request Body

schedule
PartialScheduleDefinition* required

Schedule definition for partial updates.

All fields are optional (inherited from _ScheduleRequestBase). Only explicitly-set fields are applied during an update; unset fields preserve the existing schedule values.

PartialScheduleDefinition

Schedule definition for partial updates.

All fields are optional (inherited from _ScheduleRequestBase). Only explicitly-set fields are applied during an update; unset fields preserve the existing schedule values.

calendars
array<ScheduleCalendar>

Calendar-based specification of times.

ScheduleCalendar
comment
string | null
day_of_month
array<ScheduleRange>
ScheduleRange
end
integer

Default Value: 0

start
integer* required
step
integer

Default Value: 0

day_of_week
array<ScheduleRange>
ScheduleRange
end
integer

Default Value: 0

start
integer* required
step
integer

Default Value: 0

hour
array<ScheduleRange>
ScheduleRange
end
integer

Default Value: 0

start
integer* required
step
integer

Default Value: 0

minute
array<ScheduleRange>
ScheduleRange
end
integer

Default Value: 0

start
integer* required
step
integer

Default Value: 0

month
array<ScheduleRange>
ScheduleRange
end
integer

Default Value: 0

start
integer* required
step
integer

Default Value: 0

second
array<ScheduleRange>
ScheduleRange
end
integer

Default Value: 0

start
integer* required
step
integer

Default Value: 0

year
array<ScheduleRange>
ScheduleRange
end
integer

Default Value: 0

start
integer* required
step
integer

Default Value: 0

cron_expressions
array<string>

Cron-based specification of times.

end_at
date-time | null

Time after which no more actions will be run.

input
any

Input to provide to the workflow when starting it.

intervals
array<ScheduleInterval>

Interval-based specification of times.

ScheduleInterval
every
string* required
offset
string | null
jitter
string | null

Jitter to apply each action.

An action's scheduled time will be incremented by a random value between 0 and this value if present (but not past the next schedule).

max_executions
integer | null

Maximum number of times this schedule will trigger a workflow execution. Once this limit is reached, no further executions are triggered automatically. null means unlimited.

SchedulePolicy
catchup_window_seconds
integer

After a Temporal server is unavailable, amount of time in seconds in the past to execute missed actions.

Default Value: 31536000

overlap
"1" | "2" | "3" | "4" | "5" | "6"

Controls what happens when a workflow would be started by a schedule but one is already running.

pause_on_failure
boolean

Whether to pause the schedule after a workflow failure.

Default Value: false

skip
array<ScheduleCalendar>

Calendar-based specification of times.

ScheduleCalendar
comment
string | null
day_of_month
array<ScheduleRange>
ScheduleRange
end
integer

Default Value: 0

start
integer* required
step
integer

Default Value: 0

day_of_week
array<ScheduleRange>
ScheduleRange
end
integer

Default Value: 0

start
integer* required
step
integer

Default Value: 0

hour
array<ScheduleRange>
ScheduleRange
end
integer

Default Value: 0

start
integer* required
step
integer

Default Value: 0

minute
array<ScheduleRange>
ScheduleRange
end
integer

Default Value: 0

start
integer* required
step
integer

Default Value: 0

month
array<ScheduleRange>
ScheduleRange
end
integer

Default Value: 0

start
integer* required
step
integer

Default Value: 0

second
array<ScheduleRange>
ScheduleRange
end
integer

Default Value: 0

start
integer* required
step
integer

Default Value: 0

year
array<ScheduleRange>
ScheduleRange
end
integer

Default Value: 0

start
integer* required
step
integer

Default Value: 0

start_at
date-time | null

Time after which the first action may be run.

time_zone_name
string | null

IANA time zone name, for example US/Central.

Responses

Successful Response

schedule_id
string* required

The ID of the schedule

POST /v1/workflows/schedules/{schedule_id}/pause

Pause Schedule

Pause Schedule

Parameters

schedule_id
stringpath* required

Request Example

null

Request Body

WorkflowSchedulePauseRequest | null
WorkflowSchedulePauseRequest
note
string | null

Optional note recorded in Temporal when pausing or resuming a schedule

POST /v1/workflows/schedules/{schedule_id}/resume

Resume Schedule

Resume Schedule

Parameters

schedule_id
stringpath* required

Request Example

null

Request Body

WorkflowSchedulePauseRequest | null
WorkflowSchedulePauseRequest
note
string | null

Optional note recorded in Temporal when pausing or resuming a schedule

POST /v1/workflows/schedules/{schedule_id}/trigger

Trigger Schedule

Trigger Schedule

Parameters

schedule_id
stringpath* required

Request Example

null

Request Body

WorkflowScheduleTriggerRequest | null
WorkflowScheduleTriggerRequest
overlap
"1" | "2" | "3" | "4" | "5" | "6"

Controls what happens when a workflow would be started by a schedule but one is already running.