Rotate Institution Secret

This endpoint generates and returns a new secret key for the institution associated with the auth token, invalidating the previous one. It is used to cycle credentials for security purposes.

POST {{host}}/api/v1/institutions/rotate-secret

Response Message Field Description

#Field NameDescription
1successIndicates whether the request was successful (true for success)
2responseCodeHTTP-like response code (e.g. 200 for success)
3responseMessageHuman-readable result message (e.g. Success)
4dataObject containing the institution's updated secret details
4.1data.institutionIdUnique internal ID of the institution
4.2data.institutionCodeAlphanumeric code identifying the institution
4.3data.institutionNameDisplay name of the institution
4.4data.secretKeyNewly generated secret key (shown only once; must be stored securely)

Sample Response (Success)

{
  "success": true,
  "responseCode": "200",
  "responseMessage": "Success",
  "data": {
    "institutionId": 3,
    "institutionCode": "ACME001",
    "institutionName": "Acme Financial Services",
    "secretKey": "sk_live_xK9mQ2pL7rTv3nHwYd8cZeJf..."
  }
}

Sample Response (Failure)

{
  "success": false,
  "responseCode": "404",
  "responseMessage": "Institution Not Found"
}

Did this page help you?