Create New API Credentials
This recipe outlines the steps to create new API credentials. The initial client secret is generated within the user interface portal. Subsequently, the second can be generated either in the user interface portal or via API.
Step 1: Authenticate API
Endpoint: https://cubi-sandbox-api.customersbank.com/security/v1/authenticate/token
Description: Authenticate and receive an API token
Example Request:
POST /security/v1/authenticate/token HTTP/1.1
Host: cubi-sandbox-api.customersbank.com
Content-Type: application/json
Content-Length: 125
{
"clientId": "ebb8a62b-e559-43d4-ae44-c7cdc5567320",
"clientSecret": "12~3F~11111111111111111111111111111111"
}
Step 2: View Client Secrets
Endpoint: https://cubi-sandbox-api.customersbank.com/partners/v1/credentials
Description: View all of the currently configured client secrets
Request Example:
GET /partners/v1/credentials HTTP/1.1
Accept: application/json
Host: cubi-sandbox-api.customersbank.com
Step 3: Create Credentials
Endpoint: https://cubi-sandbox-api.customersbank.com/partners/v1/credentials
Description: Create a new set of client credentials. The response object will have the new client secret as part of the secretText field. Note This is the only time you will ever receive this; you cannot fetch the secret text via the GET endpoint
Request Example:
POST /partners/v1/credentials HTTP/1.1
Accept: application/json
Content-Type: application/*+json
Host: cubi-sandbox-api.customersbank.com
Response Example
{
"keyId": "string",
"displayName": "string",
"startDateTime": "string",
"endDateTime": "string",
"hint": "string",
"secretText": "string" // This will be the new client secret
}
Updated 16 days ago