Skip to main content

Securing Identity Verification: API Rate Limits and Throttling

Implementing robust API rate limits and throttling is crucial for protecting identity verification endpoints from abuse, ensuring system stability, and maintaining service quality.

Securing Identity Verification: API Rate Limits and Throttling

Contents

In this guide

Jump to the part you need.

Protect Against AbuseRate limiting and throttling are essential defenses against Denial-of-Service (DoS) attacks, brute-force attempts, and credential stuffing on sensitive identity verification APIs.

Ensure System StabilityBy controlling the volume of requests, these mechanisms prevent API overload, ensuring consistent performance and resource availability for legitimate users.

Maintain Data IntegrityPreventing excessive requests helps safeguard the integrity of identity data and the accuracy of verification processes, such as those involving ID Verification and Liveness Checks.

Didit's Multi-Layered DefenseDidit implements comprehensive global and endpoint-specific rate limits, along with clear X-RateLimit headers and client guidance, to secure its identity platform effectively.

The Critical Role of Rate Limiting in Identity Verification

In today's digital landscape, identity verification is paramount for trust and security. Businesses rely on APIs to perform critical checks like ID Verification, Liveness Detection, and AML Screening. However, these powerful endpoints are also prime targets for malicious actors. Without proper safeguards, they can be exploited for data theft, fraud, or simply to disrupt services through Denial-of-Service (DoS) attacks. This is where API rate limiting and throttling become indispensable.

Rate limiting is a strategy to control the number of requests a client can make to an API within a given timeframe. Throttling, a related concept, involves dynamically adjusting the rate of requests based on system capacity or predefined limits. Together, they form a crucial line of defense, ensuring that your identity verification infrastructure remains stable, secure, and available for legitimate users. Imagine a scenario where an attacker attempts to brute-force millions of identity checks using stolen credentials; without rate limits, this could quickly overwhelm your systems, leading to service outages and potential data breaches. Didit, with its AI-native identity platform, understands these challenges deeply and bakes multi-layered rate limiting directly into its architecture.

Understanding Global vs. Endpoint-Specific Limits

Effective rate limiting requires a nuanced approach, distinguishing between general API usage and high-impact operations. A one-size-fits-all limit can either be too restrictive for common operations or too lenient for resource-intensive ones. Therefore, a robust system employs both global and endpoint-specific limits.

Global Limits

Global limits apply across broad categories of API requests. For instance, Didit implements global limits of 300 requests per minute per application for all GET endpoints and another 300 requests per minute for all write/delete endpoints (POST, PATCH, DELETE). These generic ceilings provide a fundamental layer of protection, acting as a guardrail for overall API consumption. They are designed to prevent widespread abuse without unduly impacting normal operational flows.

Endpoint-Specific Limits

Beyond global limits, certain API operations are inherently more resource-intensive or sensitive, warranting stricter controls. Didit's platform defines additional, more restrictive scopes for such high-impact operations. For example:

  • session-v2-create (POST /v2/session/): This endpoint, crucial for initiating identity verification workflows, has a dedicated limit of 600 requests per minute. This ensures that while session creation is frequent, it doesn't overwhelm the workflow orchestration engine.
  • session-decision (GET /v2/session/<id>/decision/): Retrieving session decisions is throttled to 100 requests per minute. This prevents excessive polling that could strain database resources, particularly important for real-time results from processes like ID Verification and AML Screening.
  • session-generate-pdf (GET /session/<id>/generate-pdf/): PDF generation is a CPU-bound operation, and thus limited to 100 requests per minute to manage computational costs and ensure responsiveness.

This tiered approach allows for fine-grained control, optimizing performance and security across the entire identity verification lifecycle.

Client-Side Best Practices for Handling Rate Limits

While API providers implement robust rate limiting, clients also play a crucial role in respecting these limits and building resilient applications. When an API returns a 429 Too Many Requests response, it's not a failure but an indication to adjust your request pattern. Didit's API, for instance, includes critical headers in 429 responses to guide clients:

  • X-RateLimit-Limit: The maximum number of requests allowed in the current window.
  • X-RateLimit-Remaining: The number of requests remaining in the current window.
  • X-RateLimit-Reset: The time (in epoch seconds) when the current rate limit window resets.
  • Retry-After: Specifies how long to wait before making a new request.

To build a robust integration, clients should:

  1. Monitor Rate Limit Headers: Actively watch X-RateLimit-Remaining and begin throttling requests when it drops below a certain threshold (e.g., 15% of X-RateLimit-Limit).
  2. Implement Exponential Backoff: For 429 responses, do not immediately retry. Instead, implement an exponential backoff strategy, increasing the delay between retries (e.g., 5s → 10s → 20s → 40s). This prevents overwhelming the API further and allows it to recover.
  3. Log and Alert: Log instances of 429 responses and triggered retries. This helps identify sustained bursts or potential issues in your application's request patterns, allowing your team to investigate and optimize.

Adhering to these practices ensures your application integrates smoothly and reliably with identity verification services, even under varying load conditions.

How Didit Helps Secure Your Identity Workflows

Didit provides a comprehensive, AI-native identity platform designed from the ground up with security and scalability in mind. Our multi-layered rate limiting is just one example of how we protect your operations and sensitive user data. With Didit, you benefit from:

  • Robust API Protection: Our global and endpoint-specific rate limits safeguard against abuse, ensuring stability for critical services like ID Verification, Passive & Active Liveness, 1:1 Face Match, and AML Screening & Monitoring.
  • Orchestrated Workflows: Our no-code Business Console allows you to design complex verification journeys, and our backend intelligently manages the underlying API calls, respecting all limits. For example, when generating Verification Links or Unilinks, the system handles session creation and subsequent checks efficiently.
  • Developer-First Approach: Didit offers clean APIs and comprehensive documentation, including detailed guidance on rate limiting, enabling developers to build resilient integrations from day one. Our modular architecture means you can plug-and-play identity checks without worrying about the underlying infrastructure.
  • Scalability and Reliability: By proactively managing API traffic, Didit ensures high availability and performance, even during peak loads. Our AI-native platform is built to scale globally, handling millions of verifications without compromising on security or speed.

Didit's commitment to security extends beyond rate limiting, encompassing features like Core KYC, no setup fees, and a pay-per-successful-check model, making robust identity verification accessible and efficient for businesses of all sizes.

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.