API Versioning Strategy for Identity Verification: Managing Evolution and Stability
Developing a robust API versioning strategy is crucial for identity verification providers to balance rapid innovation with client stability. This article explores best practices for managing API evolution in a dynamic regulatory
Contents
In this guide
Jump to the part you need.
A well-defined API versioning strategy is essential for any identity verification provider to deliver continuous improvements and new features without disrupting existing client integrations. This strategy allows developers to adopt new functionalities at their own pace, ensuring stability while the API evolves.
Why an API Versioning Strategy is Crucial for Identity and Fraud Infrastructure
Identity verification and fraud detection are rapidly evolving fields, driven by new threats, regulatory changes, and technological advancements. Providers must frequently update their APIs to incorporate new data sources, improve algorithms, and comply with emerging standards like the EU's eIDAS 2.0 or various Anti-Money Laundering (AML) directives. Without a clear API versioning strategy, these necessary updates could lead to:
- Integration Breakage: Changes to existing endpoints, request/response formats, or data types without versioning can immediately break client applications, leading to downtime and significant developer effort for remediation.
- Developer Frustration: Unpredictable API changes make it difficult for developers to maintain and upgrade their integrations, eroding trust and increasing the cost of ownership.
- Stifled Innovation: Fear of breaking existing integrations can make providers hesitant to introduce new features or improvements, slowing down innovation.
- Security Risks: Delaying necessary updates due to integration concerns can leave systems vulnerable to new fraud vectors or non-compliance issues.
Common API Versioning Strategies
Several approaches exist for implementing an API versioning strategy, each with its own trade-offs. The choice often depends on the API's complexity, the rate of change, and the client base's needs.
1. URI Versioning
This is one of the most straightforward and widely adopted methods. The version number is included directly in the URI (Uniform Resource Identifier) path.
- Example:
https://api.didit.me/v1/verifyorhttps://api.didit.me/v2/verify - Pros: Highly visible, easy to understand, and cacheable. Different versions can be routed easily by load balancers.
- Cons: Can lead to URI sprawl as more versions are introduced. Requires clients to change the base URL for new versions.
2. Query Parameter Versioning
Here, the version is passed as a query parameter in the URL.
- Example:
https://api.didit.me/verify?version=1orhttps://api.didit.me/verify?version=2 - Pros: Keeps the base URI clean. Easy to switch between versions for testing.
- Cons: Can be less intuitive than URI versioning. Query parameters are sometimes stripped by proxies or caches.
3. Header Versioning
The API version is specified in a custom HTTP header.
- Example: `GET /verify HTTP/1.1
Accept-Version: v1 or GET /verify HTTP/1.1
Accept: application/vnd.didit.v2+json`
- Pros: Decouples the version from the URI, allowing for more flexible routing. Can be used for content negotiation.
- Cons: Less discoverable for developers without documentation. Requires client libraries to explicitly set headers.
4. Semantic Versioning (for Libraries/SDKs)
While not directly an API versioning strategy for the endpoint itself, semantic versioning (Major.Minor.Patch) is crucial for client libraries or Software Development Kits (SDKs) that interact with the API.
- Example:
didit-sdk-python==1.2.3 - Major version (1.x.x): Breaking changes, non-backward compatible modifications.
- Minor version (x.2.x): New features, backward compatible additions.
- Patch version (x.x.3): Bug fixes, backward compatible changes.
Best Practices for Identity Verification API Versioning
Given the critical nature of identity and fraud infrastructure, a reliable API versioning strategy should incorporate several best practices:
- Start with Versioning from Day One: Even if you don't anticipate immediate changes, launch with
v1in your URI. This sets expectations and avoids a painful migration later. - Clear Deprecation Policy: Communicate a clear timeline for deprecating older API versions. A common approach is to support
NandN-1versions for a specific period (e.g., 12-18 months) after a new major version is released. Provide ample notice (e.g., 6 months). - Comprehensive Documentation: Each API version must have its own dedicated documentation, detailing changes, new features, and migration guides. Didit's documentation, for example, clearly outlines endpoints and data models for its latest API, making it easy for developers to integrate.
- Backward Compatibility for Minor Changes: Aim for backward compatibility for all minor changes, such as adding new fields to a response or new optional parameters. Only introduce new major versions for truly breaking changes.
- Graceful Error Handling: Ensure that clients using older versions gracefully handle new fields they don't understand, rather than crashing.
- Versioning Client SDKs: Maintain corresponding versions for client SDKs to abstract away API complexity and facilitate easier upgrades for developers.
- Communication and Change Logs: Actively communicate API changes through release notes, developer blogs, and direct emails to integrators. A detailed change log for each version is invaluable.
- Testing Environment for Each Version: Provide sandbox or staging environments for each active API version, allowing developers to test migrations thoroughly before deploying to production.
Didit's Approach to API Evolution
At Didit, our API versioning strategy prioritizes both developer stability and the continuous improvement of our identity and fraud infrastructure. We utilize URI versioning (e.g., /v1/) for major, breaking changes, ensuring that clients can continue to operate on their chosen version while new features are introduced in subsequent versions. Minor, non-breaking enhancements, such as new data points in a verification response or additional optional parameters, are often rolled out within the existing version, adhering to backward compatibility principles.
We provide extensive documentation for all API versions, including comprehensive migration guides when a new major version is released. This commitment to a clear API versioning strategy allows our 4,000+ companies to confidently integrate Didit's services, knowing they can leverage the fastest verifications in the market without fear of unexpected disruptions.
Key Takeaways
- An effective API versioning strategy is critical for managing the evolution of identity verification and fraud APIs.
- URI versioning is a popular and transparent method for indicating major API changes.
- Clear deprecation policies and extensive documentation are essential for developer experience.
- Prioritize backward compatibility for minor changes to minimize client disruption.
- Communicating changes proactively builds trust and facilitates smooth upgrades.
Get started with Didit
Didit is infrastructure for identity and fraud — one API and public pay-per-use pricing. Add User Verification to your flow and integrate in 5 minutes.
- User Verification — see how it works and what it costs.
- Read the documentation — API reference and integration guide.
- Start free, no credit card required.
Try it
Try this in the sandbox
Run the check this guide describes, free.
The product this post is about, taken from its topic. Run it free in the sandbox.
Author
Alberto Rosas
Co-founder and CEO

Questions
Frequently Asked Questions
Q: What constitutes a "breaking change" in an API?
A: A breaking change is any modification that would require a client application to be updated to continue functioning. This includes removing an endpoint, renaming a field, changing a data type, or making a previously optional parameter mandatory.
Q: How long should an old API version be supported?
A: The support period varies, but a common practice is 12-18 months after a new major version is released. This provides ample time for clients to migrate without undue pressure.
Q: Should I version every small change?
A: No. Only introduce new major versions for breaking changes. Minor changes (adding new fields, new optional parameters, bug fixes) should be backward compatible and released within the existing major version.
Q: What's the difference between API versioning and semantic versioning?
A: API versioning (e.g., v1, v2 in the URI) applies to the API endpoints and their contracts. Semantic versioning (Major.Minor.Patch) is typically used for software libraries and SDKs, indicating the nature of changes within that specific client-side code.
Didit offers infrastructure for identity and fraud, providing User Verification (KYC (Know Your Customer)), Business Verification (KYB (Know Your Business)), Transaction Monitoring, and Wallet Screening (KYT (Know Your Transaction)) through a single API. Our reliable API versioning strategy ensures that developers can integrate in 5 minutes and benefit from our continuously improving platform without disruption. With public pay-per-use pricing, you can start building with confidence today.
Compliance built in
Audited, certified and attested.
We hold the certifications and build each country's rules into your flows, so you can launch anywhere without worrying. Security and Compliance center
- Regulation encoded into your flows
Tell us what you do and where. Didit lists the rules that apply to you, with sources, and builds the checks each country needs into one workflow.
- Ready for AMLR
Every requirement of the new EU anti-money laundering rules, from checking customers to human review, is already covered by a Didit check.
- Tested in Spain's Treasury sandbox
Spain's Treasury published its supervised sandbox report on Didit's NFC plus active liveness onboarding; SEPBLAC took part and valued the added measures positively.
- Audited, not self-declared
iBeta Level 1 and Level 2. Liveness tested under ISO/IEC 30107-3.
Your obligations · 3 regions
SOC 2 Type 2
ISO 27001
iBeta Level 1 and Level 2
EU regulator attestation
FSM youth protection
GDPR
EBA remote onboarding
MiCA compatible
FIDO Alliance member
- AMLREU AML Regulation ready
Integration · Didit MCP
Run Didit from your own AI agent
Connect Didit to Claude, Cursor, VS Code or ChatGPT and just ask in plain words. Your agent can do anything you can do in the console, with the same permissions you have.
- Build workflowsDescribe the checks you need. The agent creates and publishes the flow.
- Run investigationsAsk why a session was declined, review cases, search people and companies.
- Change rulesCreate payment rules, test them on past data and switch them on.
- Pull reportsAsk for numbers, exports or the audit log.
Didit Academy


