Prevent unintended side effects when retrying requests with idempotency controls built into the Trophy API and SDKs.
Idempotency-Key
header when using the event tracking API. Additionally, all client SDKs support idempotency with built-in type safety.
You can choose what to use as your idempotency key, but it should reflect the level of ‘uniqueness’ that you want Trophy to respect.
202 Accepted
response. The response will reflect the current state of the system, but will not increase the users metric total, complete any achievements, award any points, extend the streak, etc.201 Created
response. Finally Trophy will store the idempotency key for lookup during any subsequent requests.