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 useon.custom:
On a schedule
Choose On a schedule and set a timezone. The API usesactivation: "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.
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 throughPOST /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:
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.
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.