Learn how to make idempotent requests to the Onsi API.
x-idempotency-key
x-idempotency-key
header. Clients should generate and attach this key to requests that need to be idempotent. Here’s how it works:
x-idempotency-key
when making a request.x-idempotency-key
POST /v1/members
x-idempotency-key
when creating a new member via the /v1/members
endpoint.
x-idempotency-key
, the Onsi API will recognize that the operation has already been performed and will not create a duplicate member. Instead, it will return the details of the member created by the first request.
x-idempotency-key
in your requests to the Onsi API is a best practice that should be adopted to ensure the robustness and reliability of your application. By implementing idempotent operations, you safeguard your API interactions against unintended duplications and provide a more stable and consistent user experience.