Skip to main content

Identity Verification API in Canada: Build Guide for 2026

Use a Didit KYC workflow plus one session call to verify Canadian users: full ID check $0.33, ID document only $0.15, standalone document API $0.20. The sandbox is free on every plan and unlimited.

Identity Verification API in Canada: Build Guide for 2026

Contents

In this guide

Jump to the part you need.

This guide is for developers and compliance leads at Canadian companies that verify users or businesses through an API. It covers the calls, the responses, the failures and the price of each step: a full ID check is $0.33, ID document only $0.15, and the standalone document API $0.20. The API returns verification evidence. PIPEDA consent, retention choices and FINTRAC reporting stay with your team.

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

Identity verification API in Canada: the short version
ItemDetail
Recommended methodA Didit KYC workflow run through POST https://verification.didit.me/v3/session/, with the decision delivered by webhook
Full ID check (KYC)$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
ID document only$0.15 per check
Standalone document API$0.20 per call, server to server, with images you already hold
Compliance bundle$0.53 per check: KYC plus AML screening
AML screening on its own$0.20 per check, ongoing monitoring $0.07 per person per year
Business verification (KYB)From $2.00 per company, plus $0.20 person AML and $0.33 per linked owner check
Canadian SMS verification code$0.0456 at list price, carrier cost plus the $0.02 Didit fee
SandboxFree on every plan and unlimited
Coverage220+ countries and territories, 14,000+ document types, 54 languages in the flow and the SDKs
What you still ownConsent, purpose limitation, retention choices, FINTRAC reporting

Start free in the sandbox at business.didit.me, with no sales call, and run your first Canadian check today. Prices and the cost estimator are at didit.me/pricing, the integration steps are at docs.didit.me, the ID verification product docs are at docs.didit.me/core-technology/id-verification, and developers who want a coding assistant to wire the calls can connect the Didit MCP server.

What you will have at the end

You will have one POST /v3/session/ call that returns a hosted verification URL, a webhook that receives the signed decision, and a fallback GET /v3/session/{session_id}/decision/ call for sessions your webhook missed. That is the recommended method for a user-facing Canadian flow, because the hosted session route handles document capture, passive liveness, face match, and device and IP analysis, and the webhook delivers the decision with an HMAC signature.

Use the standalone document API, POST /v3/id-verification/, instead when your own app already holds the document images and you want OCR plus authenticity checks in a single response. It is a separate line on the price list at $0.20 per call. Document liveness runs by default and can be disabled with perform_document_liveness=false.

Before you start: prerequisites

  • A Didit organization. Sign up at business.didit.me with a work email. A sandbox application builds and tests for free, and its key is returned as sandbox_application.api_key if you register through the API.
  • An HTTPS endpoint you control for webhooks. It must answer within 5 seconds.
  • Test images of the documents you accept, photographed uncropped with all four corners visible. The service detects, aligns and crops the document itself, so do not pre-crop.
  • Your own consent text and privacy notice. Confirm the consent, purpose, retention and provincial privacy obligations that apply to your organization before collecting selfie or document data, and check your wording against the guidance from the Office of the Privacy Commissioner of Canada. Provincial privacy laws, for example in Alberta, British Columbia and Quebec, can add requirements, so confirm which regime applies to the customers you actually serve.
  • A written rule for what your business does with a Declined result and with an In Review result. Decide this before launch, not in the middle of your first fraud spike.

Step by step: a Canadian KYC check through the API

  1. Create the organization and copy the keys. The sandbox key is for building, the live key is for production, and both go in the x-api-key header. Check the endpoint documentation for any required scope.

  2. Create a workflow. A workflow is the ordered set of checks. Post it once and store the returned id.

    curl -X POST https://verification.didit.me/v3/workflows/ \
    -H "x-api-key: $DIDIT_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{
    "workflow_label": "Canada KYC",
    "workflow_type": "kyc",
    "features": [
      {"feature": "OCR"},
      {"feature": "LIVENESS", "config": {"face_liveness_method": "PASSIVE"}},
      {"feature": "FACE_MATCH"},
      {"feature": "AML"}
    ]
    }'

    Drop the AML feature if you only need identity, and the check drops to $0.33. Keep it and you are on the $0.53 compliance bundle. You can also build the same workflow in the console from a template instead of by API.

  3. Create a session. This is the call your backend makes per user. vendor_data is your own stable user id, and language sets the verification UI, so fr gives a French flow for Quebec users.

    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.ca/kyc/return", "language": "fr"}'

    The response contains session_id, url and session_token. Store the session_id against your user record.

  4. Send the user to url. You can open it directly, mount the web SDK, or embed it in an iframe. Didit appends ?verificationSessionId={session_id}&status={status} to your callback, so your return page knows which session finished. If your application has allowed domains set, the callback origin must be on that list, otherwise the create call fails with 400.

    The face scanning screen a user sees during the passive liveness step
    The liveness step inside the hosted session route, after the document is captured.
  5. Register a webhook destination. Save the returned secret_shared_key as DIDIT_WEBHOOK_SECRET. You can fetch it again with GET /v3/webhook/destinations/{destination_uuid}/.

    curl -X POST https://verification.didit.me/v3/webhook/destinations/ \
    -H "x-api-key: $DIDIT_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{"label": "Production", "url": "https://myapp.ca/webhooks/didit", "subscribed_events": ["status.updated", "data.updated", "user.status.updated", "user.data.updated"], "webhook_version": "v3"}'
  6. Verify the signature and apply the decision. Check the X-Signature-V2 header, which is an HMAC-SHA256 of the canonical JSON body keyed with your secret. De-duplicate on event_id, answer 200 in under 5 seconds, then write the status and the warning codes to your database.

  7. Fetch the decision as a fallback. When a webhook was missed, or a user closed the tab before the redirect, read the decision directly. V3 returns plural arrays, so read id_verifications[], liveness_checks[], face_matches[] and aml_screenings[] and never assume the singular V2 fields.

    curl https://verification.didit.me/v3/session/$SESSION_ID/decision/ \
    -H "x-api-key: $DIDIT_API_KEY"
  8. Optional: verify a document you already hold. If your app collects the images itself, call the standalone document API. It classifies the document, runs OCR and MRZ decoding, cross-checks the visual zone against the MRZ, and can screen for screen replays and printed copies.

    curl -X POST 'https://verification.didit.me/v3/id-verification/' \
    -H 'x-api-key: YOUR_API_KEY' \
    -F 'front_image=@./id_front.jpg' \
    -F 'back_image=@./id_back.jpg' \
    -F 'perform_document_liveness=true' \
    -F 'minimum_age=18' \
    -F 'expiration_date_not_detected_action=DECLINE' \
    -F 'invalid_mrz_action=DECLINE' \
    -F 'inconsistent_data_action=DECLINE' \
    -F 'save_api_request=true' \
    -F 'vendor_data=user-123'

Expected output

On the hosted session route, the create call returns the session id, the hosted URL and a token. The decision then arrives with a status that is one of Not Started, In Progress, Approved, In Review, Declined, Abandoned or Kyc Expired. Each completed check carries a warnings[] array with risk codes such as DOCUMENT_EXPIRED, DOCUMENT_LIVENESS_FAILED, INCONSISTENT_DATA or MIN_AGE_NOT_REACHED, each with a short and a long description you can show to a support agent.

On the standalone document API, a successful call returns request_id and an id_verification object with status, the extracted holder fields, the parsed MRZ, decoded barcodes, the cropped portrait and document images as short-lived media URLs, and the same warnings list. A readable but problematic document returns HTTP 200 with status: "Declined", so always inspect the body, not only the HTTP code.

Session detail page showing the extracted fields from an ID document
The ID document result of a session, as your reviewers see it in the Didit Business Console.

Inputs and outputs

What you send and what you read back
FieldDirectionNotes
workflow_idInput, requiredUUID from /v3/workflows/. A KYC workflow creates user sessions, a KYB workflow creates business sessions.
vendor_dataInput, recommendedYour stable user or business identifier. Also used for duplicate detection.
callbackInput, optionalWhere the hosted flow redirects. Must be on an allowed domain when allowed domains are configured.
languageInput, optionalISO 639-1 code, for example en or fr. Browser detection is the default.
expected_detailsInput, optionalName, date of birth, nationality and document types you expect. Mismatches surface as decision warnings.
session_id, url, session_tokenOutputReturned by POST /v3/session/.
statusOutputOne value from the status list above.
id_verifications[], liveness_checks[], face_matches[], aml_screenings[]OutputV3 decision arrays, one entry per check collected in the workflow.
warnings[]OutputRisk codes with descriptions. Fraud and hard-failure codes decline the request on their own.

Failure cases and recovery

Common failures and what to do
SymptomCauseRecovery
403 You do not have permission to perform this action.No API key on the requestAdd the x-api-key header. A wrong, revoked or expired key answers 401 instead.
403 not enough creditsBalance cannot cover the callTop up or take a paid plan. The refusal happens before any image processing, so no credit is spent.
400 on session creationInvalid workflow_idRe-read the workflow id. Deleted or mistyped ids fail here.
400 naming your callbackCallback origin is not on the application allowed domainsAdd the origin, or omit callback and use the workflow default. Custom app deep links are always accepted.
400 COULD_NOT_RECOGNIZE_DOCUMENTStandalone document API could not classify the front imageRe-capture the document uncropped and in focus, or send the user to the hosted session route instead.
status: "Declined" with a terminal warningExpired document, screen replay, printed copy, portrait manipulation, or a field that could not be extractedStop the flow, show the first warning description, and apply your documented retry or rejection policy.
status: "In Review"A check ran but did not produce a usable result, for example DOCUMENT_LIVENESS_NOT_COMPUTEDRoute to manual review. Do not approve. A check that did not run is not evidence that the document is genuine.
Webhook never arrivesYour endpoint answered 5xx, 404, or took longer than 5 secondsDidit retries twice, after about 1 and 4 minutes, then drops the delivery. Resend it from the destination delivery log.

Every completed check that returns a result is billed. The sandbox is free on every plan and unlimited, so you can exercise every failure path above at no cost. In production, the plan credit is spent first and top-ups cover the rest; top-ups last 12 months.

Three boundaries matter for a Canadian compliance file, and none of them is something a vendor can sign off for you. First, Didit returns decisions and warning codes, but the policy that turns a result into an approval is yours. Second, an In Review result requires manual review before anyone is approved, and you route it to your manual-review process and inspect the checks and warnings before approval. Third, the verification record supports your FINTRAC recordkeeping and your PIPEDA accountability, but it does not replace them, and whether either regime applies depends on your sector and the customers you serve. We publish the technical controls, including data retention of 1 year on Free, 5 years on Growth and up to 10 years on Scale, and audit logs of 30 days, 1 year and 3 years respectively.

Session overview page listing the checks and warnings for one verification
A session overview with its warnings, the screen a reviewer uses before a manual decision.

Age verification through the same API

Age gates use the same plumbing. Age estimation is $0.10 per check and needs no document, which keeps the data you collect to a minimum. When you want a document-backed result, pass minimum_age=18 on the standalone document API and a date of birth under the threshold returns the MIN_AGE_NOT_REACHED warning and a Declined status. Didit also documents an Adaptive Age Verification template, which you can pick when you build the workflow in the console.

Worked cost example

Take a Canadian lender that onboards 10,000 users a month and runs a full ID check on all of them, with AML screening on the 2,500 users who go on to open an account.

  • Identity: 10,000 x $0.33 = $3,300.00
  • AML: 2,500 x $0.20 = $500.00
  • List price total: $3,300.00 + $500.00 = $3,800.00 per month

On the Scale plan the same volume is discounted by 10%: 10,000 x $0.297 = $2,970.00 and 2,500 x $0.18 = $450.00, a subtotal of $3,420.00. The $299 monthly fee includes $350 of credit, so the cash for the month is $299.00 + ($3,420.00 - $350.00) = $3,369.00. The arithmetic is shown so you can re-run it against the live feed at didit.me/pricing.

Now the small end. On the Free plan, $10 of credit buys about 30 full ID checks ($10.00 / $0.33 = 30.3). A pilot of 500 checks costs 500 x $0.33 = $165.00, so you would top up. Top-ups start at $50 and are added at face value.

What a Canadian buyer should check before choosing an API

We do not restate other vendors' prices in this guide. Here is the checklist we would use as a buyer, and you can hold our own answers to it.

  1. Is the per-check price published? A page you can read without a call is worth more than a quote. Ours is at didit.me/pricing and as JSON at pricing.json.
  2. What is in the base check? Separate prices for liveness, face match and device analysis can triple a headline rate. Our $0.33 includes all three.
  3. What happens on a review? Ask what a provider does with an inconclusive result, and whether review is billed per case.
  4. How are webhooks delivered? Signature scheme, retry schedule, and a delivery log you can resend from.
  5. Does it handle Canadian documents and French? Check the document coverage and the UI languages, including a French flow for Quebec users.
  6. Can you verify without a document? In Canada the non-document lookup queries a credit-bureau, financial-services, utility or residential-records file rather than a state register, and the non-document lookup page names the exact source for every country. Check that Canadian provenance on that page before you enable the country in production, and confirm the consent regime the query runs under.

The API is documented end to end at docs.didit.me, and we publish the criteria behind every comparison we make, so any claim on this page can be checked against a live call. Switching from another provider starts at didit.me/switch.

Sources

Open a sandbox organization at https://business.didit.me/, create the workflow, and run the first Canadian session before the end of the day. There is no sales call, and every number on this page is on the public price list.

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

Frequently asked questions

What is the best way to verify a Canadian customer through an API?

Run a KYC workflow through POST https://verification.didit.me/v3/session/ and let the hosted session route capture the document and the selfie. That path runs document verification, passive liveness, face match and device and IP analysis in one check at $0.33, and the webhook delivers the decision with an HMAC signature. Use the standalone document API at $0.20 only when your own app already holds the images.

How much does an identity verification API cost in Canada?

On Didit, a full ID check is $0.33 per completed check, ID document only is $0.15, and the standalone document API is $0.20 per call. Adding AML screening takes the compliance bundle to $0.53. You pay per completed check from prepaid credit, and Growth and Scale take 4% and 10% off every price.

Does the API support Canadian driver's licences and passports?

Yes. Didit reads 14,000+ document types from 220+ countries and territories, including passports, driver's licences, identity cards and residence permits. The document is classified automatically, so you never declare the country or the document type in the request.

Can I verify someone in Canada without a document?

Yes, through the non-document lookup, where the user types their identifier and a few details and Didit checks them against the authoritative source named for that country. In Canada that source is a credit-bureau, financial-services, utility or residential-records file rather than a government register, and the result carries the assurance tier data_match. Check that provenance on the non-document lookup page before you enable the country in production, and note the lookup is priced per country.

Does the verification flow work in French?

Yes. The flow and the native SDKs are available in 54 languages, and you set the language per session with the ISO 639-1 language parameter, for example fr for a Quebec user. The flow defaults to browser detection when you leave the field out.

Is the sandbox really free, and how many test checks do I get?

The sandbox is free on every plan and unlimited, and sandbox checks never charge your balance. Organizations that sign up with a work email also get $10 of credit a month on the Free plan, which buys about 30 full ID checks in production. Top-ups are only needed when live checks run past that credit.

What should I do when a check comes back In Review?

Send it to a human and do not approve the user. In Review means a check ran but did not produce a usable answer, for example when the document liveness provider returns no score and the response carries DOCUMENT_LIVENESS_NOT_COMPUTED. A check that did not run is not evidence that the document is genuine.

How reliable are the webhooks?

Didit signs each delivery with X-Signature-V2, an HMAC-SHA256 of the canonical JSON body, so you can reject anything unsigned. Your endpoint must answer within 5 seconds; on a 5xx, a 404 or a timeout Didit retries twice, after about 1 and 4 minutes, then drops the delivery and logs it. De-duplicate on event_id and resend from the delivery log when needed.

How fast is the API?

Document inference runs at a sub-2-second p99, and we have held 100% uptime over the last six months with an availability target of 99.99%. Latency for a full session also includes the time the user spends capturing the document and the selfie.

Who is responsible for PIPEDA and FINTRAC compliance?

You are. Didit provides the technical controls, including SOC 2 Type 2, ISO/IEC 27001:2022 certification, configurable data retention and exportable audit logs, but consent language, purpose limitation and FINTRAC reporting stay with your compliance team. We serve 4,000+ companies and we will not tell you a vendor can sign off your regulatory file for you.

How do I compare Didit with other identity verification APIs in Canada?

Ask every provider the same questions on their own pages: is the per-check price published, what is bundled into it, what happens on review, what is the webhook retry policy, and which languages the hosted flow supports. Then compare those answers with ours at didit.me/pricing and docs.didit.me. We publish our own criteria so you can check them against a live call rather than take our word for it.

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.