How It Works
Include anIdempotency-Key header with POST requests that create or trigger work. The key lets the server return the original result if your client retries the same request after a timeout or network failure.
Behavior
Generating Keys
Use a UUID v4 or combine business-meaningful values:Best Practices
Idempotency keys are only meaningful for mutation requests that accept them. The Node.js and Python SDKs attach idempotency keys to POST requests when you pass the method-specific idempotency option.
GET, PATCH, and DELETE requests are not retried through the idempotency cache.- Always use idempotency keys for create/action requests such as creating programs, invites, payouts, or marketing resources
- Use business-meaningful keys when possible (e.g.,
payout_{affiliate_id}_{period}) to prevent duplicates even across separate code paths - Retry with the same key – don’t generate a new key for retries
- Keys expire after 24 hours – after that, the same key can be reused