Cross River Bank (CRB) uses the oAuth open standard to enable authentication for access to API services. Before calling any of our exposed APIs, you need to receive a bearer token from the oAuth server. When you call APIs in the future, this is the token to copy and paste into your API calls.
The sandbox URL is https://oauthtest.crbnj.net/connect/token.
For more information on our oAuth process, contact customer support.
The token expires after 60 minutes (the server reads 3600 seconds). If 60 minutes has passed and you want to call more APIs you have to call the token again. You will receive the same token in return.
curl -X POST https://oauthtest.crbnj.net/connect/token -H 'authorization: Basic xxxxxxxxxx' -H 'cache-control: no-cache' -H 'content-type: application/x-www-form- urlencoded' -d 'grant_type=client_credentials&scope=crbapi'
If the authentication is successful, the Status Code is OK.
These are the criteria you should see. The x-www-form-urlencoded body must contain the following key-value pairs:
- grant_type/ client_credentials
Updated 3 months ago