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:

Step 3: Create Credentials

Endpoint: https://cubi-sandbox-api.customersbank.com/partners/v1/credentials

Description: Create a new set of credentials

Request Example:

Step 4: View Client Secrets

Endpoint: https://cubi-sandbox-api.customersbank.com/partners/v1/credentials

Description: (Optional) View all of the currently configured client secrets to confirm the new credentials have been created

Request Example: