How it works
You configure idempotency on the workflowโs event trigger. Refold extracts a value from each incoming event and treats it as the callโs unique identity. If another call arrives with the same value before the time period elapses, Refold drops it instead of starting a new run.| Setting | What it does |
|---|---|
| Key from | Where Refold reads the key from on the incoming event: the request Header or the Payload. |
| Idempotency key | The path to the unique value, written as {event:<key>}. The value at {event:<key>} uniquely identifies each call in the selected source. For example, {event:id} uses the eventโs id. |
| Time period | How long a key is remembered. Duplicate calls within this window are ignored. Defaults to 5 minutes. |
Configure idempotency
Open the trigger settings
In the workflow, open the event trigger and find the idempotency settings.
Choose where the key comes from
Set Key from to Header or Payload, depending on where your caller puts the unique value.
Point to the unique value
Set the Idempotency key to
{event:<key>}, where <key> is the field that uniquely identifies each call, for example {event:id}.Pick a key that is stable across retries but unique per logical event, such as an upstream record ID or event ID. A value that changes on every send (like a timestamp) defeats deduplication.
See also
- Triggers: fire workflows from events
- Trigger event API: send an event for a linked account
- Idempotency for Native: keeping writes safe to retry end to end