Skip to main content

Mastering API Versioning for Seamless KYC Integration

Implementing backward-compatible API versioning is crucial for maintaining stable and evolving KYC services. This guide explores strategies like URL path, custom headers, and query parameters, emphasizing the importance of clear.

Mastering API Versioning for Seamless KYC Integration

Contents

In this guide

Jump to the part you need.

Strategic Versioning MethodsChoose between URL path, custom headers, or query parameters for API versioning to best suit your project's needs and maintain clarity for developers, ensuring smooth transitions and minimal disruption.

Clear Deprecation PoliciesCommunicate deprecation timelines and provide ample notice for older API versions, guiding users to upgrade and preventing unexpected service interruptions.

Robust Documentation and CommunicationMaintain comprehensive API documentation for all versions and foster open communication channels with integrators to facilitate understanding and adoption of new versions.

Didit's Developer-First ApproachDidit's modular architecture and clean APIs are designed with versioning in mind, making it easy to integrate, manage, and scale your identity verification solutions without breaking existing implementations.

The Imperative of API Versioning in KYC

In the rapidly evolving landscape of identity verification and Know Your Customer (KYC) compliance, API versioning is not merely a best practice—it's a necessity. As regulations shift, new fraud vectors emerge, and technology advances, your KYC endpoints will inevitably require updates. Without a thoughtful versioning strategy, these updates can lead to integration nightmares, downtime, and frustrated partners. Backward compatibility is the cornerstone of a successful API, ensuring that existing integrations continue to function while new features and improvements are rolled out.

For services relying on critical identity checks, such as Didit's ID Verification, Passive & Active Liveness, and AML Screening & Monitoring, maintaining API stability is paramount. Clients integrate these services into their core workflows, and any breaking change can have significant operational and financial repercussions. An effective versioning strategy allows you to introduce enhancements, optimize performance, and adapt to new compliance requirements without forcing all consumers to immediately re-architect their systems. It fosters trust and reliability, crucial for any identity platform.

Choosing Your Versioning Strategy: URL Path, Headers, or Query Parameters?

When it comes to implementing API versioning, there are several common approaches, each with its own advantages and disadvantages. The choice often depends on your API's design philosophy, ease of use for developers, and the complexity of your ecosystem.

1. URL Path Versioning (e.g., /v1/resource)

This is arguably the most straightforward and widely adopted method. The API version is embedded directly into the URL path. For example, /v1/session/ for an older version and /v2/session/ for a newer one. This method is intuitive, easily understood, and supported by all HTTP clients. It makes it clear which version of the API is being accessed and can be easily routed by load balancers and proxies.

Pros: Highly visible, easy to cache, simple to implement and understand.

Cons: Can lead to 'URL pollution' if many versions exist, requires changes to client code for every upgrade.

Didit, for instance, uses URL path versioning for its endpoints, as seen with /v2/session/ and /v3/email/check/, providing clear distinctions for developers. This approach is particularly effective for core services like Phone & Email Verification, allowing for iterative improvements without disrupting older integrations.

2. Custom Header Versioning (e.g., X-Api-Version: 1)

With this method, the API version is specified in a custom HTTP header. Clients include this header with their requests to indicate which API version they wish to use. This keeps the URL clean and allows for more flexible version negotiation.

Pros: Clean URLs, allows for default version if header is omitted, easier to manage multiple versions by changing only the header.

Cons: Less discoverable than URL path, requires clients to explicitly set headers, can be overlooked if not well-documented.

3. Query Parameter Versioning (e.g., /resource?version=1)

Similar to custom header versioning, this method appends the version as a query parameter to the URL. While simple to implement, it's generally less preferred for primary versioning due to potential caching issues and less clean URLs than header-based approaches.

Pros: Easy to implement, visible in URL (similar to path versioning).

Cons: Can interfere with caching, less semantically clean for major version changes.

Regardless of the chosen method, consistency is key. Document your versioning strategy thoroughly and adhere to it strictly. For complex identity verification workflows, like those involving NFC Verification for ePassports or Age Estimation for age-restricted services, a clear versioning strategy ensures that every update improves the service without creating integration hurdles.

Managing Deprecation and End-of-Life Policies

Backward compatibility doesn't mean supporting every version indefinitely. A crucial part of API versioning is establishing clear deprecation and end-of-life (EOL) policies. When you introduce a new major version (e.g., v2 replacing v1), you should announce a deprecation period for the older version. This period gives your integrators ample time to migrate to the new API.

Key elements of a robust deprecation policy:

  • Advance Notice: Provide significant lead time (e.g., 6-12 months) before an old version is fully decommissioned.
  • Clear Communication: Announce deprecations through multiple channels: developer changelogs, email notifications, and API documentation.
  • Migration Guides: Offer detailed guides on how to migrate from the old version to the new, highlighting breaking changes and new features.
  • Support During Transition: Be available to answer questions and assist developers during the migration period.
  • Rate Limiting: Consider applying stricter rate limiting to deprecated endpoints to discourage continued use, while clearly communicating the limits via headers like X-RateLimit-Limit, X-RateLimit-Remaining, and Retry-After.

Didit understands the importance of managing API stability. Our documentation clearly outlines how to interact with our API versions, including details on rate limiting for various endpoints like session-v2-create and session-decision, ensuring developers can build resilient applications. This transparency helps partners plan their integrations and upgrades effectively, particularly for features such as 1:1 Face Match & Face Search, where reliability is critical.

Documentation, Communication, and Data Retention Considerations

Comprehensive and up-to-date documentation is your best friend when it comes to API versioning. Each API version should have its own dedicated documentation, clearly outlining its capabilities, endpoints, and any differences from previous versions. An API changelog that details all modifications, new features, and deprecations is also invaluable.

Beyond documentation, proactive communication with your integrators is essential. Set up channels for announcements, provide forums for questions, and gather feedback on new API versions. This collaborative approach ensures a smoother transition for everyone.

Finally, consider data retention policies in the context of API versions. As new versions might handle data differently or require new data points, ensure your data storage and processing mechanisms are flexible. Didit, for example, allows users to configure data retention policies from 1 month to 10 years, or unlimited, within the Business Console. This gives you control over how long verification inputs and outputs are stored, aligning with GDPR and other data protection regimes, and ensuring compliance even as your API evolves.

How Didit Helps

Didit is engineered from the ground up to be an AI-native, developer-first identity platform, making API versioning and integration seamless. Our modular architecture means you can plug-and-play identity checks, and our clean APIs are designed with future-proofing in mind. We provide an instant sandbox and comprehensive public documentation to help developers onboard quickly and understand our API structure, including versioning conventions. With Didit, you benefit from:

  • Pay per use: Start verifying identities without upfront costs, allowing you to test and iterate on your integrations.
  • Modular Architecture: Easily integrate specific components like ID Verification, Passive & Active Liveness, or AML Screening, knowing that each module is designed for independent evolution and clear version management.
  • AI-Native Design: Our solutions are built with AI at their core, meaning continuous improvements and new features are integrated efficiently, often without breaking changes to existing API versions.
  • No Setup Fees: Get started immediately and focus on building, not on complex setup processes or hidden costs.
  • Reusable KYC: Didit offers mechanisms like 'Share KYC via API' for secure data sharing between trusted partners, reducing redundant verification steps and improving user experience, all while managing data consistency across versions.

Didit simplifies the complexity of identity verification, allowing you to focus on your core business while we handle the intricacies of robust, scalable, and version-managed identity solutions.

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.