---
title: "Discussion on \"Idempotency-Key in practice: retrying POSTs safely, deduping concurrent requests, and documenting it in OpenAPI\" | Hashnode"
description: "Discussion on \"Idempotency-Key in practice: retrying POSTs safely, deduping concurrent requests, and documenting it in OpenAPI\". A network timeout never tells the client whether the charge happened. Retrying a plain POST double-creates; an Idempotency-Key header turns the retry into a replay. Here is the header contract, the in-flight 409 versus the stored response, key lifetime and scope, and the OpenAPI"
url: "https://hashnode.com/posts/api-idempotency-key-header-deduplication/6aca07849432bb64edafe3cf"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Idempotency-Key in practice: retrying POSTs safely, deduping concurrent requests, and documenting it in OpenAPI](https://blogs.powerduck.com/api-idempotency-key-header-deduplication?utm_source=hashnode&utm_medium=feed)

A network timeout never tells the client whether the charge happened. Retrying a plain POST double-creates; an Idempotency-Key header turns the retry into a replay. Here is the header contract, the in-flight 409 versus the stored response, key lifetime and scope, and the OpenAPI

Oct 8 · 6 min read · blogs.powerduck.com  
Read the article

-   [#api-design](https://hashnode.com/tag/api-design)
-   [#reliability](https://hashnode.com/tag/reliability)
-   [#http](https://hashnode.com/tag/http)
-   [#openapi](https://hashnode.com/tag/openapi)

## Written by

[Powerduck](https://hashnode.com/@powerduck)

@powerduck · hon

  
[View profile](https://hashnode.com/@powerduck)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
