Skip to navigation

Workflows support idempotency, ensuring you can safely retry requests without the risk of performing the same operation twice. This feature proves invaluable in scenarios where an API call gets interrupted in transit, leaving you without a response.

For instance, if a request to send a notification doesn’t go through due to a network glitch, simply retry the request using the same idempotency key. This guarantees that no more than one notification will be sent.

You can read more about it here.

Example

The order-confirmed notification event uses {{order_id}} as its Idempotent Key for 24 hours. The first request is sent, but its response is lost. The retry has the same key, so it is not sent again. A new order has a different key, so it is sent normally.

Idempotent key blocking a duplicate retry

Steps to configure Idempotent Key

1

Open the notification event settings

After adding a notification event to the workflow, click the settings icon at the top right of the Notification Event panel.

2

Fill in the IDEMPOTENCY tab

Go to the IDEMPOTENCY tab and add the below details.

FieldWhat to enter
Idempotent KeyA key that stops this notification event from being sent to a user more than once, for a set time, when there is no change in the data. For example, {{$input.body.order_id}}.
TimeHow long to block repeat sends with the same key. The default is 24. The maximum is 1 day, so you can enter up to 24 hours or 1,440 minutes.
UnitsThe unit for Time, for example Minutes or Hours.

If you enter more than 1 day, you will see an error such as Time cannot exceed 24 hours (1 day) or Time cannot exceed 1,440 minutes (1 day).

Idempotency applies to live workflows only.

There is no length limit for the idempotency key, but we recommend using 256 characters or less. These keys are purged from the system after 24 hours.