Skip to main content

Coding agents

Integrate Didit with one prompt

Paste one prompt into your coding agent. It writes the backend route, the SDK call and the webhook handler for identity verification, transaction monitoring and sign-in.

Read the docs
Paste intoClaude CodeCodexCursorDevinWindsurfGitHub Copilot

How to use

Four steps

Copy, fill in, choose a reference, review.

1

Copy and paste

Copy the prompt and paste it into your coding agent.

2

Fill in your details

Your stack, your platform and the Didit products you want.

3

Choose one person reference

Use your own user ID. Didit calls it vendor_data and returns it with every result. Your server sets it, never the browser.

4

Review and test

Read the code and run the sandbox tests before you switch it on.

What it builds

What your agent ships

The prompt walks your agent through 14 steps, from inspecting your code to a go-live check.

  1. 1
    Create an account

    Only if you need one. Two API calls return your keys.

    POST/auth/v2/programmatic/register/
  2. 2
    Choose the approach

    The hosted flow with an SDK, or the standalone API.

    PICKSessions API + SDK
  3. 3
    Create a workflow

    The set of checks a session runs. Or reuse one you have.

    POST/v3/workflows/
  4. 4
    Install the SDK

    The package that matches your stack.

    SDK@didit-protocol/sdk-web
  5. 5
    Create a session

    Your server creates it. Your app shows it to the user.

    POST/v3/session/
  6. 6
    Set up the webhook

    Check the signature, then read the decision.

    POST/v3/webhook/destinations/
  7. 7
    Apply the decision

    Save the status on your own user record.

    EVENTstatus.updated
  8. Go live

    Switch to the live key once the sandbox tests pass.

    ENVDIDIT_API_KEY

Steps 2 to 7 are the identity verification part. The prompt skips them when you do not select that product. An SDK is a ready-made library for your platform. A webhook is a message Didit sends to your server when a result is ready.

Products

One prompt, three products

Pick any combination. The prompt builds only what you select.

One person, one vendor_data. The same reference links a person across the three products. Each product works alone and keeps its own credentials and decisions. A successful sign-in does not mean an identity check passed.

Credentials

Which key goes where

The prompt keeps five credentials apart. Only one of them is a secret API key.

CredentialWhat it isWhere it lives
x-api-key
The API key for verification and monitoring calls.
Your server only. Never in a browser or an app.
X-Transaction-Token
A short-lived transaction credential scoped to one vendor_data. The API returns it as sdk_token.
Your server mints it. The app uses it.
X-Monitoring-Token
A short-lived event credential scoped to one vendor_data. The API returns it as monitoring_token.
Your server mints it. The app uses it.
End-user Bearer token
The signed-in session of the Authentication product. It is not a console token or an API key.
The app sends it. Your server verifies it.
Publishable key
Identifies your application for the Authentication SDKs. It never grants server access.
Safe in the app.

Scoped means the token works for one person only. Keep webhook secrets on your server too.

Questions

Questions about the prompt

What does the Didit integration prompt do?
It is one prompt your coding agent follows to integrate Didit. It covers identity verification, transaction monitoring and sign-in, in any combination.
Which coding agents can use it?
Any coding agent. The docs name Claude Code, Codex, Cursor, Devin, Windsurf and GitHub Copilot.
What is vendor_data?
It is your own user ID. You send it when you create a session, and Didit returns it with every result. The same value links one person across the three products.
Does the agent need my API key?
It reads the key from the DIDIT_API_KEY environment variable on your server. The key never goes in the code, in a browser or in an app.
Can my agent create the Didit account too?
Yes, when you ask for it. The registration step uses two API calls and no browser. It returns a live API key and a sandbox API key.
How do I tell the prompt which products to build?
Fill in the application-context block of the Didit integration prompt with your stack, your platform, the products you want and your existing application configuration. The agent implements only the paths for the products you select: identity verification, transaction monitoring, authentication or any combination of them.
Which SDK does the agent install for identity verification?
On the web it uses @didit-protocol/sdk-web, and on mobile it uses the Didit native and wrapper SDKs. In both cases your server creates the verification session and your app receives only that session's scoped URL or token, never the API key.
Is Authentication ready to integrate with the prompt?
Authentication is new. Its hosted flow, ES256 JWT issuer, events and bot protection are documented, and its SDKs are published for JavaScript, React, Next.js, iOS, Android, Flutter and React Native. The prompt tells the agent to check the platform quickstart, keep adapters for unavailable packages disabled and never claim that an unavailable integration passed.
Does a successful sign-in mean the user passed verification?
No. A successful login does not mean an identity check passed or a payment can proceed. The prompt keeps the statuses of each product separate, so sign-in, verification and transaction decisions are made on their own, even when all three share the same vendor_data for the person.
Can my app trust the redirect or the success screen?
No. The prompt tells the agent never to treat a redirect, an SDK callback or a rendered success screen as server authorization. Your backend verifies the webhook signature before applying an update, deduplicates deliveries by event_id and acts on the decision it received, not on what the browser or app reports.
Does an account my agent creates get the free monthly credit?
No. An organization created through the registration API starts with an empty balance and does not get the monthly free credit. The agent builds and tests with the sandbox key, which is mocked and never billed. Going live needs credit, and the agent never pays: it gives the person a console link that opens the top-up dialog.
How long is the registration code valid?
The 6-character code Didit emails during programmatic registration expires 10 minutes after it is sent. If it lapses, call the register endpoint again with the same email and password to get a fresh code. Use a real inbox: reserved test domains such as example.com are refused with the code email_undeliverable.
What should I check before turning the integration on?
Review the implementation the agent generated and its test results before enabling it for customers. The prompt also requires the agent to report any unavailable dependency and any live flow it could not verify, so you know exactly what was tested in the sandbox and what still needs a check.

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.

  • Trusted by EU regulators

    After a year of supervised testing, EU financial regulators confirmed that verifying with Didit is safer than checking an ID in person.

  • 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.

Start

Copy the prompt

Paste it into your coding agent, fill in your stack and review what it builds.

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