Automating the Get-Credential step using an API\SOAP call to a 3rd party credential manager


My team is looking for a way to automate the get-credential step so that it can make an api call to a 3rd party credential store to retrieve a credential which can be used by a robot to execute tasks on other platforms like websites login, DB login etc.

Example: A robot logs on to a vm with it’s own credential X then starts a process to logon to a website with another credential Y but instead of retrieving credential from the UIPath credential store, there is a step to make an api call to ApplicationX to get credential Y, store the credential to use until the process ends and then if possible delete the credential.

Any help is appreciated.