Skip to main content

When to use it

Networks drop connections. When a client can’t tell whether a request reached Sideren, it retries — and without an idempotency key, that retry runs the work (and bills it) a second time. Send an Idempotency-Key header and Sideren recognises the retry.
A request with an idempotency key
Use a fresh random value (a UUID) per logical request, and reuse it only when retrying that same request.

How it works

A key is remembered for 24 hours, scoped to your API key, and matched against a canonical hash of the body.

What it does not cover

An idempotency key protects the request. It can’t undo side effects your own client caused — for example tools your agent already ran after reading a streamed tool call. Guard those in your own code. See Errors for the retry recipe.