Implement TrueLayer UK open banking AIS consent flow for account data access

domain: docs.truelayer.com · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Register your application in the TrueLayer Console and obtain a client_id and client_secret; configure your redirect URI
  2. Construct the authorization URL with response_type=code, client_id, scope (e.g. 'accounts balance transactions'), redirect_uri, provider_id for the target bank, and nonce; redirect the user to TrueLayer's hosted auth UI
  3. Handle the OAuth 2.0 callback: extract the code parameter and POST to /connect/token with grant_type=authorization_code, code, client_id, client_secret, and redirect_uri to exchange for access_token and refresh_token
  4. Call GET /data/v1/accounts to list the user's accounts; then GET /data/v1/accounts/{account_id}/balance and GET /data/v1/accounts/{account_id}/transactions?from=YYYY-MM-DD&to=YYYY-MM-DD
  5. Refresh the access_token before expiry using the refresh_token via POST /connect/token with grant_type=refresh_token; store the new access_token and refresh_token securely

Known gotchas

Related routes

fetch accounts and transactions via TrueLayer Data API (UK open banking)
truelayer.com · 6 steps · unrated
Implement UK Open Banking AIS consent authorization using the FAPI 1.0 Advanced hybrid flow that the Open Banking security profile mandates, not FAPI 2.0
standards.openbanking.org.uk · 5 steps · unrated
Implement a UK Open Banking (OBIE) AIS consent revocation flow covering both TPP-initiated and bank-initiated revocation
banking · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans