Skip to main content
Developer

API Versions#

View as Markdown
On this page

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.

Current version#

The default version of the BankID APIs is 4.

Available versions#

API Version 4 (enforced from 5th of November 2025)#

This version adds many changes related to BankID Server end-of-life and recommendations from the OIDC specification⁠ (opens in a new tab) and FAPI 2.0⁠ (opens in a new tab).

All changes from Version 1 to 3 are included, in addition to:

API Version 3#

  • All Tokens are signed using ES256 signature algorithm. Make sure your system can handle validation of these signatures.
  • acr_values parameter of the authorize endpoint now supports multiple ACR values (space-separated) for compliance with OIDC specification⁠ (opens in a new tab).
  • token_type value has been capitalized to Bearer in token response. (Note: OAuth2 specification states this to be case-insensitive).

API Version 2#

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

Was this page helpful?