Skip to main content

API Versioning for Identity Verification Microservices

Effective API versioning is crucial for maintaining stability and enabling innovation in identity verification microservices. This post explores common strategies, best practices, and how Didit's modular, developer-first.

API Versioning for Identity Verification Microservices

Contents

In this guide

Jump to the part you need.

Strategic ImportanceProper API versioning is not merely a technical detail; it's a strategic imperative for identity verification microservices, ensuring backward compatibility, developer satisfaction, and the ability to innovate without breaking existing integrations.

Common StrategiesURI, Custom Header, and Query Parameter versioning each offer distinct advantages and disadvantages. Choosing the right strategy depends on your project's specific needs, maintainability goals, and developer experience priorities.

Best PracticesAdopting best practices like clear documentation, deprecation policies, and robust testing frameworks is essential for a smooth API evolution process and minimizing client-side impact.

Didit's AdvantageDidit's AI-native, modular platform inherently supports flexible API evolution, offering clean APIs and a no-code Business Console that abstracts away complexity, allowing businesses to focus on orchestration rather than versioning headaches.

The Criticality of API Versioning in Identity Verification

In the rapidly evolving landscape of digital identity, microservices have become the backbone of scalable and resilient identity verification solutions. However, the very agility that microservices offer can introduce challenges, particularly when it comes to API evolution. As features are added, security protocols updated, or regulations change, your identity verification APIs will need to evolve. Without a robust API versioning strategy, these changes can lead to breaking client applications, frustrated developers, and significant operational overhead.

For identity verification microservices, where reliability and trust are paramount, a well-defined versioning strategy is not just good practice—it's a necessity. It allows you to introduce new capabilities, such as advanced Didit's ID Verification features or enhanced Didit's Passive & Active Liveness checks, without disrupting existing integrations. This balance between innovation and stability is what keeps businesses competitive and compliant.

Exploring Common API Versioning Strategies

Several established strategies exist for API versioning, each with its own trade-offs. Understanding them is the first step towards choosing the right approach for your identity verification microservices.

1. URI Versioning (Path Versioning)

This is arguably the most common and straightforward approach, where the API version is included directly in the URL path. For example, /v1/users or /v2/verify.

  • Pros: Highly visible, easy to understand, and cacheable. It's clear which version a client is interacting with.
  • Cons: Can lead to 'API sprawl' with multiple URLs for similar resources. Requires changes to the URL for every version update, which can be cumbersome.
  • Best for: Simplicity and discoverability, especially for public APIs where clarity is paramount.

2. Custom Header Versioning

With this method, the API version is specified in a custom HTTP header, such as X-API-Version: 1 or Accept-Version: 2.

  • Pros: Keeps URIs clean and resource-focused. Allows clients to specify their preferred version without changing the URL.
  • Cons: Less discoverable than URI versioning as the version isn't immediately visible in the URL. Requires clients to understand and send specific headers.
  • Best for: Internal APIs or scenarios where URIs need to remain stable across versions, and clients are expected to handle custom headers.

3. Query Parameter Versioning

Here, the API version is passed as a query parameter, e.g., /users?version=1 or /verify?api-version=2.

  • Pros: Easy to implement and flexible. URIs remain clean.
  • Cons: Can conflict with other query parameters. Some argue it's semantically less appropriate for versioning, which is a property of the whole API, not just a specific query.
  • Best for: Quick iterations or less formal APIs, though generally less favored for robust, long-term solutions.

4. Media Type Versioning (Content Negotiation)

This approach leverages the Accept header, where clients specify the desired media type, which includes the version. For example, Accept: application/vnd.didit.v1+json.

  • Pros: Aligns well with REST principles, as the client explicitly requests a representation of the resource.
  • Cons: More complex to implement and less intuitive for many developers. Can be challenging to debug.
  • Best for: Highly RESTful APIs where strict adherence to standards and content negotiation are priorities.

Best Practices for Managing API Evolution

Regardless of the strategy you choose, certain best practices can significantly ease the burden of API versioning for identity verification microservices:

  1. Document Everything: Clear, up-to-date API documentation is non-negotiable. Developers need to know what versions are available, what's changed, and how to migrate. Didit provides comprehensive, public documentation for all its clean APIs, making integration seamless.
  2. Deprecation Policy: Establish a clear deprecation policy. Communicate well in advance when older versions will no longer be supported, providing ample time for clients to migrate.
  3. Backward Compatibility: Strive for backward compatibility whenever possible. Minor changes (e.g., adding a new optional field) shouldn't necessitate a new major version.
  4. Semantic Versioning: Apply semantic versioning (MAJOR.MINOR.PATCH) to your APIs. This provides a clear signal to consumers about the nature of changes.
  5. Automated Testing: Implement robust automated tests for all API versions to catch breaking changes early and ensure stability.
  6. Developer Portal: Provide a developer portal with SDKs, code examples, and migration guides to support your integrators.

For critical services like Didit's AML Screening & Monitoring or Didit's NFC Verification, the impact of breaking changes can be severe, affecting compliance and security. Therefore, a meticulous approach to versioning is essential.

How Didit Helps

Didit, as an AI-native, developer-first identity platform, is built with API evolution in mind. Our modular architecture and clean APIs are designed to simplify integration and future-proof your identity verification processes, abstracting away much of the complexity associated with API versioning.

  • Open, Modular Identity: Didit offers composable identity primitives that can be plugged in and out, allowing for flexible updates and new feature introductions without forcing a complete overhaul of your integration. This modularity inherently supports graceful API evolution.
  • Developer-First Approach: With an instant sandbox and public documentation, Didit empowers developers to easily test new versions and migrate existing integrations. Our APIs are designed for clarity and ease of use, reducing the learning curve and potential for errors during version transitions.
  • Orchestrated Workflows: Didit's no-code engine for KYC allows you to define and update verification workflows without touching API code. This means you can adjust the sequence of checks—whether it's adding Didit's Proof of Address or enhancing Didit's 1:1 Face Match—and deploy changes without impacting the underlying API versions your clients consume.
  • Core KYC: Didit's commitment to providing Core KYC with pay-per-use pricing means you can experiment with different versions and features without upfront cost, allowing for iterative development and robust testing of your versioning strategies.

By leveraging Didit, businesses can focus on orchestrating risk and automating trust, knowing that the underlying API infrastructure is designed for stability and continuous innovation, minimizing versioning headaches.

Ready to Get Started?

Ready to see Didit in action? Get a free demo today.

Start verifying identities for free with Didit's free tier.

Try it

Try this in the sandbox

Run the check this guide describes, free.

ID Verification

The product this post is about, taken from its topic. Run it free in the sandbox.

$0.15 per checkStart free

Author

Alejandro Rosas

Co-founder and CTO

Alejandro Rosas

Alejandro Rosas

Co-founder and CTO

About Didit

Questions

Blog questions

Who writes the Didit blog?
The Didit team. Guides reviewed by Alberto Rosas, co-founder and CEO, carry his byline. The rest are published as Didit.
Which topics does the blog cover?
Eight topics: ID verification, business verification (KYB), AML, sanctions and compliance, fraud prevention, transaction monitoring and crypto, country guides, agents and developers, and product updates.
Is the blog available in my language?
Yes, in 15 languages: English, Spanish, French, German, Brazilian and European Portuguese, Catalan, Russian, Arabic, Chinese, Japanese, Hindi, Indonesian, Korean and Swahili. Not every post is translated, so each language shows the posts it has.
Where do I find product updates?
In the changelog at /changelog/ and under the Product updates topic.
Are these posts legal advice?
No. Regulation posts explain rules; your legal team decides how they apply.
How do I find posts on one topic?
Open one of the eight topics, or search the blog.
Are posts dated?
Yes. Every post shows when it was published and when it was last updated.
Do posts link to the docs?
Developer posts link to the matching page on docs.didit.me and to the API reference.
Is the blog the same as the docs?
No. The blog explains rules, markets and product changes for a general reader, while docs.didit.me holds the integration guides and the API reference. Developer posts link the matching docs page and the API reference they describe.

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.

Compliance assistant

Your obligations · 3 regions

EU · AMLRCustomer due diligence, human reviewCovered
Illinois, Texas, ColoradoExplicit biometric consentCovered
Germany · Youth protectionVerified adults only (JMStV)Covered
Workflow checked. Every obligation is met
  • 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.

Add to ClaudeChatGPT
Didit Academy · Lesson 04 · Use Didit with MCP
  • 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.

Verify your first user today.

Start free

Free sandbox. Credit applies to work-email sign-ups.