Skip to main content

Hosted Bank Account Linking API: Link, Redirect, Webhook, Confirm

Create a Bank Link on your server with POST /v3/bank/links/, send the person to the returned url, and confirm with GET /v3/bank/links/{id}/ or a bank.link webhook. Sandbox is free.

Hosted Bank Account Linking API: Link, Redirect, Webhook, Confirm

Contents

In this guide

Jump to the part you need.

Hosted Bank Link fits teams that want a bank connection without building bank screens: your server creates a link, the person starts on Didit's hosted page, signs in at their bank and then returns to Didit, and your server confirms the result. Bank sign-in starts at $0.45 per completed sign-in, and a link nobody completes is free. The caveat: ongoing access with real banks is not open to live applications yet; it is available in sandbox with the Didit Test Bank.

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

Hosted Bank Link at a glance
QuestionAnswer
What you callPOST https://verification.didit.me/v3/bank/links/ with your application API key in the x-api-key header, on your server
What the person seesDidit's hosted page at the url in the response, then your redirect_url when the link completes if Didit accepts that address
Where state livesOn Didit's servers: the link keeps its status even if the tab closes
How you confirmGET /v3/bank/links/{id}/, or the webhook for bank.link.completed, bank.link.failed, bank.link.cancelled or bank.link.expired
What you getA connection_id, then accounts, balances and transactions
PriceBank sign-in from $0.45 per completed sign-in. In the UK and Europe, a completed bank sign-in costs $0.79 at list price. One-time balances and transactions are priced separately at $0.35 and $1.30, respectively, when requested. A link nobody completes is free.
Live todayOne-time reads of real banks in live applications, in supported countries. Ongoing access with real banks is not open to live applications; ongoing access is available in sandbox with the Didit Test Bank.
SandboxFree and unlimited

Start free in the sandbox at business.didit.me: no sales call, no contract. If you want to connect Didit to your AI assistant while you build, use the free Didit MCP server. The product overview is Bank data and every price is on didit.me/pricing. The Bank Link recipe below stays on the documented HTTP route.

What you end up with

Three things, in this order. A link: a record on Didit's servers that holds the consent request and its status. A connection: what the link creates when the person finishes, identified by a connection_id. Data: the accounts the person chose to share, with balances and transactions. Your server reads that data with an API key. The application sends the browser the hosted url and keeps the API key on the server.

Because the link lives on our servers, closing the tab does not erase a status that was already recorded, and a link that finished still sends its final-status event. Closing the tab before consent finishes can leave the link unresolved. GET /v3/bank/links/{id}/ answers with the link's status whenever you ask, and the final-status webhook is sent whether the tab is open or not. Use the stored link ID to confirm the outcome.

Install route: API recipe, embedded SDK, or MCP

For hosted Bank Link, create and read links from your server. Add a webhook endpoint if you want final-status notifications. If you want people to stay on your own site, embed the link with the Bank Link SDK after adding your site to Allowed origins (Bank verification, Settings, Bank Link). If you want to connect Didit to your AI assistant while you build, use the MCP server at didit.me/developers/mcp, which is free on every plan.

We do not document a separate Bank Link connector inside MCP. The link operations are HTTP calls, so the recipe below is the documented route whichever client drives it.

Use Didit with MCP, the walkthrough of connecting a Didit account to an AI assistant
The free Didit MCP server connects to AI assistants through OAuth. This guide uses HTTP for Bank Link calls.

Prerequisites

What you need before the first call
ItemWhat it must be
ApplicationA sandbox application in the Business Console. A live application is needed only for real banks.
API keyA full-access key, or a key whose scopes name Bank data. It goes on your server only and never in the browser.
Return addressA live return address must be registered and match the supplied redirect_url exactly: https, at most 2048 characters, no spaces, no credentials, no fragment, up to 50 per application. Omit redirect_url to end on Didit's result page; an unregistered address is rejected at creation with 400 redirect_url_not_registered. Sandbox also accepts http on localhost, 127.0.0.1 or [::1] without registration.
CountryAn ISO country code from the coverage page, for example ESP, LTU or NOR.
Data scopeWhich of accounts, balances and transactions you ask for in the data array.
ClientUse an HTTP client for the server calls shown here. The Bank Link SDK is the documented option for embedding the hosted flow on an allowed origin.

Integrate it in seven steps

  1. Create the application and the key. Sign in to business.didit.me, create a sandbox application and an API key, and store the key on your server. Every call in this guide carries it in the x-api-key header. Every operation except the account check needs a full-access key or a key whose scopes name Bank data.

  2. Register where people come back to. Open Bank verification, Settings, Bank Link, then Return addresses. If you supply redirect_url for a live link, it must exactly match a registered https address. Omit redirect_url to end on Didit's result page. An unregistered address is rejected at creation with 400 redirect_url_not_registered. If you registered https://example.com/bank/return, then https://example.com/bank/done is refused. Allowed origins, directly below, lists the sites that may embed the link with the SDK.

  3. Create the link on your server. One POST returns the hosted url. This is a sandbox example using documented fields: a one-time read that returns to a local address, with the data array added to the return-address example. The url is returned only when the link is created.

    curl -X POST https://verification.didit.me/v3/bank/links/ -H "x-api-key: $DIDIT_API_KEY" -H "content-type: application/json" -d '{"access": "one_time", "country": "ESP", "data": ["accounts", "balances", "transactions"], "redirect_url": "http://localhost:3000/bank/return", "vendor_data": "client-7731"}'

    Store the link id next to your own user reference. That id is what you will confirm with later.

  4. Send the browser to the url. Redirect to it, open it in a new tab, or put it in an email. Open the link exactly as it is: do not proxy or re-host the hosted page on your own domain. It works at its own address only, so a copy on another address cannot finish and the link does not open. When the link carries a country, the person sees that country's banks. Add institution_id if you want one bank opened directly.

  5. Take the return. If the link completes and has an accepted redirect_url, the browser returns there automatically with link_id, status and signed state. If it fails, is cancelled or expires, the Didit result page offers a Back button with the same parameters. Without a redirect_url, the flow ends on Didit's result page. Use the return parameters for display and confirm the outcome on your server.

  6. Confirm on your server. Follow the Bank webhooks guide to configure your endpoint and verify deliveries. For each final Bank Link event, confirm the outcome using the link ID you stored for that user.

    curl https://verification.didit.me/v3/bank/links/LINK_ID/ -H "x-api-key: $DIDIT_API_KEY"

    Read the link's status. On completed, use the connection_id. On failed, inspect error.code. Handle cancelled and expired separately. If the link has not reached a final status, wait for its final webhook or read its status again. A status GET is free.

  7. Read the data. With the connection_id, read the connection's accounts, then balances and transactions per account. The desired data is requested when you create the link, in the data array. Reads never bill.

    • List the connection's accounts: GET /v3/bank/connections/{id}/accounts/
    • Get one account: GET /v3/bank/accounts/{account_id}/
    • Read balances: GET /v3/bank/accounts/{account_id}/balances/
    • List transactions: GET /v3/bank/accounts/{account_id}/transactions/
A Didit hosted flow processing screen shown while the person waits
Didit hosts every screen on its own page. The person signs in at their bank, and the browser never touches your API key.
Browser return behavior and server checks by link status
OutcomeBrowser with an accepted redirect_urlServer check
completedReturns to your address automatically with link_id, status and signed state.GET /v3/bank/links/{id}/: expect completed and a connection_id. Store the connection ID.
failedThe Didit result page offers a Back button to your address with the same parameters.GET /v3/bank/links/{id}/: branch on error.code.
cancelledThe Didit result page offers a Back button to your address with the same parameters.GET /v3/bank/links/{id}/: expect cancelled. Do not treat it as an error.
expiredThe Didit result page offers a Back button to your address with the same parameters.GET /v3/bank/links/{id}/: expect expired. Create a new link if the user still wants to connect.

Without a redirect_url, every outcome ends on Didit's result page. The webhook and GET /v3/bank/links/{id}/ remain the authority.

Field and event mapping

Link fields you send, and what they change
FieldWhat it does
accessone_time reads the data once when the person connects. ongoing asks for continuing access: it is available in sandbox with the Didit Test Bank, and ongoing access with real banks is not open to live applications.
countrySets the bank list the person sees. Use a country from the coverage page.
institution_idOpens one bank directly instead of the picker. Read the id from GET /v3/bank/institutions/.
dataWhich of accounts, balances and transactions you want. Ask for what you need at creation time.
redirect_urlWhere the browser returns when the link completes if Didit accepts the address. For failed, cancelled or expired links, the Didit result page offers a Back button with the same parameters. Must match a registered address exactly.
end_user.reference, vendor_dataThe hosted-link example supplies your own reference in both fields. Store the returned link id against your user reference and use that stored ID to confirm the outcome.
expires_inLink lifetime, 60 minutes by default, between 5 minutes and 24 hours.
Webhook events for a link, and the status each one means
EventWhen it firesWhat to do
bank.link.completedThe person connected a bank, or renewed a connectionRead the link, store the connection_id, pull the data
bank.link.failedThe link ended in an error, or the person declinedRead the link and branch on error.code
bank.link.cancelledThe person chose not to continue. On a renewal that is Not now, and the connection keeps running until its end dateDo not treat as an error
bank.link.expiredThe link ran out of timeCreate a new link if the user still wants it

Separate sandbox exercise: ongoing access

The main path above uses a one-time read. To exercise ongoing access in sandbox, create a second link with "access": "ongoing" and the same Spain country. The picker lists the Didit Test Bank, which supports ongoing access in sandbox. Ongoing access with real banks is unavailable to live applications.

curl -X POST https://verification.didit.me/v3/bank/links/ -H "x-api-key: $DIDIT_API_KEY" -H "content-type: application/json" -d '{"access": "ongoing", "country": "ESP", "data": ["accounts", "balances", "transactions"], "end_user": {"reference": "client-7731"}, "vendor_data": "client-7731"}'

Test it in the sandbox

Nothing is charged in sandbox. Use the Spain link and the Didit Test Bank to run a short acceptance check.

  1. Successful return. Create the one-time link with redirect_url set to http://localhost:3000/bank/return, open the url, pick the Didit Test Bank and finish. The browser lands on your return address with status=completed. Read the link on your server and confirm that it returns completed and a connection_id. Then call the accounts endpoint and confirm the shared accounts are there.

  2. Closing the tab before returning to the app. Create another link, complete the Test Bank steps and close the tab before the browser reaches your redirect_url. Read the link on your server: the recorded outcome is still there, and the final-status event is still sent.

  3. Final outcome without a browser return. Create a link without redirect_url, complete the Test Bank flow and let it end on Didit's result page. Confirm with GET /v3/bank/links/{id}/ that the status is completed and that the connection_id is present.

Expected success: status=completed at the return address, bank.link.completed delivered to your endpoint, and GET /v3/bank/links/{id}/ answering completed with a connection_id. List the accounts the person shared. Call the balance and transaction endpoints for a returned account if you requested those data types when creating the link.

Error cases and fixes
ResponseCauseFix
400 with a field nameA field failed validation, including a country the link does not supportFix what the body names and check the coverage page or GET /v3/bank/coverage/
400 redirect_url_not_registeredThe address is not registered exactly as sentRegister it under Return addresses, then send the same string
401The key is wrong, malformed, revoked or expiredCheck DIDIT_API_KEY or create a new key
403No key, a key without the Bank data scope, or a balance that cannot cover the callCheck the response and confirm the key has Bank data access before taking any billing action
404The requested resource was not foundCheck the link ID you stored
409The request conflicts with current state, for example a reused Idempotency-KeyRead code and reload the state before deciding whether to retry
expired link statusThe hosted URL has reached the end of its lifetimeConfirm the status on your server and create a new link if the user still wants to connect
429A rate limit or quota was reachedWait for Retry-After, then retry

Disconnecting is two different calls. POST /v3/bank/connections/{id}/revoke/ stops the connection, and DELETE /v3/bank/connections/{id}/ deletes it. Deletion is immediate and irreversible: when the call returns, its data is deleted.

Our side is pay per completed check from prepaid credit, at published prices. Link creation and status confirmation use server-side API calls. You can also receive final-status webhooks. A status GET is free. Reads never bill, so polling the link does not change the invoice. A link that fails, is cancelled or expires costs $0.

In the UK and Europe, a completed bank sign-in costs $0.79 at list price. One-time balances and transactions are priced separately at $0.35 and $1.30, respectively, when requested. A link nobody completes is free.

Worked example. 500 people in Lithuania complete a one-time read with balances and transactions, at the published Lithuanian list prices. These are usage charges before subscription fees and monthly credits:

  • Bank sign-in: 500 × $0.79 = $395.00
  • Balances add-on: 500 × $0.35 = $175.00
  • Transactions add-on: 500 × $1.30 = $650.00
  • List-price usage subtotal: $395.00 + $175.00 + $650.00 = $1,220.00
  • Scale discount of 10%: $1,220.00 × 0.90 = $1,098.00

The same volume on Growth, at 4% off: $1,220.00 × 0.96 = $1,171.20. 500 links that nobody completes add nothing to either figure. These are usage charges before subscription fees and monthly credits.

How Didit billing works, showing credits, auto-recharge and volume discounts
Completed checks draw from prepaid credit. An incomplete link draws nothing.

Sources

Next step: create a sandbox application at business.didit.me, create one link with "country": "ESP", open it and finish with the Didit Test Bank. After completing the Test Bank flow, read the link on your server and confirm that it returns completed and a connection_id. No sales call.

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

How do I create a hosted bank verification link and redirect the user to it?

POST to https://verification.didit.me/v3/bank/links/ with your server-side API key, a country, the data you want and a redirect_url if the app needs a browser return. The response carries a url, and you send the browser there. That url is returned only at creation, so store it or redirect immediately, and store the link id for confirmation.

Why can't I embed the bank login in an iframe?

The hosted page works at its own address only, so a copy re-hosted on another address cannot finish. To keep people inside your site, embed the link with the Bank Link SDK after adding your site to Allowed origins in Bank verification, Settings, Bank Link. A plain iframe around the hosted URL is not the supported route.

My link does not open and cannot finish after I proxy it on my own domain. What went wrong?

Proxying breaks the flow. Open the link's url exactly as it is, as a redirect or in a new tab, and let Didit host every screen. After the bank, the person returns to Didit's hosted page and from there to your redirect_url, never straight to another address.

How do I fix a country validation error when creating a Bank Link?

A 400 indicates invalid input, and the body names the field. Check the reported field and use the coverage page or GET /v3/bank/coverage/ before resubmitting.

How do I handle a 409 when creating a Bank Link?

A 409 means the request conflicts with current state. Read the returned code and reload the state before deciding whether to retry. Bank data writes accept an Idempotency-Key, and reusing a key is one documented example of a conflict.

Why are balances and transactions missing after a completed bank verification?

Ask for them at creation. The data array is where you request accounts, balances and transactions, and the person consents to the accounts they choose to share, so a connection can return fewer accounts than the bank holds. Confirm the link's status with GET /v3/bank/links/{id}/, then list the connection's accounts before reading balances or transactions.

How do I open Revolut, Wise or SEB directly in Lithuania?

Send institution_id with the bank's id in the create call, using country LTU. The Lithuanian docs list the coverage feed read on 2026-11-24, and in that feed the ids are lt-revolut for Revolut, lt-seb for SEB and lt-wise-former-transferwise for Wise. Read GET /v3/bank/institutions/ for the current id before shipping.

How do I open a specific Norwegian bank with institution_id?

Norway is covered with 87 banks, and the bank id is what institution_id takes. Read the id for the specific bank from GET /v3/bank/institutions/ rather than guessing a string. The country code for Norway is NOR.

Do I need a webhook, or is a status read enough?

Either works, and the two agree. A webhook notifies your server of the final outcome, and GET /v3/bank/links/{id}/ lets you check the stored status on demand. The redirect parameters are display only, so confirm on your server with one of the other two.

If the person closes the tab, is the consent lost?

No. The link and its state live on Didit's servers, so closing the tab does not erase a status that was already recorded or prevent a final-status event from being sent. If the tab closes before consent finishes, the link can stay unresolved: GET /v3/bank/links/{id}/ still answers with the link's current status.

How long does the link url work?

60 minutes by default, and you can set anything from 5 minutes to 24 hours with expires_in. If the link runs out of time before reaching a final outcome, it expires and Didit sends bank.link.expired. Create a new link if the person still wants to connect.

Does the API key ever reach the browser?

No. The link is created on your server and the application sends the browser only the hosted url, which carries no key. Every read you make against /v3/bank/ happens server to server with the x-api-key header.

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.