SapanBaseDevelopers

Idempotency keys on mutating requests

Use an Idempotency-Key header on mutating API calls to safely retry requests without creating duplicates.

Any mutating request to the API (creates, updates) accepts an Idempotency-Key header. Send the same key on a retried request — after a network timeout, for instance — and HelpBento returns the original result instead of processing the mutation twice.

This is especially useful for anything that creates a resource (an article, a support request), where a naive retry without an idempotency key could otherwise create duplicates.