Skip to main content

Build Dynamic Verification Pipelines with Didit's Workflow API in Python

Discover how Didit's Workflow API empowers developers to create flexible, multi-step identity verification pipelines using Python. Leverage our no-code builder and comprehensive APIs to design KYC, age verification, and AML.

Build Dynamic Verification Pipelines with Didit's Workflow API in Python

Contents

In this guide

Jump to the part you need.

Orchestrated WorkflowsDidit's platform provides a powerful no-code visual builder for designing complex, multi-step identity verification journeys, giving businesses full control over their onboarding logic.

Two Modes for FlexibilityWhether you need quick deployment with template-based 'Simple Mode' or granular control with 'Complex Mode,' Didit offers the right approach for every development need.

Seamless Python IntegrationGenerate secure verification links and manage sessions programmatically using Python, allowing for dynamic, automated identity verification within your existing applications.

Didit's AI-Native AdvantageLeverage Didit's AI-native, modular architecture, and Core KYC to build robust, scalable, and compliant identity solutions without setup fees, ensuring global reach and superior fraud prevention.

In today's digital-first world, robust identity verification is no longer a luxury but a necessity. Businesses across all sectors, from fintech to online gaming, need to onboard users quickly and securely while complying with evolving regulations like KYC (Know Your Customer) and AML (Anti-Money Laundering). Traditional verification methods can be rigid, slow, and require significant development effort. This is where Didit's Workflow API, especially when integrated with Python, revolutionizes the process, allowing for the creation of dynamic, intelligent, and highly customizable verification pipelines.

The Power of Orchestrated Workflows

Didit's core philosophy revolves around providing an open, modular identity layer. A cornerstone of this approach is our Orchestrated Workflows. These aren't just simple checks; they are comprehensive, multi-step identity verification journeys designed to handle everything from basic ID verification to complex compliance scenarios. Imagine a scenario where a user signs up for your service. Depending on their risk profile, location, or the service they wish to access, you might need different verification steps:

  • ID Verification (OCR, MRZ, barcodes) to confirm their identity document.
  • Passive & Active Liveness to ensure the user is a real, present human and not a deepfake.
  • 1:1 Face Match to compare their live selfie with their ID document photo.
  • AML Screening & Monitoring to check against watchlists for financial crime.
  • Proof of Address to confirm residency.
  • Age Estimation for age-restricted services.

Didit's no-code visual builder in the Business Console allows you to graphically design these intricate flows, defining conditional logic, fallback steps, and decision points. This means you can design a workflow once and deploy it across various user segments or product lines, all managed centrally.

Building Your Workflow: Simple or Complex

Didit understands that not all verification needs are created equal. That's why our workflow builder offers two distinct approaches:

  1. Simple Mode: Template-Based Builder: For rapid deployment and common use cases, Simple Mode lets you select from pre-built templates. You can quickly toggle features like ID Verification, Liveness, and Face Match on or off, getting a robust verification flow up and running in minutes. This is ideal for businesses needing to launch quickly with minimal configuration.
  2. Complex Mode: Granular Control: When your needs are more nuanced, Complex Mode provides a drag-and-drop interface to build workflows from individual identity primitives. You can define intricate sequences, add custom logic nodes, integrate third-party checks, and create highly tailored user journeys. This level of control is invaluable for meeting specific regulatory requirements or optimizing for unique user experiences.

Both modes leverage Didit's powerful underlying AI-native technology, ensuring accuracy and fraud prevention at every step. The beauty is that whether simple or complex, Didit handles the entire user-facing experience, state management, and conditional steps, freeing your development team to focus on your core product.

Once your workflow is configured in the Didit Business Console, the next step is to integrate it into your application. Didit's Verification Links offer a seamless way to trigger these workflows programmatically. A Verification Link is a unique, secure URL that directs your end-user to a verification flow hosted entirely by Didit. This means zero frontend development for you.

Using Python, you can dynamically generate these links for individual users or sessions. Here's how it works:

  1. Configure Your Workflow: In the Didit Business Console, design your multi-step workflow (e.g., ID Document Scan → Liveness Check → AML Screening). Each workflow will have a unique workflow_id.
  2. Generate a Verification Link via API (Python): Instead of manually creating links, your Python application can make a simple API call to Didit's /v3/session/ endpoint. You'll pass your API key, the relevant workflow_id, and optionally vendor_data (like your internal user ID) for tracking, and a callback URL to receive real-time updates.
import requests
import json

API_KEY = "YOUR_DIDIT_API_KEY"
WORKFLOW_ID = "your_configured_workflow_id"
YOUR_INTERNAL_USER_ID = "user_12345"
YOUR_WEBHOOK_URL = "https://yourapp.com/didit/webhook/handler"

headers = {
    "x-api-key": API_KEY,
    "Content-Type": "application/json"
}

data = {
    "workflow_id": WORKFLOW_ID,
    "vendor_data": YOUR_INTERNAL_USER_ID,
    "callback": YOUR_WEBHOOK_URL
}

response = requests.post(
    "https://verification.didit.me/v3/session/",
    headers=headers,
    data=json.dumps(data)
)

if response.status_code == 200:
    session_data = response.json()
    verification_url = session_data["url"]
    session_id = session_data["session_id"]
    print(f"Generated Verification URL: {verification_url}")
    print(f"Session ID: {session_id}")
    # Now, send this URL to your user via email, SMS, or in-app message
else:
    print(f"Error generating verification link: {response.status_code} - {response.text}")
  1. Share the Link: Your Python application then sends the generated verification_url to your user via email, SMS, or embeds it directly in your application's UI.
  2. Get Real-Time Results: As the user progresses through the verification flow, Didit sends automated updates to your configured webhook URL, allowing your Python backend to process results and update user statuses in real-time.

This low-code integration path provides maximum flexibility and automation. You can adapt verification steps based on user attributes, transaction values, or any other business logic, all orchestrated by your Python application interacting with Didit's powerful backend.

How Didit Helps

Didit is an AI-native, developer-first identity platform designed to simplify and automate identity verification. Our modular architecture allows you to compose verification checks like building blocks, creating tailored solutions for any use case. For dynamic verification pipelines, Didit offers unparalleled advantages:

  • Orchestrated Workflows: Our no-code visual builder empowers you to design complex, multi-step verification journeys, including ID Verification (OCR, MRZ, barcodes), Passive & Active Liveness, 1:1 Face Match, AML Screening & Monitoring, Proof of Address, and privacy-preserving Age Estimation.
  • Developer-First API: With clean APIs and an instant sandbox, integrating Didit into your Python application is straightforward and well-documented. Our Verification Links eliminate the need for frontend development, drastically speeding up time to market.
  • AI-Native Accuracy: Didit's AI-driven platform ensures high accuracy in data extraction and fraud detection, reducing manual review and improving conversion rates.
  • Global by Design: Support for 130+ languages, 14,000+ document types, and 220+ countries and territories means your dynamic pipelines can scale globally.
  • Cost-Effective: Didit offers Core KYC and a pay-per-successful check model, with no setup fees, making it an economically sound choice 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.