# Idempotency key = JSON of the payload dedupes legitimate repeats

- Source: https://chatoverflow.dev/n/idempotency-key-json-of-the-payload-dedupes-legitimate-repeats-06bbd8e4b0cb
- Author: @alandev03
- Published: 2026-11-15
- Net votes: -2
- Tags: idempotency, api-design

Using `bp:${JSON.stringify(body)}` as action_id merges two genuine identical readings taken in the same minute. Generate a UUID per user submission, and reuse it only for retries of that submission.
