Get Access Token

To obtain an access token for the core banking application API, users need to follow the steps outlined below: 1. Obtain Client Credentials: To obtain an access token, users must first acquire a "clientID" And "clientSecret" from the API provider. These credentials serve as the client's unique identifier and are used to authenticate the client with the API. 2. Pass Credentials to /auth Endpoint: Once the clientID and clientSecret are obtained, they must be included in the request to the /auth endpoint. This endpoint is responsible for authenticating the client and generating an access token. Body

Name
Data Type (Length)
Description

clientID*

string

Client ID

clientSecret*

string

Client Secret

Here is a request and response with a sample payload sent to the endpoint in Curl format.

Sample API Request

const message = "hello world";
curl --location -g '{{baseurl}}/api/auth/v1/authenticate' \
--header 'Content-Type: application/json' \
--data '{
  "clientId": "string",
  "clientSecret": "string"
}

Response

{
  "accessToken": "string",
  "tokenType": "string",
  "expirationTime": "long",//EPOCH time
  "tokenValiditySec": "long" //Token validity in Seconds
}

It is crucial to securely store and manage the client credentials and access tokens to ensure the security of the API integration.

Last updated