Idempotency
Send an Idempotency-Key with every POST so a retried request never creates a second message.
Applies to
v2
Why it matters
Networks fail halfway. If a request times out you cannot tell whether Fernway received it. Sending the same Idempotency-Key on the retry makes the call safe: the first result is replayed and no duplicate message goes out.
Rules
Use a unique key per logical operation, such as a UUID stored with your order or user action.
Keys are kept for 24 hours. After that the same key starts a new request.
Reusing a key with a different body returns 409 idempotency_conflict.
GET and DELETE are already idempotent and ignore the header.
SDK behaviour
The official SDKs generate a key for you when they retry automatically. Pass your own key when the retry might come from a different process.