Skip to main content

Firebase Identity Verification With Didit: 2026 Guide

We don’t document a native Firebase connector. Create the session from your Firebase backend with our REST API and receive status updates through a signed webhook. A full KYC check is $0.33 and the sandbox is free.

Firebase Identity Verification With Didit: 2026 Guide

Contents

In this guide

Jump to the part you need.

We don’t document a native Firebase connector. Create the session from your Firebase backend with our REST API and receive status updates through a signed webhook. That fits teams already using Firebase Auth. A full KYC check costs $0.33 per completed check and sandbox testing is free. You need a backend you control that can call our API and receive webhooks.

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

Firebase plus Didit at a glance
QuestionAnswer
Connector routeREST API session from your own backend, plus a signed webhook. We do not document a native Firebase connector.
Build aidWe host the Didit MCP server, free on every plan, at https://mcp.didit.me/mcp. The MCP setup page and the integration prompt help a coding agent write the backend calls.
Full KYC price$0.33 per completed check: ID document $0.15, passive liveness $0.10, face match 1:1 $0.05, device and IP analysis $0.03.
Business verification priceRegistry retrieval starts at $2.00 per company and varies by country and data tier. Linked KYC and person AML are billed separately: $0.33 per linked KYC check and $0.20 per person AML check.
SandboxFree and unlimited on every plan. Scenarios reproduce outcomes without real IDs.
Free plan$10.00 of monthly credit for the first organization created with an eligible work email for a company domain. The credit does not roll over and does not cover phone verification codes.
Where the decision landsYour HTTPS webhook receives signed status updates. Use GET /v3/session/{session_id}/decision/ when you need the full record. The browser callback is for progress display.
Client surfaceJavaScript SDK, InContext iframe, or a redirect to the hosted flow.

How the Didit and Firebase integration works

Your Firebase backend owns the Didit API key, creates one session for the signed-in user or business, and returns the hosted url. Your web app opens that URL, or starts the JavaScript SDK with it. Didit sends the status to an HTTPS webhook you operate, and your backend verifies the signature before it updates the app record.

Use Didit with MCP, the lesson that shows a coding agent working with the Didit server
We host the Didit MCP server. The lesson shows how a coding agent uses it while you keep the API key on the backend.

Prerequisites: backend, client, permissions

What you need before the first call
RequirementDetail
Didit planThe Free plan works. The $10.00 monthly credit applies to the first organization created with an eligible work email for a company domain, does not roll over and does not cover phone verification codes. Growth is $99 a month with $115 of credit. Scale is $299 a month with $350 of credit.
Didit credentialAn application API key. Build with the sandbox application key and switch to the live key when the organization has credit. The key needs the read:sessions privilege if you call the decision endpoint.
Didit workflowA saved workflow id from the Didit Console. KYC workflows create user sessions, KYB workflows create business sessions, and one endpoint serves both.
Firebase backendA backend that can call the Didit API and a reachable HTTPS webhook destination. This can be a Firebase backend you control.
Client and networkA web app that can open the hosted URL or run the JavaScript SDK. The backend must reach verification.didit.me. Use an HTTPS endpoint reachable by Didit.

Step 1: Create the workflow in the Didit Console

Go to business.didit.me and sign up with SSO or email and password. Create your Organization, which is where the team manages workflows, API keys and verification activity.

Open Workflows in the sidebar and click New workflow. Choose Verifying users for KYC, then Start from a template and pick KYC, or Start empty and add the checks yourself. A Simple workflow runs its steps in a fixed order. A node-based workflow branches on results, which is what you want if a failed liveness step should not continue to AML.

Save the workflow and copy its id. You will use it in the create call.

Step 2: Get an API key and start with the sandbox key

You can register programmatically in two calls: POST https://apx.didit.me/auth/v2/programmatic/register/, then POST https://apx.didit.me/auth/v2/programmatic/verify-email/ with the 6-character code. Save response.sandbox_application.api_key as your build key and response.application.api_key as the live key. Switch to live only when you are ready to spend credit. You can also copy the key from the Console after the quick start.

Step 3: Create a session from your Firebase backend

Run this call from your Firebase backend, not the browser. Keep the Didit API key on the backend. Send the signed-in user's stable ID as vendor_data. For KYC, use the Firebase Auth user ID. For KYB, use the stable business ID.

curl -X POST https://verification.didit.me/v3/session/ \
-H "x-api-key: $DIDIT_API_KEY" \
-H "Content-Type: application/json" \
-d "{\"workflow_id\":\"${WORKFLOW_ID}\",\"vendor_data\":\"user-42\",\"callback\":\"https://myapp.com/kyc/return\"}"

Set WORKFLOW_ID to the workflow UUID you copied from the Console. The response gives you session_id, url and session_token. The callback is where the hosted flow returns the user. If allowed domains are configured, an HTTP or HTTPS callback must match an allowed origin by scheme, host and port. Custom app URL schemes are accepted. Use metadata for context you want echoed in the webhook.

Step 4: Open the hosted flow in your Firebase web app

Your web app receives the url from your backend and sends the browser there. The hosted verification page runs on Didit's domain. This is the documented redirect pattern.

window.location.href = verificationUrl;

verificationUrl is the url returned by the create call. If you embed the flow with the InContext iframe, include the documented permission list: allow="camera; microphone; geolocation; clipboard-write; fullscreen; autoplay; encrypted-media; digital-credentials-get".

The face scanning step of the Didit hosted flow on a phone
The liveness capture your user completes in the hosted flow, before Didit posts the status to your webhook.

Step 5: Register a webhook destination

Register a destination once per environment. Use a separate destination for sandbox if you want separate delivery logs, and configure it with a reachable HTTPS URL. For this example, subscribe to status.updated for session status changes.

curl -X POST https://verification.didit.me/v3/webhook/destinations/ \
-H "x-api-key: $DIDIT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"label": "Firebase production", "url": "https://myapp.com/didit/webhook", "subscribed_events": ["status.updated"], "webhook_version": "v3"}'

Save the returned secret_shared_key as your webhook signing secret. GET /v3/webhook/destinations/{destination_uuid}/ returns it again if you lose it. There is no wildcard, so list every event family you want. If you also need reviewer edits, add data.updated and handle it separately from status events.

Step 6: Verify the webhook and retrieve the decision

Read the raw body before parsing JSON. Reject the delivery when X-Timestamp is not within 300 seconds of now. Recompute the HMAC-SHA256 signature over the sorted, Unicode-preserved canonical JSON with your destination secret, and compare it in constant time against X-Signature-V2. During rotation, a valid signature from either the current secret or the replaced secret is enough: accept a match on X-Signature-V2 or on X-Signature-V2-Previous, which Didit sends for 24 hours after a rotation. Reject invalid deliveries, apply valid events idempotently, and acknowledge promptly after handling succeeds. The canonical rules are on the webhook docs page.

Use event_id to deduplicate webhook deliveries and apply updates only to the session currently associated with the account. If event order is uncertain, retrieve the current decision from the API before changing access.

curl "https://verification.didit.me/v3/session/${SESSION_ID}/decision/" \
-H "x-api-key: ${DIDIT_API_KEY}"

Set SESSION_ID to the value the create call returned, and use a key with the read:sessions privilege. Branch on session_kind first: user for KYC, business for KYB. session_kind is a field of the retrieved decision, and KYB session webhooks also include it.

A session overview with its warnings in the Didit Business Console
The session record in the Didit Business Console, where you check status and warnings before you update your app.

Status to action

What to do with each Didit status in your app
StatusAction in your Firebase app
Not Started or In ProgressNo final action. Show progress or wait for the user.
Awaiting UserKYB only. Wait for the submitted parties to finish their checks.
In ReviewHold access. A reviewer decides in the Console.
ApprovedGrant access and store the session_id. A later event can reverse this status.
DeclinedDeny access or offer a resubmission if your policy allows it.
ResubmittedThe user is redoing steps. Keep access limited until a new decision arrives.
Expired or AbandonedThe link timed out or the user did not finish. Create a new session if needed.
Kyc ExpiredA previously approved document expired. Require a new check.

A reviewer or PATCH /v3/session/{sessionId}/update-status/ can move an approved session to Declined or Resubmitted. Deduplicate deliveries by event_id and apply updates only to the session currently associated with the account. If event order is uncertain, retrieve the current decision from the API before changing access.

Field and event mapping

Didit fields to fields in your Firebase app
Didit field or eventExampleUse in your app
session_idUUIDStore it as the session reference for decision lookup and for applying a fallback result to the same session.
vendor_dataFirebase Auth user ID for KYC, stable business ID for KYBAssociate the session with the signed-in user or business. Do not use one identifier for both.
statusApprovedUpdate app access. Use the exact case-sensitive string.
session_kinduser or businessField of the retrieved decision. KYB session webhooks also include it. Branch before reading feature arrays.
decision_trace.statusApprovedAudit field. Read the actual value from the decision.
decision_trace.decided_bymanual, automatic or investigatorAudit field for support and appeals.
biometric_retention.deletes_atScheduled deletion dateDescribe it only as the date Didit deletes the session's live biometric data.
event_idUUIDDeduplicate webhook deliveries.
webhook_typestatus.updated or data.updatedUse status.updated for status changes. Handle data.updated separately if you subscribe to it.
environmentlive or sandboxUse environment to identify sandbox deliveries.
sandbox_scenariodecline_aml_hit or nullOnly identifies the armed test case. Null on live sessions and unarmed sandbox sessions.

Show only the status and session reference the app needs. Keep the full decision server-side and do not copy decision arrays into client-readable records.

Test with sandbox data

The sandbox is free and unlimited on every plan. On a sandbox application you can send sandbox_scenario on create with a slug from GET /v1/sandbox/scenarios/. Didit expands that scenario's bundled magic values onto contact_details and expected_details, so the session reproduces the outcome. The field is rejected with 400 on live applications. While a session is still Not Started you can arm or re-arm a scenario with POST /v3/session/{session_id}/sandbox/arm/. Configure the sandbox destination with a reachable HTTPS URL.

For a specific test, use decline_aml_hit, a documented scenario slug. A successful delivery has webhook_type: status.updated, environment: sandbox and sandbox_scenario: decline_aml_hit. Delivery success is not approval. Read status for the scenario outcome, and use an approval scenario from the sandbox catalog when you need an approved test.

Error cases and fixes in a Firebase app
SymptomCauseFix
403 with “You do not have permission to perform this action.”No API key reached verification.didit.me, or the key lacks read:sessionsCheck that the key is valid and belongs to the correct application before replacing it. For decision retrieval, check read:sessions as well as whether the key was sent.
401 from the verification APIThe key is wrong, revoked or expiredCheck that the key is valid and belongs to the correct application before replacing it.
400 on createInvalid workflow_idRe-copy the id from the Console and watch for a stray space.
400 on callbackThe callback does not match an allowed originIf allowed domains are configured, an HTTP or HTTPS callback must match an allowed origin by scheme, host and port. Custom app URL schemes are accepted.
Webhook delivery fails or times outThe handler was slower than 5 seconds, or answered 5xx or 404Verify the delivery, apply the status idempotently and return 2xx promptly when handling succeeds. Didit retries twice, about 1 and 4 minutes later, then drops the delivery. Resend from the delivery log or use the decision API fallback.
404 on the decision endpointThe session does not exist or belongs to a different applicationUse the key from the same application that created the session.
Duplicate or out-of-order updatesRetries, multiple events, or a fallback API readDeduplicate deliveries by event_id and apply updates only to the session currently associated with the account. If event order is uncertain, retrieve the current decision from the API before changing access.
Camera blocked in an iframeThe iframe may not grant camera accessCheck whether the iframe grants camera access and uses the documented permission list.
400 for sandbox_scenarioThe application is liveSend scenarios only with the sandbox application key.

Disconnecting

Stop creating new sessions from your Firebase backend. Remove the Didit API key from that backend after any remaining decision lookups are complete. If your retention policy requires it, delete the app records you created from Didit status updates.

Worked cost example

Take a consumer app with 2,000 new signups a month, where 70% of signups complete one full KYC check each, and the example assumes no other billable activity.

  • Completed KYC checks: 2,000 x 0.70 = 1,400.
  • At list price: 1,400 x $0.33 = $462.00 of usage.
  • On Free, $462.00 in usage minus $10.00 in eligible monthly credit leaves $452.00 to fund from top-ups. There is no plan fee.
  • On Scale ($299 a month, $350 of credit, 10% off the full KYC list price): 1,400 x $0.297 = $415.80. Credit covers $350.00, so you add $65.80, and the month costs $299.00 + $65.80 = $364.80.
  • Add AML screening at $0.20 and each completed check is $0.33 + $0.20 = $0.53, so the compliance bundle for 1,400 checks is 1,400 x $0.53 = $742.00 before plan discounts.

What each end costs

On the Didit side you pay per completed check from prepaid credit. Plan credit is added every month and does not roll over. Top-ups last 12 months. The workflow orchestrator and MCP server are free, and the sandbox costs nothing. Growth discounts the full KYC list price by 4%, and Scale discounts it by 10%. Carrier and Meta charges pass through at cost. Free plan credit does not cover phone verification codes.

These prices cover Didit checks.

Sources

The practical next step is the sandbox: sign up at business.didit.me, create one KYC workflow, and call it from your Firebase backend with the sandbox key. No sales call, and the checks cost nothing while you build.

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

Is there a Didit connector for Firebase?

We don’t document a native Firebase connector. Create the session from your Firebase backend with our REST API and receive status updates through a signed webhook. Start with the session docs and the webhook docs.

How do I add KYC to a Firebase app with Didit?

Create a workflow in the Didit Console, call POST https://verification.didit.me/v3/session/ from your Firebase backend with the signed-in user's stable ID as vendor_data, and open the returned url in your web app. Take the signed status on your HTTPS webhook and store session_id so you can retrieve the decision. Use the sandbox application key while you build.

Where do I keep the Didit API key in a Firebase project?

Keep the Didit API key on your backend. Do not put it in a client config object or in a file that ships in the web bundle, because anyone reading the bundle could create sessions on your credit. The webhook signing secret also stays on the backend.

How do I tie a Didit session to a signed-in Firebase user?

Send the Firebase Auth user ID as vendor_data for a KYC session, or the stable business ID for a KYB session. Keep session_id with that record for decision lookup. The vendor_data value binds the session to the entity and is used for duplicate detection across sessions.

What should the webhook write to my app?

Show only the status and session reference needed by the app. Keep the full decision server-side and do not copy decision arrays into client-readable records. If you display a retention date, describe biometric_retention.deletes_at only as the date Didit deletes the session's live biometric data.

What does Firebase identity verification cost with Didit?

A full KYC check is $0.33, made of ID document $0.15, passive liveness $0.10, face match 1:1 $0.05 and device and IP analysis $0.03. Add AML screening at $0.20 for $0.53 per check. These prices cover Didit checks.

How do I test the flow without real documents?

Use the sandbox application key and its scenarios. List them with GET /v1/sandbox/scenarios/ and pass one as sandbox_scenario on create, or arm it later with POST /v3/session/{session_id}/sandbox/arm/ while the session is Not Started. Sandbox testing is free and unlimited, and those deliveries carry environment: sandbox.

What happens if my webhook function returns a 500 or times out?

Didit retries twice, after about 1 minute and about 4 minutes, then drops the delivery. Verify the delivery, apply the status idempotently and return 2xx promptly when handling succeeds. For anything lost, open the destination's delivery log in the Console and resend, or fall back to GET /v3/session/{session_id}/decision/.

Should I trust the callback redirect or the webhook?

Use the server-verified webhook status to update the app. Session webhooks include the decision object for Approved, Declined, In Review and Abandoned. Use the decision endpoint when you need the full record. Use the browser callback to display progress.

Can I run business verification (KYB) from the same Firebase project?

Yes. There is no separate endpoint: the workflow type decides the session kind, and a KYB workflow creates a business session. Pass company fields such as company_name, registry_country and registration_number as expected_details to pre-fill the registry search, then branch on session_kind when the decision arrives. KYB registry pricing starts at $2.00 per company and varies by country and data tier; linked KYC is $0.33 per person and person AML is $0.20 per person.

What backend do I need for this Firebase integration?

You need a backend you control that can call our API and receive webhooks. In this example that backend runs on Firebase.

Can a coding agent build the Firebase integration for me?

Yes. We host the Didit MCP server at https://mcp.didit.me/mcp with OAuth sign-in, free on every plan. The MCP setup page and the integration prompt walk an agent from account creation to webhook verification. Describe your Firebase backend and where you store status.

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.