Skip to main content
A routine binds one trigger to its ordered steps. Open When to configure how it starts.

Manually

Choose Manually for on-demand work. Run now starts a live run with the input you supply; see Run now for API examples and execution results. In a routine document, manual runs use on.custom:
Use this template.

On a schedule

Choose On a schedule and set a timezone. The API uses activation: "schedule", scheduleRule, and an IANA timezone, such as Europe/Amsterdam. Document schedules use cron, once, or rrule directly, rather than the resource API’s scheduleRule wrapper.
Use the cron template or once template. For RRULE, copy the cron template and replace cron with rrule as above. Add jitter to the rule for a randomized window around each scheduled time, for example {"beforeMinutes":5,"afterMinutes":10}. Scheduled runs use the trigger’s stored payload; request payload overrides are ignored. Stored inputs require a matching customPayloadSchema and are available as event.payload. This example creates a daily trigger with stored inputs. Bind its returned ID as triggerId when creating a routine. All requests use your API key.

Custom trigger

Create a trigger through POST /v1/triggers with {"name":"On demand","activation":"custom"} and bind it to a routine. To fire it, send a JSON payload to POST /v1/triggers/{triggerId}/fire. In a routine document:
Use this template. The fire call’s payload must match inputs. This is an authenticated API call, not an unauthenticated inbound webhook URL. Use your API key from a trusted server. Only custom triggers can be fired this way; schedule and event triggers return 409.
The 202 response contains invocationId, enqueuedCount, and deduplicated directly, without a data envelope. One trigger can start multiple enabled routines. A zero count can mean no attached routine is eligible. If configured, customPayloadSchema validates the payload. Keep the same idempotency key and payload when retrying the same fire; use a new key for a new invocation.

On an event

Soon App, device, and platform event triggers will start routines when an event happens. On an event is not yet available to customers; use a schedule or authenticated custom trigger for now. The document shape below is reserved for event triggers; availability remains Soon. EVENT_TYPE is a placeholder, not a currently supported customer event.
Use a manual template or schedule template today.