API Versions¶
BankID provide API versioning. This allows us to introduce new features and improvements without breaking existing implementations.
The version is an integer that is returned in all tokens as api_ver claim (from version 2).
Current version¶
Today, the default version of the BankID APIs is 1.
Minimum version will be 4
From 28th of October 2025, all clients will be forced to use API Version 4. Older API Versions (1,2 and 3) will no longer be available. See announcement.
Available versions¶
Newer API Versions include all changes from older versions. E.g. v4 includes changes from v1->v3.
API Version 4 (enforced from 28th of October 2025)¶
This version adds many changes related to BankID Server end-of-life and recommendations from the OIDC specification and FAPI 2.0.
All changes from Version 1 to 3 are included, in addition to:
- The end-of-life announcement of BankID Server will cause some claims to be removed from Tokens:
additionalCertInfotid
-
BankID Proof is being removed due to BankID Server end-of-life. The signed ID token and an optional Permission Grant replaces this need.
-
It is required to use PKCE (Proof Key for Code Exchange) in Authorization Code flow based on recommendations in the OIDC specification. However, Azure B2C customers can opt-out of PKCE due to lack of support. Contact us, if you fall in this category.
- The following parameters in Authorization Code flow are always required:
response_typestatenonce
-
response_typeis required as a query parameter in the authorize request when using request objects for compliance with OIDC specification. -
The
session_stateclaim is a duplicate ofsidand is being removed from Access and ID token. You can find the same data insidclaim. - The
nonceclaim is being removed from Access token as per the OIDC specification. - Specifying NNIN in query param
login_hintis no longer supported. Use PAR or encrypted response object instead. - Use
acr_valuesto select Level of Assurance instead oflogin_hint=BID. E.g. useacr_values=urn:bankid:bidfor BankID on LOA 4.
API Version 3¶
- All Tokens are signed using ES256 signature algorithm. Make sure your system can handle validation of these signatures.
acr_valuesparameter of the authorize endpoint now supports multiple ACR values (space-separated) for compliance with OIDC specification.token_typevalue has been capitalized toBearerin token response. (Note: OAuth2 specification states this to be case-insensitive).
API Version 2¶
- Added custom
api_verclaim to tokens. amrclaim has changed from a String to an array of Strings. E.g. from "BID" to["bid"]for compliance with OIDC specification.
API Version 1¶
- Initial version of the BankID APIs. No backwards incompatible changes.
How to enable a new version¶
To set which API Version to use, include the version in the authorize request using:
api_version=[version]
Example:
GET [authorize_url]?client_id=myclient-bankid-prod&scope=openid&api_version=3
Tip
You can also make a request to support to set the minimum version for your OIDC Client, without the need to include it in the authorize request.