Emit an event
user.created starts a run, with the event’s payload and tags. emit returns the ids of those runs.
Wake waiting runs
AddwakeOn to wake the runs waiting on a key:
refund_ord_42 goes on, and its step.wait returns the payload. The same event also starts the workflows listening for refund.reviewed.
Webhooks
A webhook turns calls from another service into an event. Create a webhook, choose the event it emits, and give its URL to the service. Each call to that URL emits the event, with the call’s JSON body as its payload. Every workflow listening for it starts a run.- The URL holds the webhook’s secret. Rotate it, and the old URL stops working at once.
- Set allowed IPs to accept calls only from the service’s addresses.