/

Sending events

Idempotency keys

Retry your own requests safely without sending a webhook twice.

2 min read

Networks fail in the middle of requests. If your call to Sluice times out, you cannot know whether the event was stored. An idempotency key makes it safe to try again.

-H "Idempotency-Key: inv_8841-paid"
-H "Idempotency-Key: inv_8841-paid"
-H "Idempotency-Key: inv_8841-paid"

Sluice remembers each key for 24 hours. A second request with the same key returns the first response and sends nothing new.

Choosing a key

Build the key from the thing that happened, not from a random value. inv_8841-paid is a good key because the same invoice can only be paid once.

Something missing or wrong on this page? Tell us at support@sluicehq.dev and we will fix it.

Create a free website with Framer, the website builder loved by startups, designers and agencies.