This tool demonstrates how to acquire an access token and use it to execute an API call using Node.js.
- Ensure OpenSSL 3.0 with long-term support version (support expected to end on September 7, 2026) and latest LTS version of Node.js are installed on your computer
- Clone this repository.
- Create a new Software Statement using the Directory Interface.
- Generate 2 keypairs for the Signing and Transport certificates and create CSRs.
- Generate certificates and download their PEM files.
- Copy both keys and certificates to the
configfolder. - Update
config/config.jsonfile with the required data (reference below). - Run
npm installfrom installation folder.
- Run
npm startfrom installation folder
- softwareStatementId - ID of a software statement you are requesting the token for
- clientScopes - scopes that will be included in the token (can be blank)
- keyId - ID of a signing certificate key you are using
- signingCert_passphrase - if the signing cert key is encrypted (password was provided during generation) provide decryption password, otherwise set to
null - transportCert_passphrase - if the transport cert key is encrypted (password was provided during generation) provide decryption password, otherwise set to
null - environment - "sandbox" or "production"
- signingCert - path to the signing certificate (relative to project root)
- signingKey - path to the signing key (relative to project root)
- transportCert - path to the transport certificate (relative to project root)
- transportKey - path to the transport key (relative to project root)
Copyright 2025 Open Banking Limited. All rights reserved. The software provided has no warranty, it is provided “as is”. It is your responsibility to validate the behavior of the routines and their accuracy using the source code provided, or to purchase support and warranties from commercial redistributors.