Vault APIs
1. Overview
UCI provides an option to store the credentials required by the adapters in vault.
2. APIs
To add a credentials in vault, use below apis.
2.1 Login API
This apis provides a login token to use in the add credentials api. Below are the available parameters of api.
loginId: login id of fusion auth(which is connected to vault)
password: password of fusion auth(which is connected to vault)
applicationId: application registered on fusion auth(which is connected to vault)
Note: Please contact the administrator to get the loginId and password for this API.
Use below curl to get login token.
This API will give below response. Use the token from the response in Add secret/credentials API.
2.2 Add secret/credentials API
This API will add secret/credentials in the vault. Below are the available parameters of api.
type: type of secret/credential (Eg. WhatsappGupshup/Headers)
secretBody: key value pair of credentials
credentials for type WhatsappGupshup should be as follows:
credentials for type Headers should be as follows:
variableName: name of variable against which this data is being saved, it will be used in add adapter api configuration. it is used to fetch secretBody data from vault when added in adapter.
Use below curl to save credentials in vault.
Last updated