Schedules

Documentation for Schedules

Base path: /api/v1/schedules

Schedules represent recurring execution plans for workflows powered by Temporal. You can list all schedules for the authenticated user and update the input parameters for a scheduled workflow.

To create, pause/resume, or delete a schedule, use the workflow-specific schedule endpoints under /api/v1/workflows/:workflowId/schedule. See workflows.md.

All endpoints require JWT authentication and an x-active-org header.


Endpoints Overview

MethodPathAuthDescription
GET/api/v1/schedulesJWTList all schedules for the authenticated user
PUT/api/v1/schedules/:scheduleId/workflow-paramsJWTUpdate schedule inputs and environment variables

GET /api/v1/schedules

Lists all workflow schedules owned by the authenticated user within the active organization.

Query Parameters

ParameterTypeDefaultDescription
pagenumber1Page number (min: 1)
limitnumber20Items per page (min: 1, max: 100)
searchstring–Search by workflow name (case-insensitive substring)

Response 200 OK

json

Schedule object fields:

FieldTypeDescription
idstring (UUID)Schedule ID
workflowIdstring (UUID)ID of the associated workflow
workflowNamestring | nullWorkflow name
workflowDescriptionstring | nullWorkflow description
descriptionstring | nullHuman-readable schedule description
definitionobject | nullSchedule specification object (see Schedule Definition below)
isPausedbooleanWhether the schedule is currently paused
createdAtstring (ISO 8601)When the schedule was created
updatedAtstring (ISO 8601)Last update time

Schedule Definition Object

The definition field describes when the workflow runs:

FieldTypeDescription
intervalsarrayInterval-based schedules: [{ "every": "1h", "offset": "0" }]
calendarsarrayCalendar-based schedules (cron-like)
timezonestring | nullIANA timezone string, e.g. "America/New_York"
jitterstring | number | nullRandom delay to spread load (duration string or seconds)
startAtstring | nullISO 8601 start datetime
endAtstring | nullISO 8601 end datetime
descriptionstring | nullHuman-readable description

Calendar entry fields: second, minute, hour, dayOfMonth, month, year, dayOfWeek β€” each accepts a single value, a range ({ start, end, step }), or an array of values.


PUT /api/v1/schedules/:scheduleId/workflow-params

Updates the input values and environment variables used when the schedule triggers the workflow. Changes are propagated to the Temporal schedule immediately.

Path Parameters

ParameterTypeDescription
scheduleIdstring (UUID)Schedule ID

Request Body (multipart/form-data)

FieldTypeRequiredDefaultDescription
inputsJSON objectNo{}Input values for the scheduled run (keyed by input name)
envsJSON objectNo{}Environment variable overrides (string-to-string map)
javascript

Response 200 OK

json

Errors

StatusReason
404 Not FoundSchedule not found in DB or not found in Temporal
api-docs/schedules