Skip to main content

Technical

MitID integration: how businesses accept Denmark's eID

MitID integration adds a Danish national eID wallet to your sign-up. Didit runs the wallet method for Denmark at $0.25 per completed verification and returns signed identity attributes at the cryptographic assurance tier.

MitID integration: how businesses accept Denmark's eID

Contents

In this guide

Jump to the part you need.

MitID integration lets a Danish customer sign in to your product with Denmark's national eID, and Didit records the result as signed identity attributes at the cryptographic assurance tier. It fits banks, insurers, fintechs and any business that onboards Danish residents. On Didit, MitID personal costs $0.25 per completed verification. The main caveat is eligibility: not every user can complete a wallet sign-in, so keep a document route configured.

Prices checked against the live Didit price feed on November 26, 2026.

MitID integration at a glance
ItemDetail
OutcomeA Danish user completes a wallet sign-in and the session records signed identity attributes at the cryptographic tier.
Recommended methodDidit hosted flow with the Denmark wallet method enabled for mitid, plus a document fallback.
Who it fitsBanks, insurers, fintechs and any business that onboards Danish residents.
Price on DiditMitID personal at $0.25 per completed verification. A document fallback is a separate check: $0.15 for document verification, or $0.33 when the fallback workflow also runs passive liveness, face match and device and IP analysis.
Main caveatAvailability is specific to your environment, and not every user can complete a wallet sign-in, so keep a document fallback configured.
Data returnedSigned identity attributes from the wallet. The exact set depends on the wallet and on what the user consents to share.
Assurance tiercryptographic: an identity provider authenticated the person and signed the attributes it returned.

Start free in the sandbox at business.didit.me with no sales call. The wallet method is documented on the Digital ID wallet verification page, prices and plan discounts are on Didit pricing, and developers can connect Didit to an AI assistant through the MCP server.

What MitID integration gives you

MitID is a Danish national eID wallet. On Didit it is one of three ID Verification methods: the user signs in with a digital identity they already hold, and that provider shares a signed set of attributes with Didit. No document photograph is needed for the wallet check, and depending on the wallet the user may enter a personal identification code or a phone number.

The result carries the cryptographic assurance tier. An identity provider authenticated the person and signed the attributes it returned. That is all the tier claims. It is not a ranking against document capture or a data match, because the tiers describe different evidence rather than more or less of the same thing. How long a sign-in takes is the wallet's own flow, which Didit neither controls nor promises.

A signature verifies the issuer and the returned claims. It does not guarantee that every attribute you request is present, current or sufficient for your compliance policy. Each business has to assess its own policy and the law that applies to it. Didit runs the checks and records the result; the risk assessment, the level you require and the onboarding decision stay with you.

Didit serves 4,000+ companies, and MitID is available in production at $0.25 per completed verification.

Prerequisites

  • A Didit organization and an API key. The sandbox is free on every plan.
  • A workflow with ID Verification enabled.
  • Denmark in the workflow country list, with the wallet method enabled and mitid as the provider.
  • A callback URL on your allowed domains if you use the hosted flow redirect.
  • A document fallback if your policy needs one, or if you want to serve users who cannot complete a wallet sign-in.
  • A user who holds an identity with the issuer, is eligible for the attributes you request, and consents to sharing them.
  • Your own risk assessment and the assurance level you require for each product.

How to integrate MitID with Didit, step by step

  1. Confirm MitID is enabled in your environment. Availability is specific to your environment: the console checks its environment's live capability catalog when you save a workflow. MitID is available in production at $0.25 per completed verification. A wallet marked Coming soon cannot be enabled, and the save is rejected, including the rest of the configuration in it.

  2. Add Denmark to the ID Verification step and enable the wallet method with mitid as the provider. The documented Denmark block looks like this:

    {
      "feature": "OCR",
      "config": {
        "methods": {
          "DNK": {
            "document": { "enabled": true },
            "wallet": { "enabled": true, "providers": ["mitid"], "on_failure": "fallback_to_document" }
          }
        }
      }
    }

    If you omit the country or the method, that country is document capture only. The wallet block turns MitID on and sends a failed wallet attempt to the document route.

  3. Copy the workflow UUID. You send it as workflow_id when you create a session. The same workflow can hold the wallet method, the document route and any AML step you add.

  4. Create a session with the Sessions API at POST https://verification.didit.me/v3/session/, with your API key in the x-api-key header:

    curl -X POST https://verification.didit.me/v3/session/ \
    -H "x-api-key: YOUR_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{
      "workflow_id": "YOUR_WORKFLOW_ID",
      "vendor_data": "user_12345",
      "callback": "https://app.example.com/kyc/return",
      "language": "da"
    }'

    vendor_data is your stable identifier for the person, recommended because it binds the session to the user and helps with duplicate detection. callback must be on one of your allowed domains, or creation fails with a 400.

  5. Send the user to the session_url returned by the create call. The sign-in experience depends on the wallet: an app handoff, a QR code, or a comparison code confirmed on the user's phone. Didit receives the signed result after the user approves.

    A verification session in the Didit Business Console with its status and warnings
    The session detail shows the status and any warnings after the wallet sign-in.
  6. Read the result. Wait for the status.updated webhook or fetch the decision from GET https://verification.didit.me/v3/session/SESSION_ID/decision/:

    curl https://verification.didit.me/v3/session/SESSION_ID/decision/ \
    -H "x-api-key: YOUR_API_KEY"

    The response has a session_kind field, and you branch on it. For this flow it is user. The status is one of the documented values: Approved, Declined, In Review, In Progress, Not Started, Expired, Abandoned, Resubmitted, Awaiting User, Kyc Expired.

  7. Check the tier and the attribute data. A wallet result carries the cryptographic tier. Which attributes come back depends on the wallet and on the consent the user gave, so read the attribute data per session rather than assuming a fixed field list. The tier appears on the session payload, in the console and in your exports.

  8. Apply your policy and record the reason for any fallback in your own case notes. Approve, decline or send the session to review. If the user could not complete a wallet sign-in and ran the document route, note why.

    The ID document result inside a Didit session
    The document fallback is recorded as its own result in the same session.

Verify the webhook signature

Didit signs every webhook. Read the raw request body before you parse JSON, recompute the HMAC-SHA256 with your destination secret, and reject a stale timestamp. The minimum glue for a Node endpoint looks like this:

app.post("/api/webhooks/didit", express.raw({ type: "application/json" }), (req, res) => {
  const raw = req.body;                          // raw bytes, do not parse JSON first
  const timestamp = Number(req.header("X-Timestamp"));
  const signature = req.header("X-Signature");   // HMAC-SHA256 over the exact raw bytes
  const fresh = Math.abs(Date.now() / 1000 - timestamp) <= 300;
  const expected = crypto.createHmac("sha256", process.env.DIDIT_WEBHOOK_SECRET)
    .update(raw).digest("hex");
  const valid = fresh && crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(signature));
  if (!valid) return res.status(401).end();
  res.status(200).end();
  const event = JSON.parse(raw.toString());
  // event.webhook_type is "status.updated"; event.status is Approved, Declined, In Review and so on
});

X-Signature-V2 is the recommended header: HMAC-SHA256 over the sorted, Unicode-preserved canonical JSON. X-Signature covers the exact raw bytes and works only if your stack does not re-encode the body. During the 24 hours after a destination's secret is rotated, accept a match on the -Previous header as well. If you fall back to the deprecated X-Signature-Simple, re-fetch the decision from GET /v3/session/{session_id}/decision/ instead of trusting the payload, because it authenticates the envelope only. Subscribe explicitly to the events you want, since there is no wildcard in destination.subscribed_events.

Inputs and outputs

The input rows below are the documented create-session fields. The output rows are documented session fields, so the names are stable. The wallet attribute values themselves come from the identity provider and vary by wallet and by consent, so inspect them per session.

Inputs and outputs for a MitID session
DirectionField or resultWhat it means
Inputworkflow_idThe workflow UUID that contains the Denmark wallet method and any fallback.
Inputvendor_dataYour stable user identifier. Recommended for duplicate detection.
InputcallbackWhere the hosted flow redirects the user. Must be on an allowed domain.
InputlanguageISO 639-1 code for the verification UI. Use da for Danish.
Outputsession_idThe session identifier. Use it to fetch the decision.
Outputsession_kindAlways branch on it. KYC sessions return user.
OutputstatusThe session status, for example Approved, Declined, In Review or Abandoned.
Outputid_verificationsThe ID Verification result for the method that produced it. A wallet sign-in carries the cryptographic tier.
OutputWallet attributesSigned attributes returned by the wallet. The set and the values are provider data that may vary session by session.
Outputdecision_traceHow the status was reached: automatic, manual or investigator.

Expected output is a session object with session_id, session_kind set to user, a status, and only the feature arrays that actually ran. Feature arrays are always plural, and a feature that did not run is absent or null, never a placeholder.

Failure cases and recovery

Failure cases and recovery for wallet sessions
CaseWhat you seeRecovery
User cannot start the wallet step or exits itThe wallet step does not completeWith on_failure set to fallback_to_document, the same session continues through document capture. Whether it does, and which steps run after the wallet attempt, depends on the fallback you configured and the steps in your workflow.
User abandons the flowStatus AbandonedCreate a new session if your policy allows it. Do not reuse an abandoned or expired session.
Wallet provider errorThe wallet step failsThe configured fallback runs. If you did not configure one, the session cannot complete through the wallet.
Wallet returns fewer attributes than your policy needsThe signed result lacks an item you requireDo not approve on the wallet alone. Collect the missing item as a separate step or route to document verification.
Session expiredStatus ExpiredCreate a new session. The workflow setting or session_expiration_time controls link lifetime, between 3600 and 2419200 seconds.
Fallback path needs biometricsThe document route adds capture stepsThe fallback is a separate document check and is billed as one.
A user completing the face scan step in the fallback document route
The fallback route adds liveness and face match when a user cannot complete a wallet sign-in.
Paid steps on Didit and who owns the decision
StepPrice or ownerNotes
MitID wallet verification$0.25 per completed verificationBilled only when the check finishes with a result. The price includes the wallet identity check, with no separate national eID transaction fee added.
Document fallback, document verification$0.15 per completed checkDocument capture only, which is what the Denmark block above enables. Add passive liveness $0.10, face match 1:1 $0.05 and device and IP analysis $0.03 as workflow steps, and the fallback becomes the $0.33 full KYC price.
NFC chip reading$0.15 add-onAdd to a document check when you need chip evidence.
AML screening$0.20 per checkOngoing AML monitoring is $0.07 per person a year.
Risk assessment and EDDYour teamDidit does not set your risk appetite or make the onboarding decision.

Didit is SOC 2 Type 2 and ISO/IEC 27001:2022 certified. We run the checks and record the result. We do not decide whether a customer is acceptable: that decision, the enhanced due diligence and the reason for each fallback stay with you.

Worked cost example

Assume 10,000 Danish onboarding attempts in a month and that 7,000 complete a MitID sign-in while 3,000 use the document fallback. Every user gets AML screening. The split is a planning assumption, not a Didit benchmark, and fallback billing depends on the checks that actually run.

  • MitID: 7,000 x $0.25 = $1,750.00
  • Document fallback, document verification only: 3,000 x $0.15 = $450.00
  • AML screening: 10,000 x $0.20 = $2,000.00
  • Total: $1,750.00 + $450.00 + $2,000.00 = $4,200.00
  • Cost per attempt: $4,200.00 / 10,000 = $0.42

If the fallback workflow also runs passive liveness, face match and device and IP analysis, the fallback becomes the full KYC check at $0.33: 3,000 x $0.33 = $990.00, and the total becomes $1,750.00 + $990.00 + $2,000.00 = $4,740.00. If you add NFC chip reading to every fallback, add 3,000 x $0.15 = $450.00. Growth takes 4% off Didit prices and Scale takes 10%, before plan fees and credit. A wallet attempt that never produces a result is not a completed check, and a user who completes MitID pays nothing for a document check.

MitID, BankID Sweden and several wallets in one workflow

If you onboard across the Nordics, enable the Denmark wallet method for MitID and the Sweden wallet method for BankID Sweden in the same ID Verification feature. Didit lists MitID at $0.25 and BankID Sweden at $0.20 per completed verification. Both are wallet methods and both carry the cryptographic assurance tier, and the session records which method produced the result.

The tier describes the evidence, not one country's legal level. Evaluate the issuer signature and the attributes a wallet actually returns against your own policy, and do not treat one scheme's attributes as proof for another country. Wallet availability differs by country and by environment, so check the live capability catalog before you save.

Age checks with a wallet sign-in

If the wallet returns a signed date of birth, you can derive an age result without a document photo. If it does not, or if the user cannot complete the wallet step, run age estimation at $0.10 per check or a document check as the fallback. Your own policy sets the age limit for your product.

Sources

Next step: open the sandbox at business.didit.me, enable the Denmark wallet method for MitID and run a test session. No sales call needed.

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

Alberto Rosas

Co-founder and CEO

Alberto Rosas

Alberto Rosas

Co-founder and CEO

About Didit

Questions

Frequently asked questions

What is MitID integration?

MitID integration adds Denmark's national eID as a sign-in method inside your product. The user signs in with the digital identity they already hold, and Didit receives signed identity attributes at the cryptographic assurance tier. You enable it as the wallet method for Denmark in a Didit workflow.

How much does a MitID check cost on Didit?

MitID personal costs $0.25 per completed verification at list price. The price includes the wallet identity check, and no separate national eID transaction fee is added. A document fallback is a separate check at $0.15 for document verification, or $0.33 when the fallback workflow also runs passive liveness, face match and device and IP analysis. Growth and Scale discount Didit prices by 4% and 10%.

What data does a MitID sign-in return to my business?

Didit returns the signed identity attributes the wallet shares, at the cryptographic tier. The exact set depends on the wallet and on what the user consents to share, and a signature does not guarantee that a specific attribute is present or current. Read the session output for each user rather than assuming a fixed field list.

How do I enable MitID in a Didit workflow?

Add Denmark to the ID Verification feature config, enable the wallet method and set providers to mitid, with on_failure set to fallback_to_document if you want the document route. Confirm the wallet is available in your environment's live capability catalog before you save, because a wallet marked Coming soon is rejected.

What happens if a user cannot use MitID?

The session falls back to document verification when you set on_failure to fallback_to_document. The same session then continues through document capture, and the steps it runs are the ones your workflow configures, so liveness and face match only run if you added them. Without a configured fallback, the session cannot complete through the wallet.

Can we accept MitID and BankID Sweden in one workflow?

Yes. Wallet methods are configured per country, so you enable the Denmark wallet with mitid and the Sweden wallet in the same ID Verification feature. The session records which method produced the result, and each completed verification is billed at its own price: $0.25 for MitID and $0.20 for BankID Sweden.

How do we test MitID in the sandbox?

Create a sandbox application, enable the Denmark wallet method and create a test session with the Sessions API. Sandbox testing is free and unlimited. The sandbox scenario catalog lets you reproduce specific outcomes without live users.

How do we verify a Didit webhook signature?

Read the raw request body before parsing JSON, then recompute an HMAC-SHA256 with your destination secret. Use X-Signature-V2 for canonical JSON or X-Signature for the exact raw bytes, and reject a timestamp more than 300 seconds from now. Compare in constant time, and accept a match on the -Previous header while a rotated secret is being deployed.

Is MitID enough on its own for our onboarding policy?

That is your decision, not Didit's. The cryptographic tier says an identity provider authenticated the person and signed the attributes it returned, and it does not rank the method against a document check or a data match. Each business must assess its own policy and the law that applies to it.

How is billing affected when a user falls back to a document check?

You pay for the checks that complete. A wallet verification that finishes is billed at $0.25. A document check that finishes is billed at its own price: $0.15 for document verification, or $0.33 when the fallback also runs passive liveness, face match and device and IP analysis. A wallet attempt that never produces a result is not a completed check.

How do we handle a wallet failure or an unavailable wallet?

Set on_failure to fallback_to_document on the Denmark wallet block so the session continues through document capture. Record the reason in your own case notes if your policy requires it. A configured fallback handles wallet failure without a second integration.

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.