Aniva
2
 min read

Aniva API: retry requests without creating duplicates

Send the same request twice and you get one order back. Here's how the Aniva API avoids duplicate orders, profiles and bookings.
An API request with an idempotency key, and a retry with the same key that writes nothing new
Written by
Aniva
Published on
November 19, 2026

Your software sends us lots of requests every day. Now and then, one gets sent twice, or two arrive at exactly the same moment. Our API now makes sure that never creates a duplicate order, profile or booking.

Retry requests without creating duplicate orders

Networks fail at bad moments. Sometimes we get your request, but your server never gets our answer. It tries again, and without protection you'd have two kits or two appointments for the same customer. Now the requests that create profiles, appointments, home kit orders and shipments accept an idempotency key. Send the same key on the retry and you get the first answer back, with nothing new created.

Avoid duplicate profiles

Two profiles for one person means their results get split across two records. Now, if you create a profile for someone who already has one, with the same name, sex and date of birth, the API returns the existing profile instead. Use that one, and all their results stay together.

Use webhooks for anything that changes

Four list requests can now show a change up to five minutes late. Requests for a single record still show it straight away. If you need to know about changes as they happen, use webhooks and we'll tell your server about each one.

Ask questions in your Slack channel

We post the changelog in your shared Slack channel, and the Aniva Concierge answers questions about the API and the admin panel there. It checks our docs and sends you a link to the right page, and your developers don't have to wait for an email.

For more detail, see our A dependable API page. If any of the terms are new to you, the glossary explains Idempotency key, REST API and API scope.

Add blood testing to your business

Aniva provides the labs, the test kits, the shipping, the software and the data protection paperwork. You offer blood tests under your own brand. Tell us which tests you need and we will show you how it works.

Book a 30-Minute Call

Your future self is waiting

Start building the healthiest decade of your life.

Join today