API Design & Idempotency

Idempotent create

Partners call `POST /transfers` to move money. Timeouts cause retries. Design idempotency: header or body field, what you store, TTL, and what response you return on duplicate submission with the same key.

Intermediate drill question.

Write it as you would say it in the interview: assumptions, the design, tradeoffs, and what you would do next. The draft saves in this browser.

Review the lesson